// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc (unknown) // source: blocks.proto package relation 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 RelationItem struct { state protoimpl.MessageState `protogen:"open.v1"` Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` //昵称 RemarkName string `protobuf:"bytes,3,opt,name=remark_name,json=remarkName,proto3" json:"remark_name,omitempty"` // 备注名称 Popular int32 `protobuf:"varint,4,opt,name=popular,proto3" json:"popular,omitempty"` //是否置顶 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` Birthday string `protobuf:"bytes,6,opt,name=birthday,proto3" json:"birthday,omitempty"` //生日 Sex int32 `protobuf:"varint,7,opt,name=sex,proto3" json:"sex,omitempty"` //性别,1为男性,2为女性 Province int32 `protobuf:"varint,8,opt,name=province,proto3" json:"province,omitempty"` //省 City int32 `protobuf:"varint,9,opt,name=city,proto3" json:"city,omitempty"` //市 Area int32 `protobuf:"varint,10,opt,name=area,proto3" json:"area,omitempty"` //区 Sign string `protobuf:"bytes,11,opt,name=sign,proto3" json:"sign,omitempty"` //签名 Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"` //所属标签组 ForeignStatus int32 `protobuf:"varint,13,opt,name=foreign_status,json=foreignStatus,proto3" json:"foreign_status,omitempty"` //外表的状态值,根据表不同,值的作用不同 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RelationItem) Reset() { *x = RelationItem{} mi := &file_blocks_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RelationItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*RelationItem) ProtoMessage() {} func (x *RelationItem) 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 RelationItem.ProtoReflect.Descriptor instead. func (*RelationItem) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{6} } func (x *RelationItem) GetIdentity() string { if x != nil { return x.Identity } return "" } func (x *RelationItem) GetNickname() string { if x != nil { return x.Nickname } return "" } func (x *RelationItem) GetRemarkName() string { if x != nil { return x.RemarkName } return "" } func (x *RelationItem) GetPopular() int32 { if x != nil { return x.Popular } return 0 } func (x *RelationItem) GetAvatar() string { if x != nil { return x.Avatar } return "" } func (x *RelationItem) GetBirthday() string { if x != nil { return x.Birthday } return "" } func (x *RelationItem) GetSex() int32 { if x != nil { return x.Sex } return 0 } func (x *RelationItem) GetProvince() int32 { if x != nil { return x.Province } return 0 } func (x *RelationItem) GetCity() int32 { if x != nil { return x.City } return 0 } func (x *RelationItem) GetArea() int32 { if x != nil { return x.Area } return 0 } func (x *RelationItem) GetSign() string { if x != nil { return x.Sign } return "" } func (x *RelationItem) GetTags() []string { if x != nil { return x.Tags } return nil } func (x *RelationItem) GetForeignStatus() int32 { if x != nil { return x.ForeignStatus } return 0 } type FetchRelationItemReply struct { state protoimpl.MessageState `protogen:"open.v1"` Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总记录数 Data []*RelationItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FetchRelationItemReply) Reset() { *x = FetchRelationItemReply{} mi := &file_blocks_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FetchRelationItemReply) String() string { return protoimpl.X.MessageStringOf(x) } func (*FetchRelationItemReply) ProtoMessage() {} func (x *FetchRelationItemReply) 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 FetchRelationItemReply.ProtoReflect.Descriptor instead. func (*FetchRelationItemReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{7} } func (x *FetchRelationItemReply) GetTotal() int64 { if x != nil { return x.Total } return 0 } func (x *FetchRelationItemReply) GetData() []*RelationItem { if x != nil { return x.Data } return nil } var File_blocks_proto protoreflect.FileDescriptor const file_blocks_proto_rawDesc = "" + "\n" + "\fblocks.proto\x12\brelation\"\xbb\x01\n" + "\fFetchRequest\x12\x17\n" + "\apage_no\x18\x01 \x01(\x03R\x06pageNo\x12\x1b\n" + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x12:\n" + "\x06params\x18\x03 \x03(\v2\".relation.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\"\xda\x02\n" + "\fRelationItem\x12\x1a\n" + "\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" + "\bnickname\x18\x02 \x01(\tR\bnickname\x12\x1f\n" + "\vremark_name\x18\x03 \x01(\tR\n" + "remarkName\x12\x18\n" + "\apopular\x18\x04 \x01(\x05R\apopular\x12\x16\n" + "\x06avatar\x18\x05 \x01(\tR\x06avatar\x12\x1a\n" + "\bbirthday\x18\x06 \x01(\tR\bbirthday\x12\x10\n" + "\x03sex\x18\a \x01(\x05R\x03sex\x12\x1a\n" + "\bprovince\x18\b \x01(\x05R\bprovince\x12\x12\n" + "\x04city\x18\t \x01(\x05R\x04city\x12\x12\n" + "\x04area\x18\n" + " \x01(\x05R\x04area\x12\x12\n" + "\x04sign\x18\v \x01(\tR\x04sign\x12\x12\n" + "\x04tags\x18\f \x03(\tR\x04tags\x12%\n" + "\x0eforeign_status\x18\r \x01(\x05R\rforeignStatus\"Z\n" + "\x16FetchRelationItemReply\x12\x14\n" + "\x05total\x18\x01 \x01(\x03R\x05total\x12*\n" + "\x04data\x18\x02 \x03(\v2\x16.relation.RelationItemR\x04dataB\fZ\n" + ".;relationb\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, 9) var file_blocks_proto_goTypes = []any{ (*FetchRequest)(nil), // 0: relation.FetchRequest (*IdentRequest)(nil), // 1: relation.IdentRequest (*VersionRequest)(nil), // 2: relation.VersionRequest (*SearchRequest)(nil), // 3: relation.SearchRequest (*StatusReply)(nil), // 4: relation.StatusReply (*Empty)(nil), // 5: relation.Empty (*RelationItem)(nil), // 6: relation.RelationItem (*FetchRelationItemReply)(nil), // 7: relation.FetchRelationItemReply nil, // 8: relation.FetchRequest.ParamsEntry } var file_blocks_proto_depIdxs = []int32{ 8, // 0: relation.FetchRequest.params:type_name -> relation.FetchRequest.ParamsEntry 6, // 1: relation.FetchRelationItemReply.data:type_name -> relation.RelationItem 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] 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: 9, 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 }