From 34c4c1a7145c8c224392ca36f70225bf00b418fd Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 11 Dec 2017 23:04:52 +0100 Subject: ... --- elegoo.pb.go | 99 +++++++++++++++++++++++++++--------------------------------- 1 file changed, 45 insertions(+), 54 deletions(-) (limited to 'elegoo.pb.go') diff --git a/elegoo.pb.go b/elegoo.pb.go index 9450be6..847e356 100644 --- a/elegoo.pb.go +++ b/elegoo.pb.go @@ -33,8 +33,9 @@ var _ = math.Inf 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"` + L int32 `protobuf:"zigzag32,1,opt,name=L" json:"L,omitempty"` + R int32 `protobuf:"zigzag32,2,opt,name=R" json:"R,omitempty"` + StopAfter uint32 `protobuf:"varint,3,opt,name=StopAfter" json:"StopAfter,omitempty"` } func (m *Speed) Reset() { *m = Speed{} } @@ -56,11 +57,16 @@ func (m *Speed) GetR() int32 { return 0 } +func (m *Speed) GetStopAfter() uint32 { + if m != nil { + return m.StopAfter + } + 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"` - Look uint32 `protobuf:"varint,4,opt,name=Look" json:"Look,omitempty"` - StopAfter uint32 `protobuf:"varint,5,opt,name=StopAfter" json:"StopAfter,omitempty"` + Speed *Speed `protobuf:"bytes,1,opt,name=Speed" json:"Speed,omitempty"` + Look int32 `protobuf:"zigzag32,2,opt,name=Look" json:"Look,omitempty"` } func (m *Command) Reset() { *m = Command{} } @@ -75,27 +81,13 @@ func (m *Command) GetSpeed() *Speed { return nil } -func (m *Command) GetStop() bool { - if m != nil { - return m.Stop - } - return false -} - -func (m *Command) GetLook() uint32 { +func (m *Command) GetLook() int32 { if m != nil { return m.Look } 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"` @@ -169,10 +161,10 @@ func (m *RemoteControl) GetKey() uint32 { } 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"` + TimeStamp uint32 `protobuf:"varint,1,opt,name=TimeStamp" json:"TimeStamp,omitempty"` + Head *UltraSonic `protobuf:"bytes,2,opt,name=Head" json:"Head,omitempty"` + Sensor *InfraRed `protobuf:"bytes,3,opt,name=Sensor" json:"Sensor,omitempty"` + Remote *RemoteControl `protobuf:"bytes,4,opt,name=Remote" json:"Remote,omitempty"` } func (m *Event) Reset() { *m = Event{} } @@ -180,6 +172,13 @@ func (m *Event) String() string { return proto.CompactTextString(m) } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *Event) GetTimeStamp() uint32 { + if m != nil { + return m.TimeStamp + } + return 0 +} + func (m *Event) GetHead() *UltraSonic { if m != nil { return m.Head @@ -201,13 +200,6 @@ func (m *Event) GetRemote() *RemoteControl { 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") @@ -220,26 +212,25 @@ func init() { func init() { proto.RegisterFile("elegoo.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 323 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 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, 0x91, 0xde, 0x40, 0xf4, - 0xa4, 0xb6, 0xba, 0xc2, 0xee, 0x2f, 0xd1, 0x7d, 0x1e, 0xa1, 0x40, 0x8b, 0x72, 0xa7, 0x8f, 0x50, - 0xe4, 0x5d, 0x03, 0x5d, 0x64, 0x51, 0xa4, 0xe7, 0x10, 0x23, 0x35, 0x6c, 0x28, 0x67, 0x65, 0x34, - 0xef, 0xe4, 0x0c, 0x46, 0xcf, 0xf4, 0xed, 0xbd, 0xed, 0x98, 0xfe, 0x08, 0x18, 0xdf, 0x7f, 0x91, - 0x32, 0xf2, 0x12, 0x82, 0x47, 0xaa, 0xfa, 0x52, 0x64, 0x5f, 0xca, 0x10, 0x1f, 0xdd, 0x5e, 0x66, - 0x10, 0x96, 0xa4, 0xf6, 0xac, 0x9d, 0xeb, 0x64, 0x39, 0xeb, 0x95, 0x7d, 0x40, 0xf4, 0x7b, 0x79, - 0x05, 0x61, 0x67, 0xef, 0x12, 0x4d, 0x96, 0x27, 0xbd, 0xf2, 0x5f, 0x28, 0xf4, 0x22, 0xdb, 0xc0, - 0x4b, 0xdd, 0x50, 0x69, 0xaa, 0xa6, 0xf5, 0x15, 0x0f, 0xc4, 0x5d, 0xf8, 0x16, 0x34, 0x55, 0xad, - 0xde, 0x43, 0xf7, 0xf6, 0xd7, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x01, 0x9b, 0xf8, 0x59, 0x0b, - 0x02, 0x00, 0x00, + // 315 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x51, 0x5d, 0x4b, 0xc3, 0x30, + 0x14, 0x25, 0xae, 0xab, 0xf5, 0x6e, 0x85, 0x19, 0x10, 0x8a, 0xf8, 0x30, 0x2b, 0xc8, 0x5e, 0xdc, + 0xc3, 0xf4, 0x0f, 0x6c, 0x9d, 0xa2, 0xd8, 0xa7, 0x5b, 0x7d, 0xf1, 0x2d, 0x6e, 0x77, 0x52, 0x5c, + 0x73, 0x4b, 0x17, 0x04, 0xff, 0x90, 0xbf, 0x53, 0x9a, 0xa4, 0x16, 0xdf, 0x72, 0x4e, 0x4e, 0xcf, + 0x47, 0x0a, 0x63, 0xda, 0xd3, 0x07, 0xf3, 0xbc, 0x6e, 0xd8, 0xb0, 0x0c, 0x1d, 0x4a, 0x97, 0x30, + 0x2c, 0x6a, 0xa2, 0xad, 0x1c, 0x83, 0xc8, 0x13, 0x31, 0x15, 0xb3, 0x53, 0x14, 0x79, 0x8b, 0x30, + 0x39, 0x72, 0x08, 0xe5, 0x05, 0x9c, 0x14, 0x86, 0xeb, 0xe5, 0xce, 0x50, 0x93, 0x0c, 0xa6, 0x62, + 0x16, 0x63, 0x4f, 0xa4, 0x2b, 0x38, 0xce, 0xb8, 0xaa, 0x94, 0xde, 0xca, 0x2b, 0xef, 0x66, 0x8d, + 0x46, 0x8b, 0x78, 0xee, 0x33, 0x2d, 0x89, 0x3e, 0x49, 0x42, 0x90, 0x33, 0x7f, 0x7a, 0x7b, 0x7b, + 0x4e, 0x1f, 0x00, 0x5e, 0xf7, 0xa6, 0x51, 0x05, 0xeb, 0x72, 0x23, 0xcf, 0x21, 0x5a, 0x97, 0x07, + 0xa3, 0xf4, 0x86, 0xac, 0x53, 0x8c, 0x7f, 0xb8, 0xed, 0xb2, 0x2e, 0x1b, 0xda, 0x98, 0x92, 0xb5, + 0xb7, 0xe8, 0x89, 0xf4, 0x0e, 0xa2, 0x27, 0xbd, 0x6b, 0x14, 0xba, 0x45, 0x68, 0x3f, 0x8f, 0xda, + 0x0d, 0x63, 0x10, 0x99, 0xd5, 0x47, 0x28, 0x32, 0xb7, 0x76, 0xe0, 0x50, 0x9e, 0x5e, 0x42, 0x8c, + 0x54, 0xb1, 0xa1, 0x8c, 0xb5, 0x69, 0x78, 0x2f, 0x27, 0x30, 0x78, 0xa6, 0x6f, 0x9f, 0xdd, 0x1e, + 0xd3, 0x1f, 0x01, 0xc3, 0x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