Remove gogo/protobuf (#773)

This commit is contained in:
Jesse Peterson
2021-10-16 13:21:24 -07:00
committed by GitHub
parent 6e51f09e5f
commit 5daf4d1c84
59 changed files with 9025 additions and 22291 deletions

View File

@@ -1,181 +1,330 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.18.1
// source: device_command.proto
/*
Package devicecommandproto is a generated protocol buffer package.
It is generated from these files:
device_command.proto
It has these top-level messages:
Command
DeviceCommand
*/
package devicecommandproto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
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 Command struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
LastSentAt int64 `protobuf:"varint,4,opt,name=last_sent_at,json=lastSentAt" json:"last_sent_at,omitempty"`
Acknowledged int64 `protobuf:"varint,5,opt,name=acknowledged" json:"acknowledged,omitempty"`
TimesSent int64 `protobuf:"varint,6,opt,name=times_sent,json=timesSent" json:"times_sent,omitempty"`
LastStatus string `protobuf:"bytes,7,opt,name=last_status,json=lastStatus" json:"last_status,omitempty"`
CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
LastSentAt int64 `protobuf:"varint,4,opt,name=last_sent_at,json=lastSentAt,proto3" json:"last_sent_at,omitempty"`
Acknowledged int64 `protobuf:"varint,5,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"`
TimesSent int64 `protobuf:"varint,6,opt,name=times_sent,json=timesSent,proto3" json:"times_sent,omitempty"`
LastStatus string `protobuf:"bytes,7,opt,name=last_status,json=lastStatus,proto3" json:"last_status,omitempty"`
FailureMessage []byte `protobuf:"bytes,8,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
}
func (m *Command) Reset() { *m = Command{} }
func (m *Command) String() string { return proto.CompactTextString(m) }
func (*Command) ProtoMessage() {}
func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (x *Command) Reset() {
*x = Command{}
if protoimpl.UnsafeEnabled {
mi := &file_device_command_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (m *Command) GetUuid() string {
if m != nil {
return m.Uuid
func (x *Command) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Command) ProtoMessage() {}
func (x *Command) ProtoReflect() protoreflect.Message {
mi := &file_device_command_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 Command.ProtoReflect.Descriptor instead.
func (*Command) Descriptor() ([]byte, []int) {
return file_device_command_proto_rawDescGZIP(), []int{0}
}
func (x *Command) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (m *Command) GetPayload() []byte {
if m != nil {
return m.Payload
func (x *Command) GetPayload() []byte {
if x != nil {
return x.Payload
}
return nil
}
func (m *Command) GetCreatedAt() int64 {
if m != nil {
return m.CreatedAt
func (x *Command) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (m *Command) GetLastSentAt() int64 {
if m != nil {
return m.LastSentAt
func (x *Command) GetLastSentAt() int64 {
if x != nil {
return x.LastSentAt
}
return 0
}
func (m *Command) GetAcknowledged() int64 {
if m != nil {
return m.Acknowledged
func (x *Command) GetAcknowledged() int64 {
if x != nil {
return x.Acknowledged
}
return 0
}
func (m *Command) GetTimesSent() int64 {
if m != nil {
return m.TimesSent
func (x *Command) GetTimesSent() int64 {
if x != nil {
return x.TimesSent
}
return 0
}
func (m *Command) GetLastStatus() string {
if m != nil {
return m.LastStatus
func (x *Command) GetLastStatus() string {
if x != nil {
return x.LastStatus
}
return ""
}
func (m *Command) GetFailureMessage() []byte {
if m != nil {
return m.FailureMessage
func (x *Command) GetFailureMessage() []byte {
if x != nil {
return x.FailureMessage
}
return nil
}
type DeviceCommand struct {
DeviceUdid string `protobuf:"bytes,1,opt,name=device_udid,json=deviceUdid" json:"device_udid,omitempty"`
Commands []*Command `protobuf:"bytes,2,rep,name=commands" json:"commands,omitempty"`
Completed []*Command `protobuf:"bytes,3,rep,name=completed" json:"completed,omitempty"`
Failed []*Command `protobuf:"bytes,4,rep,name=failed" json:"failed,omitempty"`
NotNow []*Command `protobuf:"bytes,5,rep,name=not_now,json=notNow" json:"not_now,omitempty"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DeviceUdid string `protobuf:"bytes,1,opt,name=device_udid,json=deviceUdid,proto3" json:"device_udid,omitempty"`
Commands []*Command `protobuf:"bytes,2,rep,name=commands,proto3" json:"commands,omitempty"`
Completed []*Command `protobuf:"bytes,3,rep,name=completed,proto3" json:"completed,omitempty"`
Failed []*Command `protobuf:"bytes,4,rep,name=failed,proto3" json:"failed,omitempty"`
NotNow []*Command `protobuf:"bytes,5,rep,name=not_now,json=notNow,proto3" json:"not_now,omitempty"`
}
func (m *DeviceCommand) Reset() { *m = DeviceCommand{} }
func (m *DeviceCommand) String() string { return proto.CompactTextString(m) }
func (*DeviceCommand) ProtoMessage() {}
func (*DeviceCommand) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (x *DeviceCommand) Reset() {
*x = DeviceCommand{}
if protoimpl.UnsafeEnabled {
mi := &file_device_command_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (m *DeviceCommand) GetDeviceUdid() string {
if m != nil {
return m.DeviceUdid
func (x *DeviceCommand) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeviceCommand) ProtoMessage() {}
func (x *DeviceCommand) ProtoReflect() protoreflect.Message {
mi := &file_device_command_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 DeviceCommand.ProtoReflect.Descriptor instead.
func (*DeviceCommand) Descriptor() ([]byte, []int) {
return file_device_command_proto_rawDescGZIP(), []int{1}
}
func (x *DeviceCommand) GetDeviceUdid() string {
if x != nil {
return x.DeviceUdid
}
return ""
}
func (m *DeviceCommand) GetCommands() []*Command {
if m != nil {
return m.Commands
func (x *DeviceCommand) GetCommands() []*Command {
if x != nil {
return x.Commands
}
return nil
}
func (m *DeviceCommand) GetCompleted() []*Command {
if m != nil {
return m.Completed
func (x *DeviceCommand) GetCompleted() []*Command {
if x != nil {
return x.Completed
}
return nil
}
func (m *DeviceCommand) GetFailed() []*Command {
if m != nil {
return m.Failed
func (x *DeviceCommand) GetFailed() []*Command {
if x != nil {
return x.Failed
}
return nil
}
func (m *DeviceCommand) GetNotNow() []*Command {
if m != nil {
return m.NotNow
func (x *DeviceCommand) GetNotNow() []*Command {
if x != nil {
return x.NotNow
}
return nil
}
func init() {
proto.RegisterType((*Command)(nil), "devicecommandproto.Command")
proto.RegisterType((*DeviceCommand)(nil), "devicecommandproto.DeviceCommand")
var File_device_command_proto protoreflect.FileDescriptor
var file_device_command_proto_rawDesc = []byte{
0x0a, 0x14, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f,
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x02, 0x0a, 0x07, 0x43,
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79,
0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x74,
0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x53,
0x65, 0x6e, 0x74, 0x41, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c,
0x65, 0x64, 0x67, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61, 0x63, 0x6b,
0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74,
0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c,
0x61, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x61, 0x69,
0x6c, 0x75, 0x72, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x0d, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6d,
0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75,
0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63,
0x65, 0x55, 0x64, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d,
0x6d, 0x61, 0x6e, 0x64, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x39,
0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x09,
0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x06, 0x66, 0x61, 0x69,
0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69,
0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43,
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x34,
0x0a, 0x07, 0x6e, 0x6f, 0x74, 0x5f, 0x6e, 0x6f, 0x77, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x06, 0x6e, 0x6f,
0x74, 0x4e, 0x6f, 0x77, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72,
0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x71, 0x75,
0x65, 0x75, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x65, 0x76,
0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
func init() { proto.RegisterFile("device_command.proto", fileDescriptor0) }
var (
file_device_command_proto_rawDescOnce sync.Once
file_device_command_proto_rawDescData = file_device_command_proto_rawDesc
)
var fileDescriptor0 = []byte{
// 324 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x41, 0x4b, 0xeb, 0x40,
0x10, 0xc7, 0x49, 0xd2, 0x36, 0xed, 0xb4, 0xef, 0x3d, 0x18, 0xde, 0x61, 0xe1, 0xf1, 0x68, 0xe8,
0xc5, 0x9c, 0x7a, 0xb0, 0x82, 0x78, 0x2c, 0x7a, 0xd5, 0x43, 0xc4, 0x73, 0x58, 0xb3, 0x63, 0x09,
0x26, 0xbb, 0xa5, 0x3b, 0xb1, 0xf8, 0x01, 0x3c, 0xfb, 0x95, 0x25, 0xbb, 0xdb, 0x8a, 0x78, 0xa8,
0xb7, 0xe4, 0xc7, 0x7f, 0xe6, 0x3f, 0xfb, 0x83, 0xbf, 0x8a, 0x5e, 0xea, 0x8a, 0xca, 0xca, 0xb4,
0xad, 0xd4, 0x6a, 0xb9, 0xdd, 0x19, 0x36, 0x88, 0x9e, 0x06, 0xe8, 0xd8, 0xe2, 0x2d, 0x86, 0xf4,
0xda, 0x03, 0x44, 0x18, 0x74, 0x5d, 0xad, 0x44, 0x94, 0x45, 0xf9, 0xa4, 0x70, 0xdf, 0x28, 0x20,
0xdd, 0xca, 0xd7, 0xc6, 0x48, 0x25, 0xe2, 0x2c, 0xca, 0x67, 0xc5, 0xe1, 0x17, 0xff, 0x03, 0x54,
0x3b, 0x92, 0x4c, 0xaa, 0x94, 0x2c, 0x92, 0x2c, 0xca, 0x93, 0x62, 0x12, 0xc8, 0x9a, 0x31, 0x83,
0x59, 0x23, 0x2d, 0x97, 0x96, 0x34, 0xf7, 0x81, 0x81, 0x0b, 0x40, 0xcf, 0xee, 0x49, 0xf3, 0x9a,
0x71, 0x01, 0x33, 0x59, 0x3d, 0x6b, 0xb3, 0x6f, 0x48, 0x6d, 0x48, 0x89, 0xa1, 0x4b, 0x7c, 0x61,
0x7d, 0x09, 0xd7, 0x2d, 0x59, 0xb7, 0x46, 0x8c, 0x7c, 0x89, 0x23, 0xfd, 0x12, 0x9c, 0xc3, 0xd4,
0x97, 0xb0, 0xe4, 0xce, 0x8a, 0xd4, 0x1d, 0xee, 0x3b, 0x1c, 0xc1, 0x33, 0xf8, 0xf3, 0x24, 0xeb,
0xa6, 0xdb, 0x51, 0xd9, 0x92, 0xb5, 0x72, 0x43, 0x62, 0xec, 0x9e, 0xf1, 0x3b, 0xe0, 0x5b, 0x4f,
0x17, 0xef, 0x31, 0xfc, 0xba, 0x71, 0x7a, 0x0e, 0x36, 0xe6, 0x30, 0x0d, 0x16, 0x3b, 0x75, 0x94,
0x02, 0x1e, 0x3d, 0xa8, 0x5a, 0xe1, 0x25, 0x8c, 0x83, 0x4a, 0x2b, 0xe2, 0x2c, 0xc9, 0xa7, 0xe7,
0xff, 0x96, 0xdf, 0x0d, 0x2f, 0xc3, 0xbe, 0xe2, 0x18, 0xc6, 0x2b, 0x98, 0x54, 0xa6, 0xdd, 0x36,
0xc4, 0xa4, 0x44, 0x72, 0x7a, 0xf2, 0x33, 0x8d, 0x2b, 0x18, 0xf5, 0x87, 0x93, 0x12, 0x83, 0xd3,
0x73, 0x21, 0x8a, 0x17, 0x90, 0x6a, 0xc3, 0xa5, 0x36, 0x7b, 0x31, 0xfc, 0xc1, 0x94, 0x36, 0x7c,
0x67, 0xf6, 0x8f, 0x23, 0x87, 0x57, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x83, 0x8d, 0x73, 0x78,
0x4c, 0x02, 0x00, 0x00,
func file_device_command_proto_rawDescGZIP() []byte {
file_device_command_proto_rawDescOnce.Do(func() {
file_device_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_device_command_proto_rawDescData)
})
return file_device_command_proto_rawDescData
}
var file_device_command_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_device_command_proto_goTypes = []interface{}{
(*Command)(nil), // 0: devicecommandproto.Command
(*DeviceCommand)(nil), // 1: devicecommandproto.DeviceCommand
}
var file_device_command_proto_depIdxs = []int32{
0, // 0: devicecommandproto.DeviceCommand.commands:type_name -> devicecommandproto.Command
0, // 1: devicecommandproto.DeviceCommand.completed:type_name -> devicecommandproto.Command
0, // 2: devicecommandproto.DeviceCommand.failed:type_name -> devicecommandproto.Command
0, // 3: devicecommandproto.DeviceCommand.not_now:type_name -> devicecommandproto.Command
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_device_command_proto_init() }
func file_device_command_proto_init() {
if File_device_command_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_device_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Command); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_device_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeviceCommand); 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_device_command_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_device_command_proto_goTypes,
DependencyIndexes: file_device_command_proto_depIdxs,
MessageInfos: file_device_command_proto_msgTypes,
}.Build()
File_device_command_proto = out.File
file_device_command_proto_rawDesc = nil
file_device_command_proto_goTypes = nil
file_device_command_proto_depIdxs = nil
}