forked from RoboCup-SSL/ssl-game-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssl_game_event.pb.go
347 lines (311 loc) · 13.6 KB
/
ssl_game_event.pb.go
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ssl_game_event.proto
package refproto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type Game_Event_GameEventType int32
const (
// not set
Game_Event_UNKNOWN Game_Event_GameEventType = 0
// an event that is not listed in this enum yet.
// Give further details in the message below
Game_Event_CUSTOM Game_Event_GameEventType = 1
// Law 3: Number of players
Game_Event_NUMBER_OF_PLAYERS Game_Event_GameEventType = 2
// Law 9: Ball out of play
Game_Event_BALL_LEFT_FIELD Game_Event_GameEventType = 3
// Law 10: Team scored a goal
Game_Event_GOAL Game_Event_GameEventType = 4
// Law 9.3: lack of progress while bringing the ball into play
Game_Event_KICK_TIMEOUT Game_Event_GameEventType = 5
// Law ?: There is no progress in game for (10|15)? seconds
Game_Event_NO_PROGRESS_IN_GAME Game_Event_GameEventType = 6
// Law 12: Pushing / Substantial Contact
Game_Event_BOT_COLLISION Game_Event_GameEventType = 7
// Law 12.2: Defender is completely inside penalty area
Game_Event_MULTIPLE_DEFENDER Game_Event_GameEventType = 8
// Law 12: Defender is partially inside penalty area
Game_Event_MULTIPLE_DEFENDER_PARTIALLY Game_Event_GameEventType = 9
// Law 12.3: Attacker in defense area
Game_Event_ATTACKER_IN_DEFENSE_AREA Game_Event_GameEventType = 10
// Law 12: Icing (kicking over midline and opponent goal line)
Game_Event_ICING Game_Event_GameEventType = 11
// Law 12: Ball speed
Game_Event_BALL_SPEED Game_Event_GameEventType = 12
// Law 12: Robot speed during STOP
Game_Event_ROBOT_STOP_SPEED Game_Event_GameEventType = 13
// Law 12: Maximum dribbling distance
Game_Event_BALL_DRIBBLING Game_Event_GameEventType = 14
// Law 12: Touching the opponent goalkeeper
Game_Event_ATTACKER_TOUCH_KEEPER Game_Event_GameEventType = 15
// Law 12: Double touch
Game_Event_DOUBLE_TOUCH Game_Event_GameEventType = 16
// Law 13-17: Attacker not too close to the opponent's penalty area when ball enters play
Game_Event_ATTACKER_TO_DEFENCE_AREA Game_Event_GameEventType = 17
// Law 13-17: Keeping the correct distance to the ball during opponents freekicks
Game_Event_DEFENDER_TO_KICK_POINT_DISTANCE Game_Event_GameEventType = 18
// Law 12: A robot holds the ball deliberately
Game_Event_BALL_HOLDING Game_Event_GameEventType = 19
// Law 12: The ball entered the goal directly after an indirect kick was performed
Game_Event_INDIRECT_GOAL Game_Event_GameEventType = 20
// Law 9.2: Ball placement
Game_Event_BALL_PLACEMENT_FAILED Game_Event_GameEventType = 21
// Law 10: A goal is only scored if the ball has not exceeded a robot height (150mm) between the last
// kick of an attacker and the time the ball crossed the goal line.
Game_Event_CHIP_ON_GOAL Game_Event_GameEventType = 22
)
var Game_Event_GameEventType_name = map[int32]string{
0: "UNKNOWN",
1: "CUSTOM",
2: "NUMBER_OF_PLAYERS",
3: "BALL_LEFT_FIELD",
4: "GOAL",
5: "KICK_TIMEOUT",
6: "NO_PROGRESS_IN_GAME",
7: "BOT_COLLISION",
8: "MULTIPLE_DEFENDER",
9: "MULTIPLE_DEFENDER_PARTIALLY",
10: "ATTACKER_IN_DEFENSE_AREA",
11: "ICING",
12: "BALL_SPEED",
13: "ROBOT_STOP_SPEED",
14: "BALL_DRIBBLING",
15: "ATTACKER_TOUCH_KEEPER",
16: "DOUBLE_TOUCH",
17: "ATTACKER_TO_DEFENCE_AREA",
18: "DEFENDER_TO_KICK_POINT_DISTANCE",
19: "BALL_HOLDING",
20: "INDIRECT_GOAL",
21: "BALL_PLACEMENT_FAILED",
22: "CHIP_ON_GOAL",
}
var Game_Event_GameEventType_value = map[string]int32{
"UNKNOWN": 0,
"CUSTOM": 1,
"NUMBER_OF_PLAYERS": 2,
"BALL_LEFT_FIELD": 3,
"GOAL": 4,
"KICK_TIMEOUT": 5,
"NO_PROGRESS_IN_GAME": 6,
"BOT_COLLISION": 7,
"MULTIPLE_DEFENDER": 8,
"MULTIPLE_DEFENDER_PARTIALLY": 9,
"ATTACKER_IN_DEFENSE_AREA": 10,
"ICING": 11,
"BALL_SPEED": 12,
"ROBOT_STOP_SPEED": 13,
"BALL_DRIBBLING": 14,
"ATTACKER_TOUCH_KEEPER": 15,
"DOUBLE_TOUCH": 16,
"ATTACKER_TO_DEFENCE_AREA": 17,
"DEFENDER_TO_KICK_POINT_DISTANCE": 18,
"BALL_HOLDING": 19,
"INDIRECT_GOAL": 20,
"BALL_PLACEMENT_FAILED": 21,
"CHIP_ON_GOAL": 22,
}
func (x Game_Event_GameEventType) Enum() *Game_Event_GameEventType {
p := new(Game_Event_GameEventType)
*p = x
return p
}
func (x Game_Event_GameEventType) String() string {
return proto.EnumName(Game_Event_GameEventType_name, int32(x))
}
func (x *Game_Event_GameEventType) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Game_Event_GameEventType_value, data, "Game_Event_GameEventType")
if err != nil {
return err
}
*x = Game_Event_GameEventType(value)
return nil
}
func (Game_Event_GameEventType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_9d7737834ddab500, []int{0, 0}
}
// a team
type Game_Event_Team int32
const (
Game_Event_TEAM_UNKNOWN Game_Event_Team = 0
Game_Event_TEAM_YELLOW Game_Event_Team = 1
Game_Event_TEAM_BLUE Game_Event_Team = 2
)
var Game_Event_Team_name = map[int32]string{
0: "TEAM_UNKNOWN",
1: "TEAM_YELLOW",
2: "TEAM_BLUE",
}
var Game_Event_Team_value = map[string]int32{
"TEAM_UNKNOWN": 0,
"TEAM_YELLOW": 1,
"TEAM_BLUE": 2,
}
func (x Game_Event_Team) Enum() *Game_Event_Team {
p := new(Game_Event_Team)
*p = x
return p
}
func (x Game_Event_Team) String() string {
return proto.EnumName(Game_Event_Team_name, int32(x))
}
func (x *Game_Event_Team) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Game_Event_Team_value, data, "Game_Event_Team")
if err != nil {
return err
}
*x = Game_Event_Team(value)
return nil
}
func (Game_Event_Team) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_9d7737834ddab500, []int{0, 1}
}
// a game event that caused a referee command
type Game_Event struct {
// the game event type that happened
GameEventType *Game_Event_GameEventType `protobuf:"varint,1,req,name=gameEventType,enum=Game_Event_GameEventType" json:"gameEventType,omitempty"`
// the team and optionally a designated robot that is the originator of the game event
Originator *Game_Event_Originator `protobuf:"bytes,2,opt,name=originator" json:"originator,omitempty"`
// a message describing further details of this game event
Message *string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Game_Event) Reset() { *m = Game_Event{} }
func (m *Game_Event) String() string { return proto.CompactTextString(m) }
func (*Game_Event) ProtoMessage() {}
func (*Game_Event) Descriptor() ([]byte, []int) {
return fileDescriptor_9d7737834ddab500, []int{0}
}
func (m *Game_Event) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Game_Event.Unmarshal(m, b)
}
func (m *Game_Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Game_Event.Marshal(b, m, deterministic)
}
func (m *Game_Event) XXX_Merge(src proto.Message) {
xxx_messageInfo_Game_Event.Merge(m, src)
}
func (m *Game_Event) XXX_Size() int {
return xxx_messageInfo_Game_Event.Size(m)
}
func (m *Game_Event) XXX_DiscardUnknown() {
xxx_messageInfo_Game_Event.DiscardUnknown(m)
}
var xxx_messageInfo_Game_Event proto.InternalMessageInfo
func (m *Game_Event) GetGameEventType() Game_Event_GameEventType {
if m != nil && m.GameEventType != nil {
return *m.GameEventType
}
return Game_Event_UNKNOWN
}
func (m *Game_Event) GetOriginator() *Game_Event_Originator {
if m != nil {
return m.Originator
}
return nil
}
func (m *Game_Event) GetMessage() string {
if m != nil && m.Message != nil {
return *m.Message
}
return ""
}
// information about an originator
type Game_Event_Originator struct {
Team *Game_Event_Team `protobuf:"varint,1,req,name=team,enum=Game_Event_Team" json:"team,omitempty"`
BotId *uint32 `protobuf:"varint,2,opt,name=botId" json:"botId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Game_Event_Originator) Reset() { *m = Game_Event_Originator{} }
func (m *Game_Event_Originator) String() string { return proto.CompactTextString(m) }
func (*Game_Event_Originator) ProtoMessage() {}
func (*Game_Event_Originator) Descriptor() ([]byte, []int) {
return fileDescriptor_9d7737834ddab500, []int{0, 0}
}
func (m *Game_Event_Originator) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Game_Event_Originator.Unmarshal(m, b)
}
func (m *Game_Event_Originator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Game_Event_Originator.Marshal(b, m, deterministic)
}
func (m *Game_Event_Originator) XXX_Merge(src proto.Message) {
xxx_messageInfo_Game_Event_Originator.Merge(m, src)
}
func (m *Game_Event_Originator) XXX_Size() int {
return xxx_messageInfo_Game_Event_Originator.Size(m)
}
func (m *Game_Event_Originator) XXX_DiscardUnknown() {
xxx_messageInfo_Game_Event_Originator.DiscardUnknown(m)
}
var xxx_messageInfo_Game_Event_Originator proto.InternalMessageInfo
func (m *Game_Event_Originator) GetTeam() Game_Event_Team {
if m != nil && m.Team != nil {
return *m.Team
}
return Game_Event_TEAM_UNKNOWN
}
func (m *Game_Event_Originator) GetBotId() uint32 {
if m != nil && m.BotId != nil {
return *m.BotId
}
return 0
}
func init() {
proto.RegisterEnum("Game_Event_GameEventType", Game_Event_GameEventType_name, Game_Event_GameEventType_value)
proto.RegisterEnum("Game_Event_Team", Game_Event_Team_name, Game_Event_Team_value)
proto.RegisterType((*Game_Event)(nil), "Game_Event")
proto.RegisterType((*Game_Event_Originator)(nil), "Game_Event.Originator")
}
func init() { proto.RegisterFile("ssl_game_event.proto", fileDescriptor_9d7737834ddab500) }
var fileDescriptor_9d7737834ddab500 = []byte{
// 532 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0x4f, 0x6f, 0x1a, 0x31,
0x10, 0xc5, 0x0b, 0x21, 0x7f, 0x18, 0xb2, 0xc4, 0x99, 0x90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xb8, 0xdc, 0x8c, 0xb0, 0xba, 0x4c, 0x06,
0x6e, 0x48, 0x94, 0x93, 0x61, 0x67, 0xfe, 0xce, 0xa9, 0x2e, 0x63, 0x49, 0xab, 0x06, 0x63, 0x7b,
0x3c, 0x56, 0xaf, 0x78, 0x92, 0x35, 0xcf, 0x39, 0x7e, 0x84, 0x9b, 0xcd, 0x2d, 0xac, 0x76, 0x61,
0x5f, 0xb9, 0x16, 0xca, 0xba, 0x54, 0x14, 0x96, 0xab, 0x84, 0x18, 0xfa, 0x43, 0x03, 0xc3, 0x40,
0xcb, 0xd4, 0x13, 0x5c, 0xf8, 0x7d, 0x09, 0x95, 0x0a, 0x43, 0x89, 0x75, 0x61, 0xdb, 0x1d, 0x0f,
0x15, 0x4c, 0xb9, 0xe4, 0x09, 0x65, 0xa4, 0xac, 0xeb, 0x71, 0x21, 0x29, 0x65, 0x97, 0x3e, 0x9f,
0x0c, 0x44, 0xee, 0xb4, 0x5a, 0x99, 0xaf, 0xee, 0xbe, 0x40, 0xc3, 0xbf, 0x0f, 0xdf, 0xb1, 0xc4,
0x33, 0xb7, 0xfd, 0xed, 0x67, 0xd0, 0x0a, 0xca, 0x88, 0xa4, 0xd4, 0x4f, 0xac, 0x86, 0x11, 0x34,
0x83, 0x10, 0xcb, 0x92, 0x58, 0xfd, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0x1c, 0x24, 0xc5,
0x38, 0x03, 0x00, 0x00,
}