396 lines
14 KiB
Go
396 lines
14 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: device.proto
|
|
|
|
package dinetrpc
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
import fmt "fmt"
|
|
import 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type DeviceType int32
|
|
|
|
const (
|
|
DeviceType_DeviceUnknown DeviceType = 0
|
|
DeviceType_TWS3000WUM DeviceType = 1
|
|
DeviceType_TWS3000DUU DeviceType = 2
|
|
DeviceType_TWS3000DUM DeviceType = 3
|
|
// 3-9 reserved
|
|
DeviceType_ZKL3000 DeviceType = 10
|
|
DeviceType_ZKL3000RC DeviceType = 11
|
|
DeviceType_ZKL3000RCC DeviceType = 12
|
|
// 12-19 reserved
|
|
DeviceType_GreenHub3000 DeviceType = 20
|
|
DeviceType_CRTMGateway DeviceType = 21
|
|
DeviceType_CRTMSensor DeviceType = 22
|
|
DeviceType_CRM3000 DeviceType = 23
|
|
DeviceType_DNCM DeviceType = 24
|
|
DeviceType_ReedSensor DeviceType = 25
|
|
)
|
|
|
|
var DeviceType_name = map[int32]string{
|
|
0: "DeviceUnknown",
|
|
1: "TWS3000WUM",
|
|
2: "TWS3000DUU",
|
|
3: "TWS3000DUM",
|
|
10: "ZKL3000",
|
|
11: "ZKL3000RC",
|
|
12: "ZKL3000RCC",
|
|
20: "GreenHub3000",
|
|
21: "CRTMGateway",
|
|
22: "CRTMSensor",
|
|
23: "CRM3000",
|
|
24: "DNCM",
|
|
25: "ReedSensor",
|
|
}
|
|
var DeviceType_value = map[string]int32{
|
|
"DeviceUnknown": 0,
|
|
"TWS3000WUM": 1,
|
|
"TWS3000DUU": 2,
|
|
"TWS3000DUM": 3,
|
|
"ZKL3000": 10,
|
|
"ZKL3000RC": 11,
|
|
"ZKL3000RCC": 12,
|
|
"GreenHub3000": 20,
|
|
"CRTMGateway": 21,
|
|
"CRTMSensor": 22,
|
|
"CRM3000": 23,
|
|
"DNCM": 24,
|
|
"ReedSensor": 25,
|
|
}
|
|
|
|
func (x DeviceType) String() string {
|
|
return proto.EnumName(DeviceType_name, int32(x))
|
|
}
|
|
func (DeviceType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_device_cb6b97a8e7e72a2e, []int{0}
|
|
}
|
|
|
|
type DeviceState int32
|
|
|
|
const (
|
|
DeviceState_DeviceStateUnknown DeviceState = 0
|
|
DeviceState_DeviceStateService DeviceState = 1
|
|
DeviceState_DeviceStateIdle DeviceState = 2
|
|
DeviceState_DeviceStateArmed DeviceState = 3
|
|
DeviceState_DeviceStateActive DeviceState = 4
|
|
)
|
|
|
|
var DeviceState_name = map[int32]string{
|
|
0: "DeviceStateUnknown",
|
|
1: "DeviceStateService",
|
|
2: "DeviceStateIdle",
|
|
3: "DeviceStateArmed",
|
|
4: "DeviceStateActive",
|
|
}
|
|
var DeviceState_value = map[string]int32{
|
|
"DeviceStateUnknown": 0,
|
|
"DeviceStateService": 1,
|
|
"DeviceStateIdle": 2,
|
|
"DeviceStateArmed": 3,
|
|
"DeviceStateActive": 4,
|
|
}
|
|
|
|
func (x DeviceState) String() string {
|
|
return proto.EnumName(DeviceState_name, int32(x))
|
|
}
|
|
func (DeviceState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_device_cb6b97a8e7e72a2e, []int{1}
|
|
}
|
|
|
|
type DeviceError struct {
|
|
Code Errno `protobuf:"varint,1,opt,name=code,proto3,enum=dinetrpc.Errno" json:"code,omitempty"`
|
|
Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
|
|
First uint64 `protobuf:"varint,3,opt,name=first,proto3" json:"first,omitempty"`
|
|
Last uint64 `protobuf:"varint,4,opt,name=last,proto3" json:"last,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeviceError) Reset() { *m = DeviceError{} }
|
|
func (m *DeviceError) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceError) ProtoMessage() {}
|
|
func (*DeviceError) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_device_cb6b97a8e7e72a2e, []int{0}
|
|
}
|
|
func (m *DeviceError) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeviceError.Unmarshal(m, b)
|
|
}
|
|
func (m *DeviceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeviceError.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *DeviceError) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeviceError.Merge(dst, src)
|
|
}
|
|
func (m *DeviceError) XXX_Size() int {
|
|
return xxx_messageInfo_DeviceError.Size(m)
|
|
}
|
|
func (m *DeviceError) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeviceError.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeviceError proto.InternalMessageInfo
|
|
|
|
func (m *DeviceError) GetCode() Errno {
|
|
if m != nil {
|
|
return m.Code
|
|
}
|
|
return Errno_Ok
|
|
}
|
|
|
|
func (m *DeviceError) GetCount() uint32 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DeviceError) GetFirst() uint64 {
|
|
if m != nil {
|
|
return m.First
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DeviceError) GetLast() uint64 {
|
|
if m != nil {
|
|
return m.Last
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeviceInfoItem struct {
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
Version map[string]string `protobuf:"bytes,2,rep,name=version" json:"version,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeviceInfoItem) Reset() { *m = DeviceInfoItem{} }
|
|
func (m *DeviceInfoItem) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceInfoItem) ProtoMessage() {}
|
|
func (*DeviceInfoItem) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_device_cb6b97a8e7e72a2e, []int{1}
|
|
}
|
|
func (m *DeviceInfoItem) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeviceInfoItem.Unmarshal(m, b)
|
|
}
|
|
func (m *DeviceInfoItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeviceInfoItem.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *DeviceInfoItem) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeviceInfoItem.Merge(dst, src)
|
|
}
|
|
func (m *DeviceInfoItem) XXX_Size() int {
|
|
return xxx_messageInfo_DeviceInfoItem.Size(m)
|
|
}
|
|
func (m *DeviceInfoItem) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeviceInfoItem.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeviceInfoItem proto.InternalMessageInfo
|
|
|
|
func (m *DeviceInfoItem) GetType() string {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeviceInfoItem) GetVersion() map[string]string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeviceInfoResult struct {
|
|
Result []*DeviceInfoItem `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeviceInfoResult) Reset() { *m = DeviceInfoResult{} }
|
|
func (m *DeviceInfoResult) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceInfoResult) ProtoMessage() {}
|
|
func (*DeviceInfoResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_device_cb6b97a8e7e72a2e, []int{2}
|
|
}
|
|
func (m *DeviceInfoResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeviceInfoResult.Unmarshal(m, b)
|
|
}
|
|
func (m *DeviceInfoResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeviceInfoResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *DeviceInfoResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeviceInfoResult.Merge(dst, src)
|
|
}
|
|
func (m *DeviceInfoResult) XXX_Size() int {
|
|
return xxx_messageInfo_DeviceInfoResult.Size(m)
|
|
}
|
|
func (m *DeviceInfoResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeviceInfoResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeviceInfoResult proto.InternalMessageInfo
|
|
|
|
func (m *DeviceInfoResult) GetResult() []*DeviceInfoItem {
|
|
if m != nil {
|
|
return m.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeviceDataItem struct {
|
|
State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
|
|
Error bool `protobuf:"varint,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
Errors []Errno `protobuf:"varint,3,rep,packed,name=errors,enum=dinetrpc.Errno" json:"errors,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeviceDataItem) Reset() { *m = DeviceDataItem{} }
|
|
func (m *DeviceDataItem) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceDataItem) ProtoMessage() {}
|
|
func (*DeviceDataItem) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_device_cb6b97a8e7e72a2e, []int{3}
|
|
}
|
|
func (m *DeviceDataItem) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeviceDataItem.Unmarshal(m, b)
|
|
}
|
|
func (m *DeviceDataItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeviceDataItem.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *DeviceDataItem) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeviceDataItem.Merge(dst, src)
|
|
}
|
|
func (m *DeviceDataItem) XXX_Size() int {
|
|
return xxx_messageInfo_DeviceDataItem.Size(m)
|
|
}
|
|
func (m *DeviceDataItem) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeviceDataItem.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeviceDataItem proto.InternalMessageInfo
|
|
|
|
func (m *DeviceDataItem) GetState() string {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeviceDataItem) GetError() bool {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *DeviceDataItem) GetErrors() []Errno {
|
|
if m != nil {
|
|
return m.Errors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeviceDataResult struct {
|
|
Result []*DeviceDataItem `protobuf:"bytes,1,rep,name=result" json:"result,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeviceDataResult) Reset() { *m = DeviceDataResult{} }
|
|
func (m *DeviceDataResult) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceDataResult) ProtoMessage() {}
|
|
func (*DeviceDataResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_device_cb6b97a8e7e72a2e, []int{4}
|
|
}
|
|
func (m *DeviceDataResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeviceDataResult.Unmarshal(m, b)
|
|
}
|
|
func (m *DeviceDataResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeviceDataResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *DeviceDataResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeviceDataResult.Merge(dst, src)
|
|
}
|
|
func (m *DeviceDataResult) XXX_Size() int {
|
|
return xxx_messageInfo_DeviceDataResult.Size(m)
|
|
}
|
|
func (m *DeviceDataResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeviceDataResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeviceDataResult proto.InternalMessageInfo
|
|
|
|
func (m *DeviceDataResult) GetResult() []*DeviceDataItem {
|
|
if m != nil {
|
|
return m.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*DeviceError)(nil), "dinetrpc.DeviceError")
|
|
proto.RegisterType((*DeviceInfoItem)(nil), "dinetrpc.DeviceInfoItem")
|
|
proto.RegisterMapType((map[string]string)(nil), "dinetrpc.DeviceInfoItem.VersionEntry")
|
|
proto.RegisterType((*DeviceInfoResult)(nil), "dinetrpc.DeviceInfoResult")
|
|
proto.RegisterType((*DeviceDataItem)(nil), "dinetrpc.DeviceDataItem")
|
|
proto.RegisterType((*DeviceDataResult)(nil), "dinetrpc.DeviceDataResult")
|
|
proto.RegisterEnum("dinetrpc.DeviceType", DeviceType_name, DeviceType_value)
|
|
proto.RegisterEnum("dinetrpc.DeviceState", DeviceState_name, DeviceState_value)
|
|
}
|
|
|
|
func init() { proto.RegisterFile("device.proto", fileDescriptor_device_cb6b97a8e7e72a2e) }
|
|
|
|
var fileDescriptor_device_cb6b97a8e7e72a2e = []byte{
|
|
// 496 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4d, 0x6f, 0xda, 0x40,
|
|
0x10, 0xed, 0x62, 0x27, 0x81, 0x31, 0x1f, 0x9b, 0x2d, 0x49, 0xdd, 0x9c, 0x10, 0x55, 0x55, 0x94,
|
|
0x03, 0x42, 0xc9, 0xa5, 0xca, 0xa5, 0xaa, 0x00, 0xa5, 0xa8, 0x75, 0x0f, 0x0b, 0x34, 0x52, 0x6f,
|
|
0x8e, 0x3d, 0x91, 0xac, 0x90, 0x5d, 0xb4, 0x5e, 0x88, 0x38, 0xf5, 0xb7, 0xf4, 0x47, 0xf5, 0xff,
|
|
0x54, 0xbb, 0x6b, 0x17, 0x23, 0xb5, 0x52, 0x6f, 0xef, 0xbd, 0x79, 0xc3, 0xbc, 0x99, 0xc5, 0xd0,
|
|
0x4c, 0x71, 0x9b, 0x25, 0x38, 0x5c, 0x2b, 0xa9, 0x25, 0xab, 0xa7, 0x99, 0x40, 0xad, 0xd6, 0xc9,
|
|
0x45, 0x80, 0x4a, 0x49, 0xe5, 0xe4, 0xbe, 0x82, 0x60, 0x62, 0x6d, 0x53, 0x23, 0xb2, 0x37, 0xe0,
|
|
0x27, 0x32, 0xc5, 0x90, 0xf4, 0xc8, 0xa0, 0x7d, 0xd5, 0x19, 0x96, 0x4d, 0xc3, 0xa9, 0x52, 0x42,
|
|
0x72, 0x5b, 0x64, 0x5d, 0x38, 0x4a, 0xe4, 0x46, 0xe8, 0xb0, 0xd6, 0x23, 0x83, 0x16, 0x77, 0xc4,
|
|
0xa8, 0x0f, 0x99, 0xca, 0x75, 0xe8, 0xf5, 0xc8, 0xc0, 0xe7, 0x8e, 0x30, 0x06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