// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc (unknown) // source: blocks.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 FetchRequest struct { state protoimpl.MessageState `protogen:"open.v1"` PageNo int64 `protobuf:"varint,1,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"` // 页数 PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页记录数 Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 条件参数,key=val,eg key:category_id=?,vlaue=11 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FetchRequest) Reset() { *x = FetchRequest{} mi := &file_blocks_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FetchRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FetchRequest) ProtoMessage() {} func (x *FetchRequest) ProtoReflect() protoreflect.Message { mi := &file_blocks_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 FetchRequest.ProtoReflect.Descriptor instead. func (*FetchRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{0} } func (x *FetchRequest) GetPageNo() int64 { if x != nil { return x.PageNo } return 0 } func (x *FetchRequest) GetPageSize() int64 { if x != nil { return x.PageSize } return 0 } func (x *FetchRequest) GetParams() map[string]string { if x != nil { return x.Params } return nil } type IdentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 唯一ID Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一码 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *IdentRequest) Reset() { *x = IdentRequest{} mi := &file_blocks_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *IdentRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*IdentRequest) ProtoMessage() {} func (x *IdentRequest) ProtoReflect() protoreflect.Message { mi := &file_blocks_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 IdentRequest.ProtoReflect.Descriptor instead. func (*IdentRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{1} } func (x *IdentRequest) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *IdentRequest) GetIdentity() string { if x != nil { return x.Identity } return "" } type VersionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // 时序版本号 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *VersionRequest) Reset() { *x = VersionRequest{} mi := &file_blocks_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *VersionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*VersionRequest) ProtoMessage() {} func (x *VersionRequest) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[2] 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 VersionRequest.ProtoReflect.Descriptor instead. func (*VersionRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{2} } func (x *VersionRequest) GetVersion() int64 { if x != nil { return x.Version } return 0 } type SearchRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` //关键词 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SearchRequest) Reset() { *x = SearchRequest{} mi := &file_blocks_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SearchRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SearchRequest) ProtoMessage() {} func (x *SearchRequest) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[3] 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 SearchRequest.ProtoReflect.Descriptor instead. func (*SearchRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{3} } func (x *SearchRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } type StatusReply struct { state protoimpl.MessageState `protogen:"open.v1"` Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 数据 Timeseq int64 `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StatusReply) Reset() { *x = StatusReply{} mi := &file_blocks_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StatusReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*StatusReply) ProtoMessage() {} func (x *StatusReply) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[4] 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 StatusReply.ProtoReflect.Descriptor instead. func (*StatusReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{4} } func (x *StatusReply) GetData() string { if x != nil { return x.Data } return "" } func (x *StatusReply) GetTimeseq() int64 { if x != nil { return x.Timeseq } return 0 } type Empty struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Empty) Reset() { *x = Empty{} mi := &file_blocks_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Empty) String() string { return protoimpl.X.MessageStringOf(x) } func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[5] 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 Empty.ProtoReflect.Descriptor instead. func (*Empty) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{5} } // 推文列表 type PostListReply struct { state protoimpl.MessageState `protogen:"open.v1"` List []*PostItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Cnt int64 `protobuf:"varint,2,opt,name=cnt,proto3" json:"cnt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PostListReply) Reset() { *x = PostListReply{} mi := &file_blocks_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PostListReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*PostListReply) ProtoMessage() {} func (x *PostListReply) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[6] 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 PostListReply.ProtoReflect.Descriptor instead. func (*PostListReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{6} } func (x *PostListReply) GetList() []*PostItem { if x != nil { return x.List } return nil } func (x *PostListReply) GetCnt() int64 { if x != nil { return x.Cnt } return 0 } // 推文 type PostItem struct { state protoimpl.MessageState `protogen:"open.v1"` Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识 Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 内容 FeedId int64 `protobuf:"varint,3,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` // 通行证ID FeedIdentity string `protobuf:"bytes,4,opt,name=feed_identity,json=feedIdentity,proto3" json:"feed_identity,omitempty"` // 通行证Identity IsOpen bool `protobuf:"varint,5,opt,name=is_open,json=isOpen,proto3" json:"is_open,omitempty"` // 是否公开:默认为0-公开,1-不公开 CntUnlike int64 `protobuf:"varint,6,opt,name=cnt_unlike,json=cntUnlike,proto3" json:"cnt_unlike,omitempty"` // 点踩数量 CntComment int64 `protobuf:"varint,7,opt,name=cnt_comment,json=cntComment,proto3" json:"cnt_comment,omitempty"` // 评论数量 CntLike int64 `protobuf:"varint,8,opt,name=cnt_like,json=cntLike,proto3" json:"cnt_like,omitempty"` // 点赞数量 Attachs []*AttachItem `protobuf:"bytes,9,rep,name=attachs,proto3" json:"attachs,omitempty"` // 附件信息 Tags []*TagItem `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` // 所属话题 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PostItem) Reset() { *x = PostItem{} mi := &file_blocks_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PostItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*PostItem) ProtoMessage() {} func (x *PostItem) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[7] 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 PostItem.ProtoReflect.Descriptor instead. func (*PostItem) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{7} } func (x *PostItem) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *PostItem) GetContent() string { if x != nil { return x.Content } return "" } func (x *PostItem) GetFeedId() int64 { if x != nil { return x.FeedId } return 0 } func (x *PostItem) GetFeedIdentity() string { if x != nil { return x.FeedIdentity } return "" } func (x *PostItem) GetIsOpen() bool { if x != nil { return x.IsOpen } return false } func (x *PostItem) GetCntUnlike() int64 { if x != nil { return x.CntUnlike } return 0 } func (x *PostItem) GetCntComment() int64 { if x != nil { return x.CntComment } return 0 } func (x *PostItem) GetCntLike() int64 { if x != nil { return x.CntLike } return 0 } func (x *PostItem) GetAttachs() []*AttachItem { if x != nil { return x.Attachs } return nil } func (x *PostItem) GetTags() []*TagItem { if x != nil { return x.Tags } return nil } // 附件 type AttachItem struct { state protoimpl.MessageState `protogen:"open.v1"` Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识 AttachType string `protobuf:"bytes,2,opt,name=attach_type,json=attachType,proto3" json:"attach_type,omitempty"` // 文件类型 Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // 文件路径 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AttachItem) Reset() { *x = AttachItem{} mi := &file_blocks_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AttachItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*AttachItem) ProtoMessage() {} func (x *AttachItem) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[8] 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 AttachItem.ProtoReflect.Descriptor instead. func (*AttachItem) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{8} } func (x *AttachItem) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *AttachItem) GetAttachType() string { if x != nil { return x.AttachType } return "" } func (x *AttachItem) GetUrl() string { if x != nil { return x.Url } return "" } // 标签 type TagItem struct { state protoimpl.MessageState `protogen:"open.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 标签唯一码 Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 标签内容 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TagItem) Reset() { *x = TagItem{} mi := &file_blocks_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TagItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*TagItem) ProtoMessage() {} func (x *TagItem) ProtoReflect() protoreflect.Message { mi := &file_blocks_proto_msgTypes[9] 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 TagItem.ProtoReflect.Descriptor instead. func (*TagItem) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{9} } func (x *TagItem) GetKey() string { if x != nil { return x.Key } return "" } func (x *TagItem) GetContent() string { if x != nil { return x.Content } return "" } var File_blocks_proto protoreflect.FileDescriptor const file_blocks_proto_rawDesc = "" + "\n" + "\fblocks.proto\x12\x04feed\"\xb7\x01\n" + "\fFetchRequest\x12\x17\n" + "\apage_no\x18\x01 \x01(\x03R\x06pageNo\x12\x1b\n" + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x126\n" + "\x06params\x18\x03 \x03(\v2\x1e.feed.FetchRequest.ParamsEntryR\x06params\x1a9\n" + "\vParamsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" + "\fIdentRequest\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" + "\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" + "\x0eVersionRequest\x12\x18\n" + "\aversion\x18\x01 \x01(\x03R\aversion\")\n" + "\rSearchRequest\x12\x18\n" + "\akeyword\x18\x01 \x01(\tR\akeyword\";\n" + "\vStatusReply\x12\x12\n" + "\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" + "\atimeseq\x18\x02 \x01(\x03R\atimeseq\"\a\n" + "\x05Empty\"E\n" + "\rPostListReply\x12\"\n" + "\x04list\x18\x01 \x03(\v2\x0e.feed.PostItemR\x04list\x12\x10\n" + "\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xc1\x02\n" + "\bPostItem\x12\x1a\n" + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" + "\acontent\x18\x02 \x01(\tR\acontent\x12\x17\n" + "\afeed_id\x18\x03 \x01(\x03R\x06feedId\x12#\n" + "\rfeed_identity\x18\x04 \x01(\tR\ffeedIdentity\x12\x17\n" + "\ais_open\x18\x05 \x01(\bR\x06isOpen\x12\x1d\n" + "\n" + "cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" + "\vcnt_comment\x18\a \x01(\x03R\n" + "cntComment\x12\x19\n" + "\bcnt_like\x18\b \x01(\x03R\acntLike\x12*\n" + "\aattachs\x18\t \x03(\v2\x10.feed.AttachItemR\aattachs\x12!\n" + "\x04tags\x18\n" + " \x03(\v2\r.feed.TagItemR\x04tags\"[\n" + "\n" + "AttachItem\x12\x1a\n" + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" + "\vattach_type\x18\x02 \x01(\tR\n" + "attachType\x12\x10\n" + "\x03url\x18\x03 \x01(\tR\x03url\"5\n" + "\aTagItem\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" + "\acontent\x18\x02 \x01(\tR\acontentB\bZ\x06.;feedb\x06proto3" var ( file_blocks_proto_rawDescOnce sync.Once file_blocks_proto_rawDescData []byte ) func file_blocks_proto_rawDescGZIP() []byte { file_blocks_proto_rawDescOnce.Do(func() { file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc))) }) return file_blocks_proto_rawDescData } var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_blocks_proto_goTypes = []any{ (*FetchRequest)(nil), // 0: feed.FetchRequest (*IdentRequest)(nil), // 1: feed.IdentRequest (*VersionRequest)(nil), // 2: feed.VersionRequest (*SearchRequest)(nil), // 3: feed.SearchRequest (*StatusReply)(nil), // 4: feed.StatusReply (*Empty)(nil), // 5: feed.Empty (*PostListReply)(nil), // 6: feed.PostListReply (*PostItem)(nil), // 7: feed.PostItem (*AttachItem)(nil), // 8: feed.AttachItem (*TagItem)(nil), // 9: feed.TagItem nil, // 10: feed.FetchRequest.ParamsEntry } var file_blocks_proto_depIdxs = []int32{ 10, // 0: feed.FetchRequest.params:type_name -> feed.FetchRequest.ParamsEntry 7, // 1: feed.PostListReply.list:type_name -> feed.PostItem 8, // 2: feed.PostItem.attachs:type_name -> feed.AttachItem 9, // 3: feed.PostItem.tags:type_name -> feed.TagItem 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_blocks_proto_init() } func file_blocks_proto_init() { if File_blocks_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)), NumEnums: 0, NumMessages: 11, NumExtensions: 0, NumServices: 0, }, GoTypes: file_blocks_proto_goTypes, DependencyIndexes: file_blocks_proto_depIdxs, MessageInfos: file_blocks_proto_msgTypes, }.Build() File_blocks_proto = out.File file_blocks_proto_goTypes = nil file_blocks_proto_depIdxs = nil }