195 lines
5.6 KiB
Go
195 lines
5.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: tag.proto
|
|
|
|
package feed
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type AddTagRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // 标签名称
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddTagRequest) Reset() {
|
|
*x = AddTagRequest{}
|
|
mi := &file_tag_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddTagRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddTagRequest) ProtoMessage() {}
|
|
|
|
func (x *AddTagRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_tag_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddTagRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddTagRequest) Descriptor() ([]byte, []int) {
|
|
return file_tag_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *AddTagRequest) GetTags() []string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TagListReply struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Tags []*TagItem `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
|
|
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TagListReply) Reset() {
|
|
*x = TagListReply{}
|
|
mi := &file_tag_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TagListReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TagListReply) ProtoMessage() {}
|
|
|
|
func (x *TagListReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_tag_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TagListReply.ProtoReflect.Descriptor instead.
|
|
func (*TagListReply) Descriptor() ([]byte, []int) {
|
|
return file_tag_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *TagListReply) GetTags() []*TagItem {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TagListReply) GetTotal() int64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_tag_proto protoreflect.FileDescriptor
|
|
|
|
const file_tag_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\ttag.proto\x12\x04feed\x1a\fblocks.proto\"#\n" +
|
|
"\rAddTagRequest\x12\x12\n" +
|
|
"\x04tags\x18\x01 \x03(\tR\x04tags\"G\n" +
|
|
"\fTagListReply\x12!\n" +
|
|
"\x04tags\x18\x01 \x03(\v2\r.feed.TagItemR\x04tags\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x03R\x05total2\xa2\x01\n" +
|
|
"\x03Tag\x120\n" +
|
|
"\x04List\x12\x12.feed.FetchRequest\x1a\x12.feed.TagListReply\"\x00\x122\n" +
|
|
"\x06Create\x12\x13.feed.AddTagRequest\x1a\x11.feed.StatusReply\"\x00\x125\n" +
|
|
"\bPostList\x12\x12.feed.FetchRequest\x1a\x13.feed.PostListReply\"\x00B\bZ\x06.;feedb\x06proto3"
|
|
|
|
var (
|
|
file_tag_proto_rawDescOnce sync.Once
|
|
file_tag_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_tag_proto_rawDescGZIP() []byte {
|
|
file_tag_proto_rawDescOnce.Do(func() {
|
|
file_tag_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_tag_proto_rawDesc), len(file_tag_proto_rawDesc)))
|
|
})
|
|
return file_tag_proto_rawDescData
|
|
}
|
|
|
|
var file_tag_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_tag_proto_goTypes = []any{
|
|
(*AddTagRequest)(nil), // 0: feed.AddTagRequest
|
|
(*TagListReply)(nil), // 1: feed.TagListReply
|
|
(*TagItem)(nil), // 2: feed.TagItem
|
|
(*FetchRequest)(nil), // 3: feed.FetchRequest
|
|
(*StatusReply)(nil), // 4: feed.StatusReply
|
|
(*PostListReply)(nil), // 5: feed.PostListReply
|
|
}
|
|
var file_tag_proto_depIdxs = []int32{
|
|
2, // 0: feed.TagListReply.tags:type_name -> feed.TagItem
|
|
3, // 1: feed.Tag.List:input_type -> feed.FetchRequest
|
|
0, // 2: feed.Tag.Create:input_type -> feed.AddTagRequest
|
|
3, // 3: feed.Tag.PostList:input_type -> feed.FetchRequest
|
|
1, // 4: feed.Tag.List:output_type -> feed.TagListReply
|
|
4, // 5: feed.Tag.Create:output_type -> feed.StatusReply
|
|
5, // 6: feed.Tag.PostList:output_type -> feed.PostListReply
|
|
4, // [4:7] is the sub-list for method output_type
|
|
1, // [1:4] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_tag_proto_init() }
|
|
func file_tag_proto_init() {
|
|
if File_tag_proto != nil {
|
|
return
|
|
}
|
|
file_blocks_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_tag_proto_rawDesc), len(file_tag_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_tag_proto_goTypes,
|
|
DependencyIndexes: file_tag_proto_depIdxs,
|
|
MessageInfos: file_tag_proto_msgTypes,
|
|
}.Build()
|
|
File_tag_proto = out.File
|
|
file_tag_proto_goTypes = nil
|
|
file_tag_proto_depIdxs = nil
|
|
}
|