123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- // 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"`
- 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 ""
- }
- // 更新设备状态
- 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
- type GetAllDustSnRequest struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *GetAllDustSnRequest) Reset() { *m = GetAllDustSnRequest{} }
- func (m *GetAllDustSnRequest) String() string { return proto.CompactTextString(m) }
- func (*GetAllDustSnRequest) ProtoMessage() {}
- func (*GetAllDustSnRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{6}
- }
- func (m *GetAllDustSnRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_GetAllDustSnRequest.Unmarshal(m, b)
- }
- func (m *GetAllDustSnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_GetAllDustSnRequest.Marshal(b, m, deterministic)
- }
- func (m *GetAllDustSnRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetAllDustSnRequest.Merge(m, src)
- }
- func (m *GetAllDustSnRequest) XXX_Size() int {
- return xxx_messageInfo_GetAllDustSnRequest.Size(m)
- }
- func (m *GetAllDustSnRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GetAllDustSnRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_GetAllDustSnRequest proto.InternalMessageInfo
- type GetAllDustSnReply struct {
- Sns []string `protobuf:"bytes,1,rep,name=sns,proto3" json:"sns"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *GetAllDustSnReply) Reset() { *m = GetAllDustSnReply{} }
- func (m *GetAllDustSnReply) String() string { return proto.CompactTextString(m) }
- func (*GetAllDustSnReply) ProtoMessage() {}
- func (*GetAllDustSnReply) Descriptor() ([]byte, []int) {
- return fileDescriptor_870276a56ac00da5, []int{7}
- }
- func (m *GetAllDustSnReply) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_GetAllDustSnReply.Unmarshal(m, b)
- }
- func (m *GetAllDustSnReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_GetAllDustSnReply.Marshal(b, m, deterministic)
- }
- func (m *GetAllDustSnReply) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GetAllDustSnReply.Merge(m, src)
- }
- func (m *GetAllDustSnReply) XXX_Size() int {
- return xxx_messageInfo_GetAllDustSnReply.Size(m)
- }
- func (m *GetAllDustSnReply) XXX_DiscardUnknown() {
- xxx_messageInfo_GetAllDustSnReply.DiscardUnknown(m)
- }
- var xxx_messageInfo_GetAllDustSnReply proto.InternalMessageInfo
- func (m *GetAllDustSnReply) GetSns() []string {
- if m != nil {
- return m.Sns
- }
- return nil
- }
- 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")
- proto.RegisterType((*GetAllDustSnRequest)(nil), "v1.GetAllDustSnRequest")
- proto.RegisterType((*GetAllDustSnReply)(nil), "v1.GetAllDustSnReply")
- }
- func init() {
- proto.RegisterFile("device.proto", fileDescriptor_870276a56ac00da5)
- }
- var fileDescriptor_870276a56ac00da5 = []byte{
- // 307 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xd1, 0x4a, 0xf3, 0x30,
- 0x14, 0xc7, 0x69, 0xb3, 0x0d, 0x76, 0xbe, 0x0f, 0xdd, 0xb2, 0x55, 0xbb, 0x0b, 0xb1, 0x14, 0x84,
- 0xdd, 0xe8, 0x18, 0x3e, 0x81, 0x5a, 0x90, 0xdd, 0x49, 0x8b, 0x37, 0x5e, 0x38, 0xba, 0x26, 0x42,
- 0xb5, 0x4d, 0x62, 0x93, 0x16, 0xfa, 0x04, 0xbe, 0xb6, 0x34, 0xc9, 0x85, 0x56, 0x8b, 0x77, 0xe7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