123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: device.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1
- import (
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- math "math"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- // 通过设备唯一编码获取设备基础信息
- type DeviceInfoRequest struct {
- Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
- // 设备编码
- DeviceCode int32 `protobuf:"varint,2,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *DeviceInfoRequest) Reset() { *m = DeviceInfoRequest{} }
- func (m *DeviceInfoRequest) String() string { return proto.CompactTextString(m) }
- func (*DeviceInfoRequest) ProtoMessage() {}
- func (*DeviceInfoRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{0}
- }
- func (m *DeviceInfoRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DeviceInfoRequest.Unmarshal(m, b)
- }
- func (m *DeviceInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DeviceInfoRequest.Marshal(b, m, deterministic)
- }
- func (m *DeviceInfoRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeviceInfoRequest.Merge(m, src)
- }
- func (m *DeviceInfoRequest) XXX_Size() int {
- return xxx_messageInfo_DeviceInfoRequest.Size(m)
- }
- func (m *DeviceInfoRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_DeviceInfoRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_DeviceInfoRequest proto.InternalMessageInfo
- func (m *DeviceInfoRequest) GetSn() string {
- if m != nil {
- return m.Sn
- }
- return ""
- }
- func (m *DeviceInfoRequest) GetDeviceCode() int32 {
- if m != nil {
- return m.DeviceCode
- }
- return 0
- }
- type DeviceInfoReply struct {
- // 项目编号
- ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
- // 设备名
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
- // 设备唯一编码
- Sn string `protobuf:"bytes,3,opt,name=sn,proto3" json:"sn"`
- // 设备编码
- DeviceCode int32 `protobuf:"varint,4,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
- // 设备秘钥
- Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key"`
- Id int64 `protobuf:"varint,6,opt,name=id,proto3" json:"id"`
- ProjectCode string `protobuf:"bytes,7,opt,name=project_code,json=projectCode,proto3" json:"project_code"`
- DeviceGuid string `protobuf:"bytes,8,opt,name=device_guid,json=deviceGuid,proto3" json:"device_guid"`
- ProjectName string `protobuf:"bytes,9,opt,name=project_name,json=projectName,proto3" json:"project_name"`
- ProjectAreaCode string `protobuf:"bytes,10,opt,name=project_area_code,json=projectAreaCode,proto3" json:"project_area_code"`
- BindChannel string `protobuf:"bytes,11,opt,name=bind_channel,json=bindChannel,proto3" json:"bind_channel"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *DeviceInfoReply) Reset() { *m = DeviceInfoReply{} }
- func (m *DeviceInfoReply) String() string { return proto.CompactTextString(m) }
- func (*DeviceInfoReply) ProtoMessage() {}
- func (*DeviceInfoReply) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{1}
- }
- func (m *DeviceInfoReply) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DeviceInfoReply.Unmarshal(m, b)
- }
- func (m *DeviceInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DeviceInfoReply.Marshal(b, m, deterministic)
- }
- func (m *DeviceInfoReply) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeviceInfoReply.Merge(m, src)
- }
- func (m *DeviceInfoReply) XXX_Size() int {
- return xxx_messageInfo_DeviceInfoReply.Size(m)
- }
- func (m *DeviceInfoReply) XXX_DiscardUnknown() {
- xxx_messageInfo_DeviceInfoReply.DiscardUnknown(m)
- }
- var xxx_messageInfo_DeviceInfoReply proto.InternalMessageInfo
- func (m *DeviceInfoReply) GetProjectId() int64 {
- if m != nil {
- return m.ProjectId
- }
- return 0
- }
- func (m *DeviceInfoReply) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *DeviceInfoReply) GetSn() string {
- if m != nil {
- return m.Sn
- }
- return ""
- }
- func (m *DeviceInfoReply) GetDeviceCode() int32 {
- if m != nil {
- return m.DeviceCode
- }
- return 0
- }
- func (m *DeviceInfoReply) GetKey() string {
- if m != nil {
- return m.Key
- }
- return ""
- }
- func (m *DeviceInfoReply) GetId() int64 {
- if m != nil {
- return m.Id
- }
- return 0
- }
- func (m *DeviceInfoReply) GetProjectCode() string {
- if m != nil {
- return m.ProjectCode
- }
- return ""
- }
- func (m *DeviceInfoReply) GetDeviceGuid() string {
- if m != nil {
- return m.DeviceGuid
- }
- return ""
- }
- func (m *DeviceInfoReply) GetProjectName() string {
- if m != nil {
- return m.ProjectName
- }
- return ""
- }
- func (m *DeviceInfoReply) GetProjectAreaCode() string {
- if m != nil {
- return m.ProjectAreaCode
- }
- return ""
- }
- func (m *DeviceInfoReply) GetBindChannel() string {
- if m != nil {
- return m.BindChannel
- }
- return ""
- }
- // 更新设备状态
- type DeviceStatusUpdateRequest struct {
- Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
- Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"`
- // 设备编码
- DeviceCode int32 `protobuf:"varint,3,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *DeviceStatusUpdateRequest) Reset() { *m = DeviceStatusUpdateRequest{} }
- func (m *DeviceStatusUpdateRequest) String() string { return proto.CompactTextString(m) }
- func (*DeviceStatusUpdateRequest) ProtoMessage() {}
- func (*DeviceStatusUpdateRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{2}
- }
- func (m *DeviceStatusUpdateRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DeviceStatusUpdateRequest.Unmarshal(m, b)
- }
- func (m *DeviceStatusUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DeviceStatusUpdateRequest.Marshal(b, m, deterministic)
- }
- func (m *DeviceStatusUpdateRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeviceStatusUpdateRequest.Merge(m, src)
- }
- func (m *DeviceStatusUpdateRequest) XXX_Size() int {
- return xxx_messageInfo_DeviceStatusUpdateRequest.Size(m)
- }
- func (m *DeviceStatusUpdateRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_DeviceStatusUpdateRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_DeviceStatusUpdateRequest proto.InternalMessageInfo
- func (m *DeviceStatusUpdateRequest) GetSn() string {
- if m != nil {
- return m.Sn
- }
- return ""
- }
- func (m *DeviceStatusUpdateRequest) GetStatus() int32 {
- if m != nil {
- return m.Status
- }
- return 0
- }
- func (m *DeviceStatusUpdateRequest) GetDeviceCode() int32 {
- if m != nil {
- return m.DeviceCode
- }
- return 0
- }
- type DeviceStatusUpdateReply struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *DeviceStatusUpdateReply) Reset() { *m = DeviceStatusUpdateReply{} }
- func (m *DeviceStatusUpdateReply) String() string { return proto.CompactTextString(m) }
- func (*DeviceStatusUpdateReply) ProtoMessage() {}
- func (*DeviceStatusUpdateReply) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{3}
- }
- func (m *DeviceStatusUpdateReply) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DeviceStatusUpdateReply.Unmarshal(m, b)
- }
- func (m *DeviceStatusUpdateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DeviceStatusUpdateReply.Marshal(b, m, deterministic)
- }
- func (m *DeviceStatusUpdateReply) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeviceStatusUpdateReply.Merge(m, src)
- }
- func (m *DeviceStatusUpdateReply) XXX_Size() int {
- return xxx_messageInfo_DeviceStatusUpdateReply.Size(m)
- }
- func (m *DeviceStatusUpdateReply) XXX_DiscardUnknown() {
- xxx_messageInfo_DeviceStatusUpdateReply.DiscardUnknown(m)
- }
- var xxx_messageInfo_DeviceStatusUpdateReply proto.InternalMessageInfo
- // 设置设备参数
- type DeviceParamSetRequest struct {
- Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
- Param string `protobuf:"bytes,2,opt,name=param,proto3" json:"param"`
- // 设备编码
- DeviceCode int32 `protobuf:"varint,3,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *DeviceParamSetRequest) Reset() { *m = DeviceParamSetRequest{} }
- func (m *DeviceParamSetRequest) String() string { return proto.CompactTextString(m) }
- func (*DeviceParamSetRequest) ProtoMessage() {}
- func (*DeviceParamSetRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{4}
- }
- func (m *DeviceParamSetRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DeviceParamSetRequest.Unmarshal(m, b)
- }
- func (m *DeviceParamSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DeviceParamSetRequest.Marshal(b, m, deterministic)
- }
- func (m *DeviceParamSetRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeviceParamSetRequest.Merge(m, src)
- }
- func (m *DeviceParamSetRequest) XXX_Size() int {
- return xxx_messageInfo_DeviceParamSetRequest.Size(m)
- }
- func (m *DeviceParamSetRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_DeviceParamSetRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_DeviceParamSetRequest proto.InternalMessageInfo
- func (m *DeviceParamSetRequest) GetSn() string {
- if m != nil {
- return m.Sn
- }
- return ""
- }
- func (m *DeviceParamSetRequest) GetParam() string {
- if m != nil {
- return m.Param
- }
- return ""
- }
- func (m *DeviceParamSetRequest) GetDeviceCode() int32 {
- if m != nil {
- return m.DeviceCode
- }
- return 0
- }
- type DeviceParamSetReply struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *DeviceParamSetReply) Reset() { *m = DeviceParamSetReply{} }
- func (m *DeviceParamSetReply) String() string { return proto.CompactTextString(m) }
- func (*DeviceParamSetReply) ProtoMessage() {}
- func (*DeviceParamSetReply) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{5}
- }
- func (m *DeviceParamSetReply) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_DeviceParamSetReply.Unmarshal(m, b)
- }
- func (m *DeviceParamSetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_DeviceParamSetReply.Marshal(b, m, deterministic)
- }
- func (m *DeviceParamSetReply) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DeviceParamSetReply.Merge(m, src)
- }
- func (m *DeviceParamSetReply) XXX_Size() int {
- return xxx_messageInfo_DeviceParamSetReply.Size(m)
- }
- func (m *DeviceParamSetReply) XXX_DiscardUnknown() {
- xxx_messageInfo_DeviceParamSetReply.DiscardUnknown(m)
- }
- var xxx_messageInfo_DeviceParamSetReply proto.InternalMessageInfo
- func init() {
- proto.RegisterType((*DeviceInfoRequest)(nil), "v1.DeviceInfoRequest")
- proto.RegisterType((*DeviceInfoReply)(nil), "v1.DeviceInfoReply")
- proto.RegisterType((*DeviceStatusUpdateRequest)(nil), "v1.DeviceStatusUpdateRequest")
- proto.RegisterType((*DeviceStatusUpdateReply)(nil), "v1.DeviceStatusUpdateReply")
- proto.RegisterType((*DeviceParamSetRequest)(nil), "v1.DeviceParamSetRequest")
- proto.RegisterType((*DeviceParamSetReply)(nil), "v1.DeviceParamSetReply")
- }
- func init() {
- proto.RegisterFile("device.proto", fileDescriptor_870276a56ac00da5)
- }
- var fileDescriptor_870276a56ac00da5 = []byte{
- // 363 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xdd, 0x4e, 0xc2, 0x30,
- 0x18, 0x86, 0xc3, 0x06, 0xe8, 0x3e, 0x88, 0x48, 0x15, 0x1d, 0x89, 0x3f, 0xb0, 0x23, 0x62, 0x82,
- 0x84, 0x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