// Code generated by protoc-gen-go. DO NOT EDIT. // source: elegoo.proto /* Package main is a generated protocol buffer package. It is generated from these files: elegoo.proto It has these top-level messages: Speed Command UltraSonic InfraRed RemoteControl Event */ package main import proto "github.com/golang/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.ProtoPackageIsVersion2 // please upgrade the proto package type Speed struct { L int32 `protobuf:"zigzag32,1,opt,name=L" json:"L,omitempty"` R int32 `protobuf:"zigzag32,2,opt,name=R" json:"R,omitempty"` } func (m *Speed) Reset() { *m = Speed{} } func (m *Speed) String() string { return proto.CompactTextString(m) } func (*Speed) ProtoMessage() {} func (*Speed) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *Speed) GetL() int32 { if m != nil { return m.L } return 0 } func (m *Speed) GetR() int32 { if m != nil { return m.R } return 0 } type Command struct { Speed *Speed `protobuf:"bytes,1,opt,name=Speed" json:"Speed,omitempty"` Stop bool `protobuf:"varint,3,opt,name=Stop" json:"Stop,omitempty"` Direction uint32 `protobuf:"varint,4,opt,name=Direction" json:"Direction,omitempty"` StopAfter uint32 `protobuf:"varint,5,opt,name=StopAfter" json:"StopAfter,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{1} } func (m *Command) GetSpeed() *Speed { if m != nil { return m.Speed } return nil } func (m *Command) GetStop() bool { if m != nil { return m.Stop } return false } func (m *Command) GetDirection() uint32 { if m != nil { return m.Direction } return 0 } func (m *Command) GetStopAfter() uint32 { if m != nil { return m.StopAfter } return 0 } type UltraSonic struct { Distance uint32 `protobuf:"varint,1,opt,name=Distance" json:"Distance,omitempty"` Direction int32 `protobuf:"zigzag32,2,opt,name=Direction" json:"Direction,omitempty"` } func (m *UltraSonic) Reset() { *m = UltraSonic{} } func (m *UltraSonic) String() string { return proto.CompactTextString(m) } func (*UltraSonic) ProtoMessage() {} func (*UltraSonic) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } func (m *UltraSonic) GetDistance() uint32 { if m != nil { return m.Distance } return 0 } func (m *UltraSonic) GetDirection() int32 { if m != nil { return m.Direction } return 0 } type InfraRed struct { R bool `protobuf:"varint,1,opt,name=R" json:"R,omitempty"` C bool `protobuf:"varint,2,opt,name=C" json:"C,omitempty"` L bool `protobuf:"varint,3,opt,name=L" json:"L,omitempty"` } func (m *InfraRed) Reset() { *m = InfraRed{} } func (m *InfraRed) String() string { return proto.CompactTextString(m) } func (*InfraRed) ProtoMessage() {} func (*InfraRed) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } func (m *InfraRed) GetR() bool { if m != nil { return m.R } return false } func (m *InfraRed) GetC() bool { if m != nil { return m.C } return false } func (m *InfraRed) GetL() bool { if m != nil { return m.L } return false } type RemoteControl struct { Key uint32 `protobuf:"varint,1,opt,name=Key" json:"Key,omitempty"` } func (m *RemoteControl) Reset() { *m = RemoteControl{} } func (m *RemoteControl) String() string { return proto.CompactTextString(m) } func (*RemoteControl) ProtoMessage() {} func (*RemoteControl) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *RemoteControl) GetKey() uint32 { if m != nil { return m.Key } return 0 } type Event struct { Head *UltraSonic `protobuf:"bytes,1,opt,name=Head" json:"Head,omitempty"` Sensor *InfraRed `protobuf:"bytes,2,opt,name=Sensor" json:"Sensor,omitempty"` Remote *RemoteControl `protobuf:"bytes,3,opt,name=Remote" json:"Remote,omitempty"` TimeStamp uint32 `protobuf:"varint,4,opt,name=TimeStamp" json:"TimeStamp,omitempty"` } func (m *Event) Reset() { *m = Event{} } func (m *Event) String() string { return proto.CompactTextString(m) } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func (m *Event) GetHead() *UltraSonic { if m != nil { return m.Head } return nil } func (m *Event) GetSensor() *InfraRed { if m != nil { return m.Sensor } return nil } func (m *Event) GetRemote() *RemoteControl { if m != nil { return m.Remote } return nil } func (m *Event) GetTimeStamp() uint32 { if m != nil { return m.TimeStamp } return 0 } func init() { proto.RegisterType((*Speed)(nil), "elegoo.Speed") proto.RegisterType((*Command)(nil), "elegoo.Command") proto.RegisterType((*UltraSonic)(nil), "elegoo.UltraSonic") proto.RegisterType((*InfraRed)(nil), "elegoo.InfraRed") proto.RegisterType((*RemoteControl)(nil), "elegoo.RemoteControl") proto.RegisterType((*Event)(nil), "elegoo.Event") } func init() { proto.RegisterFile("elegoo.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ // 322 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x52, 0x4f, 0x4b, 0xc3, 0x30, 0x1c, 0x25, 0xae, 0xab, 0xf5, 0xb7, 0x15, 0x66, 0x40, 0x28, 0xe2, 0x61, 0x56, 0x90, 0x5e, 0xdc, 0x61, 0xfa, 0x05, 0xb4, 0x53, 0x14, 0x77, 0xfa, 0x55, 0x2f, 0xde, 0xe2, 0xf6, 0x9b, 0x14, 0xd6, 0xa4, 0x64, 0x41, 0xf0, 0xe2, 0xc7, 0xf1, 0x73, 0x4a, 0x92, 0x66, 0x65, 0xb7, 0xbc, 0x3f, 0xcd, 0x7b, 0x7d, 0x04, 0xc6, 0xb4, 0xa5, 0x2f, 0xa5, 0x66, 0xad, 0x56, 0x46, 0xf1, 0xd8, 0xa3, 0xfc, 0x0a, 0x86, 0x55, 0x4b, 0xb4, 0xe6, 0x63, 0x60, 0xcb, 0x8c, 0x4d, 0x59, 0x71, 0x8a, 0x6c, 0x69, 0x11, 0x66, 0x47, 0x1e, 0x61, 0xfe, 0x0b, 0xc7, 0xa5, 0x6a, 0x1a, 0x21, 0xd7,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