aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo/elegoo.pb.go
blob: 5854d75c476aa67550a62ccd2c296848ab573d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// Code generated by protoc-gen-go.
// source: elegoo.proto
// DO NOT EDIT!

/*
Package main is a generated protocol buffer package.

It is generated from these files:
	elegoo.proto

It has these top-level messages:
	Command
	Speed
	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 Command struct {
	SetSpeed *Speed `protobuf:"bytes,1,opt,name=SetSpeed" json:"SetSpeed,omitempty"`
	Stop     bool   `protobuf:"varint,2,opt,name=Stop" json:"Stop,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 (m *Command) GetSetSpeed() *Speed {
	if m != nil {
		return m.SetSpeed
	}
	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"`
}

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 {
	if m != nil {
		return m.Left
	}
	return 0
}

func (m *Speed) GetRight() int32 {
	if m != nil {
		return m.Right
	}
	return 0
}

type Event struct {
	Distance int32 `protobuf:"varint,1,opt,name=Distance" json:"Distance,omitempty"`
	SensorA  bool  `protobuf:"varint,2,opt,name=SensorA" json:"SensorA,omitempty"`
	SensorB  bool  `protobuf:"varint,3,opt,name=SensorB" json:"SensorB,omitempty"`
	SensorC  bool  `protobuf:"varint,4,opt,name=SensorC" json:"SensorC,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{2} }

func (m *Event) GetDistance() int32 {
	if m != nil {
		return m.Distance
	}
	return 0
}

func (m *Event) GetSensorA() bool {
	if m != nil {
		return m.SensorA
	}
	return false
}

func (m *Event) GetSensorB() bool {
	if m != nil {
		return m.SensorB
	}
	return false
}

func (m *Event) GetSensorC() bool {
	if m != nil {
		return m.SensorC
	}
	return false
}

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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