// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc (unknown) // source: blocks.proto package mcs 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 DeviceType int32 const ( DeviceType_Pc DeviceType = 0 DeviceType_Android DeviceType = 1 DeviceType_Ios DeviceType = 2 DeviceType_Web DeviceType = 3 ) // Enum value maps for DeviceType. var ( DeviceType_name = map[int32]string{ 0: "Pc", 1: "Android", 2: "Ios", 3: "Web", } DeviceType_value = map[string]int32{ "Pc": 0, "Android": 1, "Ios": 2, "Web": 3, } ) func (x DeviceType) Enum() *DeviceType { p := new(DeviceType) *p = x return p } func (x DeviceType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (DeviceType) Descriptor() protoreflect.EnumDescriptor { return file_blocks_proto_enumTypes[0].Descriptor() } func (DeviceType) Type() protoreflect.EnumType { return &file_blocks_proto_enumTypes[0] } func (x DeviceType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use DeviceType.Descriptor instead. func (DeviceType) EnumDescriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{0} } // 消息类型 type MsgType int32 const ( MsgType_Exception MsgType = 0 //异常提示 MsgType_Chat MsgType = 1 //单聊 MsgType_Group MsgType = 2 //群聊 MsgType_System MsgType = 3 //系统提示 MsgType_Event MsgType = 4 //事件 ) // Enum value maps for MsgType. var ( MsgType_name = map[int32]string{ 0: "Exception", 1: "Chat", 2: "Group", 3: "System", 4: "Event", } MsgType_value = map[string]int32{ "Exception": 0, "Chat": 1, "Group": 2, "System": 3, "Event": 4, } ) func (x MsgType) Enum() *MsgType { p := new(MsgType) *p = x return p } func (x MsgType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MsgType) Descriptor() protoreflect.EnumDescriptor { return file_blocks_proto_enumTypes[1].Descriptor() } func (MsgType) Type() protoreflect.EnumType { return &file_blocks_proto_enumTypes[1] } func (x MsgType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use MsgType.Descriptor instead. func (MsgType) EnumDescriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{1} } 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[0] 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[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 Empty.ProtoReflect.Descriptor instead. func (*Empty) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{0} } 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[1] 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[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 FetchRequest.ProtoReflect.Descriptor instead. func (*FetchRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{1} } 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[2] 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[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 IdentRequest.ProtoReflect.Descriptor instead. func (*IdentRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{2} } 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[3] 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[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 VersionRequest.ProtoReflect.Descriptor instead. func (*VersionRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{3} } 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[4] 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[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 SearchRequest.ProtoReflect.Descriptor instead. func (*SearchRequest) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{4} } 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[5] 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[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 StatusReply.ProtoReflect.Descriptor instead. func (*StatusReply) Descriptor() ([]byte, []int) { return file_blocks_proto_rawDescGZIP(), []int{5} } 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 } var File_blocks_proto protoreflect.FileDescriptor const file_blocks_proto_rawDesc = "" + "\n" + "\fblocks.proto\x12\x03mcs\"\a\n" + "\x05Empty\"\xb6\x01\n" + "\fFetchRequest\x12\x17\n" + "\apage_no\x18\x01 \x01(\x03R\x06pageNo\x12\x1b\n" + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x125\n" + "\x06params\x18\x03 \x03(\v2\x1d.mcs.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*3\n" + "\n" + "DeviceType\x12\x06\n" + "\x02Pc\x10\x00\x12\v\n" + "\aAndroid\x10\x01\x12\a\n" + "\x03Ios\x10\x02\x12\a\n" + "\x03Web\x10\x03*D\n" + "\aMsgType\x12\r\n" + "\tException\x10\x00\x12\b\n" + "\x04Chat\x10\x01\x12\t\n" + "\x05Group\x10\x02\x12\n" + "\n" + "\x06System\x10\x03\x12\t\n" + "\x05Event\x10\x04B\aZ\x05.;mcsb\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_enumTypes = make([]protoimpl.EnumInfo, 2) var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_blocks_proto_goTypes = []any{ (DeviceType)(0), // 0: mcs.DeviceType (MsgType)(0), // 1: mcs.MsgType (*Empty)(nil), // 2: mcs.Empty (*FetchRequest)(nil), // 3: mcs.FetchRequest (*IdentRequest)(nil), // 4: mcs.IdentRequest (*VersionRequest)(nil), // 5: mcs.VersionRequest (*SearchRequest)(nil), // 6: mcs.SearchRequest (*StatusReply)(nil), // 7: mcs.StatusReply nil, // 8: mcs.FetchRequest.ParamsEntry } var file_blocks_proto_depIdxs = []int32{ 8, // 0: mcs.FetchRequest.params:type_name -> mcs.FetchRequest.ParamsEntry 1, // [1:1] is the sub-list for method output_type 1, // [1:1] 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_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: 2, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_blocks_proto_goTypes, DependencyIndexes: file_blocks_proto_depIdxs, EnumInfos: file_blocks_proto_enumTypes, MessageInfos: file_blocks_proto_msgTypes, }.Build() File_blocks_proto = out.File file_blocks_proto_goTypes = nil file_blocks_proto_depIdxs = nil }