// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 // protoc v4.23.1 // source: mqtt/mqtt.proto package proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) 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 ServiceState int32 const ( ServiceState_Normal ServiceState = 0 // 正常 ServiceState_Offline ServiceState = 1 // 离线 ) // Enum value maps for ServiceState. var ( ServiceState_name = map[int32]string{ 0: "Normal", 1: "Offline", } ServiceState_value = map[string]int32{ "Normal": 0, "Offline": 1, } ) func (x ServiceState) Enum() *ServiceState { p := new(ServiceState) *p = x return p } func (x ServiceState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (ServiceState) Descriptor() protoreflect.EnumDescriptor { return file_mqtt_mqtt_proto_enumTypes[0].Descriptor() } func (ServiceState) Type() protoreflect.EnumType { return &file_mqtt_mqtt_proto_enumTypes[0] } func (x ServiceState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use ServiceState.Descriptor instead. func (ServiceState) EnumDescriptor() ([]byte, []int) { return file_mqtt_mqtt_proto_rawDescGZIP(), []int{0} } type ServiceRequest int32 const ( ServiceRequest_Logs ServiceRequest = 0 // 日志 ) // Enum value maps for ServiceRequest. var ( ServiceRequest_name = map[int32]string{ 0: "Logs", } ServiceRequest_value = map[string]int32{ "Logs": 0, } ) func (x ServiceRequest) Enum() *ServiceRequest { p := new(ServiceRequest) *p = x return p } func (x ServiceRequest) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (ServiceRequest) Descriptor() protoreflect.EnumDescriptor { return file_mqtt_mqtt_proto_enumTypes[1].Descriptor() } func (ServiceRequest) Type() protoreflect.EnumType { return &file_mqtt_mqtt_proto_enumTypes[1] } func (x ServiceRequest) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use ServiceRequest.Descriptor instead. func (ServiceRequest) EnumDescriptor() ([]byte, []int) { return file_mqtt_mqtt_proto_rawDescGZIP(), []int{1} } // IOT服务状态 type IotServiceState struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 服务编号 State ServiceState `protobuf:"varint,2,opt,name=state,proto3,enum=mqtt_api.ServiceState" json:"state,omitempty"` // 服务状态 } func (x *IotServiceState) Reset() { *x = IotServiceState{} if protoimpl.UnsafeEnabled { mi := &file_mqtt_mqtt_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *IotServiceState) String() string { return protoimpl.X.MessageStringOf(x) } func (*IotServiceState) ProtoMessage() {} func (x *IotServiceState) ProtoReflect() protoreflect.Message { mi := &file_mqtt_mqtt_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use IotServiceState.ProtoReflect.Descriptor instead. func (*IotServiceState) Descriptor() ([]byte, []int) { return file_mqtt_mqtt_proto_rawDescGZIP(), []int{0} } func (x *IotServiceState) GetCode() string { if x != nil { return x.Code } return "" } func (x *IotServiceState) GetState() ServiceState { if x != nil { return x.State } return ServiceState_Normal } // IOT服务请求 type IotServiceReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 服务编号 Req ServiceRequest `protobuf:"varint,2,opt,name=req,proto3,enum=mqtt_api.ServiceRequest" json:"req,omitempty"` // 服务请求 } func (x *IotServiceReq) Reset() { *x = IotServiceReq{} if protoimpl.UnsafeEnabled { mi := &file_mqtt_mqtt_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *IotServiceReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*IotServiceReq) ProtoMessage() {} func (x *IotServiceReq) ProtoReflect() protoreflect.Message { mi := &file_mqtt_mqtt_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use IotServiceReq.ProtoReflect.Descriptor instead. func (*IotServiceReq) Descriptor() ([]byte, []int) { return file_mqtt_mqtt_proto_rawDescGZIP(), []int{1} } func (x *IotServiceReq) GetCode() string { if x != nil { return x.Code } return "" } func (x *IotServiceReq) GetReq() ServiceRequest { if x != nil { return x.Req } return ServiceRequest_Logs } // IOT服务响应 type IotServiceResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 服务编号 } func (x *IotServiceResp) Reset() { *x = IotServiceResp{} if protoimpl.UnsafeEnabled { mi := &file_mqtt_mqtt_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *IotServiceResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*IotServiceResp) ProtoMessage() {} func (x *IotServiceResp) ProtoReflect() protoreflect.Message { mi := &file_mqtt_mqtt_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use IotServiceResp.ProtoReflect.Descriptor instead. func (*IotServiceResp) Descriptor() ([]byte, []int) { return file_mqtt_mqtt_proto_rawDescGZIP(), []int{2} } func (x *IotServiceResp) GetCode() string { if x != nil { return x.Code } return "" } // IOT驱动数据 type IotQd struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 服务编号 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // 驱动数据 } func (x *IotQd) Reset() { *x = IotQd{} if protoimpl.UnsafeEnabled { mi := &file_mqtt_mqtt_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *IotQd) String() string { return protoimpl.X.MessageStringOf(x) } func (*IotQd) ProtoMessage() {} func (x *IotQd) ProtoReflect() protoreflect.Message { mi := &file_mqtt_mqtt_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use IotQd.ProtoReflect.Descriptor instead. func (*IotQd) Descriptor() ([]byte, []int) { return file_mqtt_mqtt_proto_rawDescGZIP(), []int{3} } func (x *IotQd) GetCode() string { if x != nil { return x.Code } return "" } func (x *IotQd) GetData() []byte { if x != nil { return x.Data } return nil } // IOT采集数据 type IotCj struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 服务编号 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // 采集数据 } func (x *IotCj) Reset() { *x = IotCj{} if protoimpl.UnsafeEnabled { mi := &file_mqtt_mqtt_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *IotCj) String() string { return protoimpl.X.MessageStringOf(x) } func (*IotCj) ProtoMessage() {} func (x *IotCj) ProtoReflect() protoreflect.Message { mi := &file_mqtt_mqtt_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use IotCj.ProtoReflect.Descriptor instead. func (*IotCj) Descriptor() ([]byte, []int) { return file_mqtt_mqtt_proto_rawDescGZIP(), []int{4} } func (x *IotCj) GetCode() string { if x != nil { return x.Code } return "" } func (x *IotCj) GetData() []byte { if x != nil { return x.Data } return nil } var File_mqtt_mqtt_proto protoreflect.FileDescriptor var file_mqtt_mqtt_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x6d, 0x71, 0x74, 0x74, 0x2f, 0x6d, 0x71, 0x74, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6d, 0x71, 0x74, 0x74, 0x5f, 0x61, 0x70, 0x69, 0x22, 0x53, 0x0a, 0x0f, 0x49, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6d, 0x71, 0x74, 0x74, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x4f, 0x0a, 0x0d, 0x49, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x2a, 0x0a, 0x03, 0x72, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x6d, 0x71, 0x74, 0x74, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x03, 0x72, 0x65, 0x71, 0x22, 0x24, 0x0a, 0x0e, 0x49, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x49, 0x6f, 0x74, 0x51, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2f, 0x0a, 0x05, 0x49, 0x6f, 0x74, 0x43, 0x6a, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x27, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x01, 0x2a, 0x1a, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x10, 0x00, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, 0x2f, 0x6d, 0x71, 0x74, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_mqtt_mqtt_proto_rawDescOnce sync.Once file_mqtt_mqtt_proto_rawDescData = file_mqtt_mqtt_proto_rawDesc ) func file_mqtt_mqtt_proto_rawDescGZIP() []byte { file_mqtt_mqtt_proto_rawDescOnce.Do(func() { file_mqtt_mqtt_proto_rawDescData = protoimpl.X.CompressGZIP(file_mqtt_mqtt_proto_rawDescData) }) return file_mqtt_mqtt_proto_rawDescData } var file_mqtt_mqtt_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_mqtt_mqtt_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_mqtt_mqtt_proto_goTypes = []interface{}{ (ServiceState)(0), // 0: mqtt_api.ServiceState (ServiceRequest)(0), // 1: mqtt_api.ServiceRequest (*IotServiceState)(nil), // 2: mqtt_api.IotServiceState (*IotServiceReq)(nil), // 3: mqtt_api.IotServiceReq (*IotServiceResp)(nil), // 4: mqtt_api.IotServiceResp (*IotQd)(nil), // 5: mqtt_api.IotQd (*IotCj)(nil), // 6: mqtt_api.IotCj } var file_mqtt_mqtt_proto_depIdxs = []int32{ 0, // 0: mqtt_api.IotServiceState.state:type_name -> mqtt_api.ServiceState 1, // 1: mqtt_api.IotServiceReq.req:type_name -> mqtt_api.ServiceRequest 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_mqtt_mqtt_proto_init() } func file_mqtt_mqtt_proto_init() { if File_mqtt_mqtt_proto != nil { return } if !protoimpl.UnsafeEnabled { file_mqtt_mqtt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IotServiceState); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_mqtt_mqtt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IotServiceReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_mqtt_mqtt_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IotServiceResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_mqtt_mqtt_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IotQd); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_mqtt_mqtt_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IotCj); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_mqtt_mqtt_proto_rawDesc, NumEnums: 2, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, GoTypes: file_mqtt_mqtt_proto_goTypes, DependencyIndexes: file_mqtt_mqtt_proto_depIdxs, EnumInfos: file_mqtt_mqtt_proto_enumTypes, MessageInfos: file_mqtt_mqtt_proto_msgTypes, }.Build() File_mqtt_mqtt_proto = out.File file_mqtt_mqtt_proto_rawDesc = nil file_mqtt_mqtt_proto_goTypes = nil file_mqtt_mqtt_proto_depIdxs = nil }