From 0cb37a1ceda90b439ffc23083aa8d8802fe9df26 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 20 Aug 2017 16:48:07 +0200 Subject: codegen --- car/elegoo/elegoo.pb.go | 68 +++++++++++++++++-------------------------------- 1 file changed, 24 insertions(+), 44 deletions(-) (limited to 'car/elegoo/elegoo.pb.go') diff --git a/car/elegoo/elegoo.pb.go b/car/elegoo/elegoo.pb.go index 5854d75..01de1cf 100644 --- a/car/elegoo/elegoo.pb.go +++ b/car/elegoo/elegoo.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: elegoo.proto -// DO NOT EDIT! /* Package main is a generated protocol buffer package. @@ -10,7 +9,6 @@ It is generated from these files: It has these top-level messages: Command - Speed Event */ package main @@ -31,8 +29,9 @@ var _ = math.Inf const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Command struct { - SetSpeed *Speed `protobuf:"bytes,1,opt,name=SetSpeed" json:"SetSpeed,omitempty"` - Stop bool `protobuf:"varint,2,opt,name=Stop" json:"Stop,omitempty"` + LeftSpeed int32 `protobuf:"varint,1,opt,name=LeftSpeed" json:"LeftSpeed,omitempty"` + RightSpeed int32 `protobuf:"varint,2,opt,name=RightSpeed" json:"RightSpeed,omitempty"` + TurnHead int32 `protobuf:"varint,3,opt,name=TurnHead" json:"TurnHead,omitempty"` } func (m *Command) Reset() { *m = Command{} } @@ -40,40 +39,23 @@ func (m *Command) String() string { return proto.CompactTextString(m) func (*Command) ProtoMessage() {} func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *Command) GetSetSpeed() *Speed { +func (m *Command) GetLeftSpeed() int32 { if m != nil { - return m.SetSpeed + return m.LeftSpeed } - return nil -} - -func (m *Command) GetStop() bool { - if m != nil { - return m.Stop - } - return false -} - -type Speed struct { - Left int32 `protobuf:"varint,1,opt,name=Left" json:"Left,omitempty"` - Right int32 `protobuf:"varint,2,opt,name=Right" json:"Right,omitempty"` + return 0 } -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{1} } - -func (m *Speed) GetLeft() int32 { +func (m *Command) GetRightSpeed() int32 { if m != nil { - return m.Left + return m.RightSpeed } return 0 } -func (m *Speed) GetRight() int32 { +func (m *Command) GetTurnHead() int32 { if m != nil { - return m.Right + return m.TurnHead } return 0 } @@ -88,7 +70,7 @@ type Event struct { 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{2} } +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *Event) GetDistance() int32 { if m != nil { @@ -120,24 +102,22 @@ func (m *Event) GetSensorC() bool { func init() { proto.RegisterType((*Command)(nil), "Command") - proto.RegisterType((*Speed)(nil), "Speed") proto.RegisterType((*Event)(nil), "Event") } func init() { proto.RegisterFile("elegoo.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 186 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0xb1, 0xce, 0x82, 0x30, - 0x14, 0x46, 0xc3, 0xff, 0x53, 0x20, 0x57, 0xa7, 0xc6, 0xa1, 0x71, 0x22, 0x9d, 0x98, 0x48, 0xd4, - 0x27, 0x00, 0x74, 0x73, 0x6a, 0x37, 0x37, 0x94, 0x2b, 0x92, 0x48, 0x8b, 0x70, 0xe3, 0xf3, 0x9b, - 0x54, 0x04, 0xb6, 0xef, 0xf4, 0xe4, 0xa4, 0xb9, 0xb0, 0xc6, 0x27, 0xd6, 0xd6, 0xa6, 0x5d, 0x6f, - 0xc9, 0xca, 0x0c, 0xc2, 0xc2, 0xb6, 0x6d, 0x69, 0x2a, 0x2e, 0x21, 0xd2, 0x48, 0xba, 0x43, 0xac, - 0x84, 0x17, 0x7b, 0xc9, 0x6a, 0x1f, 0xa4, 0x8e, 0xd4, 0xf4, 0xce, 0x39, 0xf8, 0x9a, 0x6c, 0x27, - 0xfe, 0x62, 0x2f, 0x89, 0x94, 0xdb, 0x72, 0x07, 0x6c, 0x92, 0x67, 0xbc, 0x93, 0x8b, 0x99, 0x72, - 0x9b, 0x6f, 0x80, 0xa9, 0xa6, 0x7e, 0x90, 0x2b, 0x98, 0xfa, 0x82, 0x7c, 0x01, 0x3b, 0xbd, 0xd1, - 0x10, 0xdf, 0x42, 0x74, 0x6c, 0x06, 0x2a, 0xcd, 0x0d, 0xc7, 0x6c, 0x62, 0x2e, 0x20, 0xd4, 0x68, - 0x06, 0xdb, 0x67, 0xe3, 0x77, 0x3f, 0x9c, 0x4d, 0x2e, 0xfe, 0x97, 0x26, 0x9f, 0x4d, 0x21, 0xfc, - 0xa5, 0x29, 0xf2, 0xe0, 0xe2, 0xb7, 0x65, 0x63, 0xae, 0x81, 0xbb, 0xfb, 0xf0, 0x09, 0x00, 0x00, - 0xff, 0xff, 0x87, 0x0b, 0xf3, 0xb3, 0x07, 0x01, 0x00, 0x00, + // 172 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0xcd, 0x49, 0x4d, + 0xcf, 0xcf, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0x4a, 0xe6, 0x62, 0x77, 0xce, 0xcf, 0xcd, + 0x4d, 0xcc, 0x4b, 0x11, 0x92, 0xe1, 0xe2, 0xf4, 0x49, 0x4d, 0x2b, 0x09, 0x2e, 0x48, 0x4d, 0x4d, + 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x0d, 0x42, 0x08, 0x08, 0xc9, 0x71, 0x71, 0x05, 0x65, 0xa6, + 0x67, 0x40, 0xa5, 0x99, 0xc0, 0xd2, 0x48, 0x22, 0x42, 0x52, 0x5c, 0x1c, 0x21, 0xa5, 0x45, 0x79, + 0x1e, 0xa9, 0x89, 0x29, 0x12, 0xcc, 0x60, 0x59, 0x38, 0x5f, 0xa9, 0x90, 0x8b, 0xd5, 0xb5, 0x2c, + 0x35, 0xaf, 0x04, 0xa4, 0xc8, 0x25, 0xb3, 0xb8, 0x24, 0x31, 0x2f, 0x39, 0x15, 0x6a, 0x03, 0x9c, + 0x2f, 0x24, 0xc1, 0xc5, 0x1e, 0x9c, 0x9a, 0x57, 0x9c, 0x5f, 0xe4, 0x08, 0x36, 0x9d, 0x23, 0x08, + 0xc6, 0x45, 0xc8, 0x38, 0x81, 0x4d, 0x86, 0xcb, 0x38, 0x21, 0x64, 0x9c, 0x25, 0x58, 0x90, 0x65, + 0x9c, 0x9d, 0xd8, 0xa2, 0x58, 0x72, 0x13, 0x33, 0xf3, 0x92, 0xd8, 0xc0, 0xde, 0x34, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xdc, 0x14, 0x3e, 0x06, 0xf6, 0x00, 0x00, 0x00, } -- cgit v1.2.3