forked from RoboCup-SSL/ssl-game-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssl_referee.pb.go
767 lines (695 loc) · 29.9 KB
/
ssl_referee.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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ssl_referee.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
// These are the "coarse" stages of the game.
type Referee_Stage int32
const (
// The first half is about to start.
// A kickoff is called within this stage.
// This stage ends with the NORMAL_START.
Referee_NORMAL_FIRST_HALF_PRE Referee_Stage = 0
// The first half of the normal game, before half time.
Referee_NORMAL_FIRST_HALF Referee_Stage = 1
// Half time between first and second halves.
Referee_NORMAL_HALF_TIME Referee_Stage = 2
// The second half is about to start.
// A kickoff is called within this stage.
// This stage ends with the NORMAL_START.
Referee_NORMAL_SECOND_HALF_PRE Referee_Stage = 3
// The second half of the normal game, after half time.
Referee_NORMAL_SECOND_HALF Referee_Stage = 4
// The break before extra time.
Referee_EXTRA_TIME_BREAK Referee_Stage = 5
// The first half of extra time is about to start.
// A kickoff is called within this stage.
// This stage ends with the NORMAL_START.
Referee_EXTRA_FIRST_HALF_PRE Referee_Stage = 6
// The first half of extra time.
Referee_EXTRA_FIRST_HALF Referee_Stage = 7
// Half time between first and second extra halves.
Referee_EXTRA_HALF_TIME Referee_Stage = 8
// The second half of extra time is about to start.
// A kickoff is called within this stage.
// This stage ends with the NORMAL_START.
Referee_EXTRA_SECOND_HALF_PRE Referee_Stage = 9
// The second half of extra time.
Referee_EXTRA_SECOND_HALF Referee_Stage = 10
// The break before penalty shootout.
Referee_PENALTY_SHOOTOUT_BREAK Referee_Stage = 11
// The penalty shootout.
Referee_PENALTY_SHOOTOUT Referee_Stage = 12
// The game is over.
Referee_POST_GAME Referee_Stage = 13
)
var Referee_Stage_name = map[int32]string{
0: "NORMAL_FIRST_HALF_PRE",
1: "NORMAL_FIRST_HALF",
2: "NORMAL_HALF_TIME",
3: "NORMAL_SECOND_HALF_PRE",
4: "NORMAL_SECOND_HALF",
5: "EXTRA_TIME_BREAK",
6: "EXTRA_FIRST_HALF_PRE",
7: "EXTRA_FIRST_HALF",
8: "EXTRA_HALF_TIME",
9: "EXTRA_SECOND_HALF_PRE",
10: "EXTRA_SECOND_HALF",
11: "PENALTY_SHOOTOUT_BREAK",
12: "PENALTY_SHOOTOUT",
13: "POST_GAME",
}
var Referee_Stage_value = map[string]int32{
"NORMAL_FIRST_HALF_PRE": 0,
"NORMAL_FIRST_HALF": 1,
"NORMAL_HALF_TIME": 2,
"NORMAL_SECOND_HALF_PRE": 3,
"NORMAL_SECOND_HALF": 4,
"EXTRA_TIME_BREAK": 5,
"EXTRA_FIRST_HALF_PRE": 6,
"EXTRA_FIRST_HALF": 7,
"EXTRA_HALF_TIME": 8,
"EXTRA_SECOND_HALF_PRE": 9,
"EXTRA_SECOND_HALF": 10,
"PENALTY_SHOOTOUT_BREAK": 11,
"PENALTY_SHOOTOUT": 12,
"POST_GAME": 13,
}
func (x Referee_Stage) Enum() *Referee_Stage {
p := new(Referee_Stage)
*p = x
return p
}
func (x Referee_Stage) String() string {
return proto.EnumName(Referee_Stage_name, int32(x))
}
func (x *Referee_Stage) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Referee_Stage_value, data, "Referee_Stage")
if err != nil {
return err
}
*x = Referee_Stage(value)
return nil
}
func (Referee_Stage) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f003bb08adc02ebb, []int{0, 0}
}
// These are the "fine" states of play on the field.
type Referee_Command int32
const (
// All robots should completely stop moving.
Referee_HALT Referee_Command = 0
// Robots must keep 50 cm from the ball.
Referee_STOP Referee_Command = 1
// A prepared kickoff or penalty may now be taken.
Referee_NORMAL_START Referee_Command = 2
// The ball is dropped and free for either team.
Referee_FORCE_START Referee_Command = 3
// The yellow team may move into kickoff position.
Referee_PREPARE_KICKOFF_YELLOW Referee_Command = 4
// The blue team may move into kickoff position.
Referee_PREPARE_KICKOFF_BLUE Referee_Command = 5
// The yellow team may move into penalty position.
Referee_PREPARE_PENALTY_YELLOW Referee_Command = 6
// The blue team may move into penalty position.
Referee_PREPARE_PENALTY_BLUE Referee_Command = 7
// The yellow team may take a direct free kick.
Referee_DIRECT_FREE_YELLOW Referee_Command = 8
// The blue team may take a direct free kick.
Referee_DIRECT_FREE_BLUE Referee_Command = 9
// The yellow team may take an indirect free kick.
Referee_INDIRECT_FREE_YELLOW Referee_Command = 10
// The blue team may take an indirect free kick.
Referee_INDIRECT_FREE_BLUE Referee_Command = 11
// The yellow team is currently in a timeout.
Referee_TIMEOUT_YELLOW Referee_Command = 12
// The blue team is currently in a timeout.
Referee_TIMEOUT_BLUE Referee_Command = 13
// The yellow team just scored a goal.
// For information only.
// For rules compliance, teams must treat as STOP.
// Deprecated: Use the score field from the team infos instead. That way, you can also detect revoked goals.
Referee_GOAL_YELLOW Referee_Command = 14 // Deprecated: Do not use.
// The blue team just scored a goal. See also GOAL_YELLOW.
Referee_GOAL_BLUE Referee_Command = 15 // Deprecated: Do not use.
// Equivalent to STOP, but the yellow team must pick up the ball and
// drop it in the Designated Position.
Referee_BALL_PLACEMENT_YELLOW Referee_Command = 16
// Equivalent to STOP, but the blue team must pick up the ball and drop
// it in the Designated Position.
Referee_BALL_PLACEMENT_BLUE Referee_Command = 17
)
var Referee_Command_name = map[int32]string{
0: "HALT",
1: "STOP",
2: "NORMAL_START",
3: "FORCE_START",
4: "PREPARE_KICKOFF_YELLOW",
5: "PREPARE_KICKOFF_BLUE",
6: "PREPARE_PENALTY_YELLOW",
7: "PREPARE_PENALTY_BLUE",
8: "DIRECT_FREE_YELLOW",
9: "DIRECT_FREE_BLUE",
10: "INDIRECT_FREE_YELLOW",
11: "INDIRECT_FREE_BLUE",
12: "TIMEOUT_YELLOW",
13: "TIMEOUT_BLUE",
14: "GOAL_YELLOW",
15: "GOAL_BLUE",
16: "BALL_PLACEMENT_YELLOW",
17: "BALL_PLACEMENT_BLUE",
}
var Referee_Command_value = map[string]int32{
"HALT": 0,
"STOP": 1,
"NORMAL_START": 2,
"FORCE_START": 3,
"PREPARE_KICKOFF_YELLOW": 4,
"PREPARE_KICKOFF_BLUE": 5,
"PREPARE_PENALTY_YELLOW": 6,
"PREPARE_PENALTY_BLUE": 7,
"DIRECT_FREE_YELLOW": 8,
"DIRECT_FREE_BLUE": 9,
"INDIRECT_FREE_YELLOW": 10,
"INDIRECT_FREE_BLUE": 11,
"TIMEOUT_YELLOW": 12,
"TIMEOUT_BLUE": 13,
"GOAL_YELLOW": 14,
"GOAL_BLUE": 15,
"BALL_PLACEMENT_YELLOW": 16,
"BALL_PLACEMENT_BLUE": 17,
}
func (x Referee_Command) Enum() *Referee_Command {
p := new(Referee_Command)
*p = x
return p
}
func (x Referee_Command) String() string {
return proto.EnumName(Referee_Command_name, int32(x))
}
func (x *Referee_Command) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Referee_Command_value, data, "Referee_Command")
if err != nil {
return err
}
*x = Referee_Command(value)
return nil
}
func (Referee_Command) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f003bb08adc02ebb, []int{0, 1}
}
// Each UDP packet contains one of these messages.
type Referee struct {
// The UNIX timestamp when the packet was sent, in microseconds.
// Divide by 1,000,000 to get a time_t.
PacketTimestamp *uint64 `protobuf:"varint,1,req,name=packet_timestamp,json=packetTimestamp" json:"packet_timestamp,omitempty"`
Stage *Referee_Stage `protobuf:"varint,2,req,name=stage,enum=Referee_Stage" json:"stage,omitempty"`
// The number of microseconds left in the stage.
// The following stages have this value; the rest do not:
// NORMAL_FIRST_HALF
// NORMAL_HALF_TIME
// NORMAL_SECOND_HALF
// EXTRA_TIME_BREAK
// EXTRA_FIRST_HALF
// EXTRA_HALF_TIME
// EXTRA_SECOND_HALF
// PENALTY_SHOOTOUT_BREAK
//
// If the stage runs over its specified time, this value
// becomes negative.
StageTimeLeft *int32 `protobuf:"zigzag32,3,opt,name=stage_time_left,json=stageTimeLeft" json:"stage_time_left,omitempty"`
Command *Referee_Command `protobuf:"varint,4,req,name=command,enum=Referee_Command" json:"command,omitempty"`
// The number of commands issued since startup (mod 2^32).
CommandCounter *uint32 `protobuf:"varint,5,req,name=command_counter,json=commandCounter" json:"command_counter,omitempty"`
// The UNIX timestamp when the command was issued, in microseconds.
// This value changes only when a new command is issued, not on each packet.
CommandTimestamp *uint64 `protobuf:"varint,6,req,name=command_timestamp,json=commandTimestamp" json:"command_timestamp,omitempty"`
// Information about the two teams.
Yellow *Referee_TeamInfo `protobuf:"bytes,7,req,name=yellow" json:"yellow,omitempty"`
Blue *Referee_TeamInfo `protobuf:"bytes,8,req,name=blue" json:"blue,omitempty"`
DesignatedPosition *Referee_Point `protobuf:"bytes,9,opt,name=designated_position,json=designatedPosition" json:"designated_position,omitempty"`
// Information about the direction of play.
// True, if the blue team will have it's goal on the positive x-axis of the ssl-vision coordinate system.
// Obviously, the yellow team will play on the opposite half.
BlueTeamOnPositiveHalf *bool `protobuf:"varint,10,opt,name=blue_team_on_positive_half,json=blueTeamOnPositiveHalf" json:"blue_team_on_positive_half,omitempty"`
// The game event that caused the referee command.
// deprecated in favor of game_events.
GameEvent *Game_Event `protobuf:"bytes,11,opt,name=game_event,json=gameEvent" json:"game_event,omitempty"` // Deprecated: Do not use.
// The command that will be issued after the current stoppage and ball placement to continue the game.
NextCommand *Referee_Command `protobuf:"varint,12,opt,name=next_command,json=nextCommand,enum=Referee_Command" json:"next_command,omitempty"`
// All game events that were detected since the last RUNNING state.
// Will be cleared as soon as the game is continued.
GameEvents []*GameEvent `protobuf:"bytes,13,rep,name=game_events,json=gameEvents" json:"game_events,omitempty"`
// All non-finished proposed game events that may be processed next.
ProposedGameEvents []*ProposedGameEvent `protobuf:"bytes,14,rep,name=proposed_game_events,json=proposedGameEvents" json:"proposed_game_events,omitempty"`
// The time in microseconds that is remaining until the current action times out
// The time will not be reset. It can get negative.
// An autoRef would raise an appropriate event, if the time gets negative.
// Possible actions where this time is relevant:
// * free kicks
// * kickoff, penalty kick, force start
// * ball placement
CurrentActionTimeRemaining *int32 `protobuf:"varint,15,opt,name=current_action_time_remaining,json=currentActionTimeRemaining" json:"current_action_time_remaining,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Referee) Reset() { *m = Referee{} }
func (m *Referee) String() string { return proto.CompactTextString(m) }
func (*Referee) ProtoMessage() {}
func (*Referee) Descriptor() ([]byte, []int) {
return fileDescriptor_f003bb08adc02ebb, []int{0}
}
func (m *Referee) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Referee.Unmarshal(m, b)
}
func (m *Referee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Referee.Marshal(b, m, deterministic)
}
func (m *Referee) XXX_Merge(src proto.Message) {
xxx_messageInfo_Referee.Merge(m, src)
}
func (m *Referee) XXX_Size() int {
return xxx_messageInfo_Referee.Size(m)
}
func (m *Referee) XXX_DiscardUnknown() {
xxx_messageInfo_Referee.DiscardUnknown(m)
}
var xxx_messageInfo_Referee proto.InternalMessageInfo
func (m *Referee) GetPacketTimestamp() uint64 {
if m != nil && m.PacketTimestamp != nil {
return *m.PacketTimestamp
}
return 0
}
func (m *Referee) GetStage() Referee_Stage {
if m != nil && m.Stage != nil {
return *m.Stage
}
return Referee_NORMAL_FIRST_HALF_PRE
}
func (m *Referee) GetStageTimeLeft() int32 {
if m != nil && m.StageTimeLeft != nil {
return *m.StageTimeLeft
}
return 0
}
func (m *Referee) GetCommand() Referee_Command {
if m != nil && m.Command != nil {
return *m.Command
}
return Referee_HALT
}
func (m *Referee) GetCommandCounter() uint32 {
if m != nil && m.CommandCounter != nil {
return *m.CommandCounter
}
return 0
}
func (m *Referee) GetCommandTimestamp() uint64 {
if m != nil && m.CommandTimestamp != nil {
return *m.CommandTimestamp
}
return 0
}
func (m *Referee) GetYellow() *Referee_TeamInfo {
if m != nil {
return m.Yellow
}
return nil
}
func (m *Referee) GetBlue() *Referee_TeamInfo {
if m != nil {
return m.Blue
}
return nil
}
func (m *Referee) GetDesignatedPosition() *Referee_Point {
if m != nil {
return m.DesignatedPosition
}
return nil
}
func (m *Referee) GetBlueTeamOnPositiveHalf() bool {
if m != nil && m.BlueTeamOnPositiveHalf != nil {
return *m.BlueTeamOnPositiveHalf
}
return false
}
// Deprecated: Do not use.
func (m *Referee) GetGameEvent() *Game_Event {
if m != nil {
return m.GameEvent
}
return nil
}
func (m *Referee) GetNextCommand() Referee_Command {
if m != nil && m.NextCommand != nil {
return *m.NextCommand
}
return Referee_HALT
}
func (m *Referee) GetGameEvents() []*GameEvent {
if m != nil {
return m.GameEvents
}
return nil
}
func (m *Referee) GetProposedGameEvents() []*ProposedGameEvent {
if m != nil {
return m.ProposedGameEvents
}
return nil
}
func (m *Referee) GetCurrentActionTimeRemaining() int32 {
if m != nil && m.CurrentActionTimeRemaining != nil {
return *m.CurrentActionTimeRemaining
}
return 0
}
// Information about a single team.
type Referee_TeamInfo struct {
// The team's name (empty string if operator has not typed anything).
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
// The number of goals scored by the team during normal play and overtime.
Score *uint32 `protobuf:"varint,2,req,name=score" json:"score,omitempty"`
// The number of red cards issued to the team since the beginning of the game.
RedCards *uint32 `protobuf:"varint,3,req,name=red_cards,json=redCards" json:"red_cards,omitempty"`
// The amount of time (in microseconds) left on each yellow card issued to the team.
// If no yellow cards are issued, this array has no elements.
// Otherwise, times are ordered from smallest to largest.
YellowCardTimes []uint32 `protobuf:"varint,4,rep,packed,name=yellow_card_times,json=yellowCardTimes" json:"yellow_card_times,omitempty"`
// The total number of yellow cards ever issued to the team.
YellowCards *uint32 `protobuf:"varint,5,req,name=yellow_cards,json=yellowCards" json:"yellow_cards,omitempty"`
// The number of timeouts this team can still call.
// If in a timeout right now, that timeout is excluded.
Timeouts *uint32 `protobuf:"varint,6,req,name=timeouts" json:"timeouts,omitempty"`
// The number of microseconds of timeout this team can use.
TimeoutTime *uint32 `protobuf:"varint,7,req,name=timeout_time,json=timeoutTime" json:"timeout_time,omitempty"`
// The pattern number of this team's goalkeeper.
Goalkeeper *uint32 `protobuf:"varint,8,req,name=goalkeeper" json:"goalkeeper,omitempty"`
// The total number of countable fouls that act towards yellow cards
FoulCounter *uint32 `protobuf:"varint,9,opt,name=foul_counter,json=foulCounter" json:"foul_counter,omitempty"`
// The number of consecutive ball placement failures of this team
BallPlacementFailures *uint32 `protobuf:"varint,10,opt,name=ball_placement_failures,json=ballPlacementFailures" json:"ball_placement_failures,omitempty"`
// Indicate if the team is able and allowed to place the ball
CanPlaceBall *bool `protobuf:"varint,12,opt,name=can_place_ball,json=canPlaceBall" json:"can_place_ball,omitempty"`
// The maximum number of bots allowed on the field based on division and cards
MaxAllowedBots *uint32 `protobuf:"varint,13,opt,name=max_allowed_bots,json=maxAllowedBots" json:"max_allowed_bots,omitempty"`
// The team has submitted an intent to substitute one or more robots at the next chance
BotSubstitutionIntent *bool `protobuf:"varint,14,opt,name=bot_substitution_intent,json=botSubstitutionIntent" json:"bot_substitution_intent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Referee_TeamInfo) Reset() { *m = Referee_TeamInfo{} }
func (m *Referee_TeamInfo) String() string { return proto.CompactTextString(m) }
func (*Referee_TeamInfo) ProtoMessage() {}
func (*Referee_TeamInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_f003bb08adc02ebb, []int{0, 0}
}
func (m *Referee_TeamInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Referee_TeamInfo.Unmarshal(m, b)
}
func (m *Referee_TeamInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Referee_TeamInfo.Marshal(b, m, deterministic)
}
func (m *Referee_TeamInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_Referee_TeamInfo.Merge(m, src)
}
func (m *Referee_TeamInfo) XXX_Size() int {
return xxx_messageInfo_Referee_TeamInfo.Size(m)
}
func (m *Referee_TeamInfo) XXX_DiscardUnknown() {
xxx_messageInfo_Referee_TeamInfo.DiscardUnknown(m)
}
var xxx_messageInfo_Referee_TeamInfo proto.InternalMessageInfo
func (m *Referee_TeamInfo) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *Referee_TeamInfo) GetScore() uint32 {
if m != nil && m.Score != nil {
return *m.Score
}
return 0
}
func (m *Referee_TeamInfo) GetRedCards() uint32 {
if m != nil && m.RedCards != nil {
return *m.RedCards
}
return 0
}
func (m *Referee_TeamInfo) GetYellowCardTimes() []uint32 {
if m != nil {
return m.YellowCardTimes
}
return nil
}
func (m *Referee_TeamInfo) GetYellowCards() uint32 {
if m != nil && m.YellowCards != nil {
return *m.YellowCards
}
return 0
}
func (m *Referee_TeamInfo) GetTimeouts() uint32 {
if m != nil && m.Timeouts != nil {
return *m.Timeouts
}
return 0
}
func (m *Referee_TeamInfo) GetTimeoutTime() uint32 {
if m != nil && m.TimeoutTime != nil {
return *m.TimeoutTime
}
return 0
}
func (m *Referee_TeamInfo) GetGoalkeeper() uint32 {
if m != nil && m.Goalkeeper != nil {
return *m.Goalkeeper
}
return 0
}
func (m *Referee_TeamInfo) GetFoulCounter() uint32 {
if m != nil && m.FoulCounter != nil {
return *m.FoulCounter
}
return 0
}
func (m *Referee_TeamInfo) GetBallPlacementFailures() uint32 {
if m != nil && m.BallPlacementFailures != nil {
return *m.BallPlacementFailures
}
return 0
}
func (m *Referee_TeamInfo) GetCanPlaceBall() bool {
if m != nil && m.CanPlaceBall != nil {
return *m.CanPlaceBall
}
return false
}
func (m *Referee_TeamInfo) GetMaxAllowedBots() uint32 {
if m != nil && m.MaxAllowedBots != nil {
return *m.MaxAllowedBots
}
return 0
}
func (m *Referee_TeamInfo) GetBotSubstitutionIntent() bool {
if m != nil && m.BotSubstitutionIntent != nil {
return *m.BotSubstitutionIntent
}
return false
}
// The coordinates of the Designated Position. These are measured in
// millimetres and correspond to SSL-Vision coordinates. These fields are
// always either both present (in the case of a ball placement command) or
// both absent (in the case of any other command).
type Referee_Point struct {
X *float32 `protobuf:"fixed32,1,req,name=x" json:"x,omitempty"`
Y *float32 `protobuf:"fixed32,2,req,name=y" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Referee_Point) Reset() { *m = Referee_Point{} }
func (m *Referee_Point) String() string { return proto.CompactTextString(m) }
func (*Referee_Point) ProtoMessage() {}
func (*Referee_Point) Descriptor() ([]byte, []int) {
return fileDescriptor_f003bb08adc02ebb, []int{0, 1}
}
func (m *Referee_Point) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Referee_Point.Unmarshal(m, b)
}
func (m *Referee_Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Referee_Point.Marshal(b, m, deterministic)
}
func (m *Referee_Point) XXX_Merge(src proto.Message) {
xxx_messageInfo_Referee_Point.Merge(m, src)
}
func (m *Referee_Point) XXX_Size() int {
return xxx_messageInfo_Referee_Point.Size(m)
}
func (m *Referee_Point) XXX_DiscardUnknown() {
xxx_messageInfo_Referee_Point.DiscardUnknown(m)
}
var xxx_messageInfo_Referee_Point proto.InternalMessageInfo
func (m *Referee_Point) GetX() float32 {
if m != nil && m.X != nil {
return *m.X
}
return 0
}
func (m *Referee_Point) GetY() float32 {
if m != nil && m.Y != nil {
return *m.Y
}
return 0
}
type ProposedGameEvent struct {
// The UNIX timestamp when the game event proposal will time out, in microseconds.
ValidUntil *uint64 `protobuf:"varint,1,req,name=valid_until,json=validUntil" json:"valid_until,omitempty"`
// The identifier of the proposer.
ProposerId *string `protobuf:"bytes,2,req,name=proposer_id,json=proposerId" json:"proposer_id,omitempty"`
// The proposed game event.
GameEvent *GameEvent `protobuf:"bytes,3,req,name=game_event,json=gameEvent" json:"game_event,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProposedGameEvent) Reset() { *m = ProposedGameEvent{} }
func (m *ProposedGameEvent) String() string { return proto.CompactTextString(m) }
func (*ProposedGameEvent) ProtoMessage() {}
func (*ProposedGameEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_f003bb08adc02ebb, []int{1}
}
func (m *ProposedGameEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProposedGameEvent.Unmarshal(m, b)
}
func (m *ProposedGameEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProposedGameEvent.Marshal(b, m, deterministic)
}
func (m *ProposedGameEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProposedGameEvent.Merge(m, src)
}
func (m *ProposedGameEvent) XXX_Size() int {
return xxx_messageInfo_ProposedGameEvent.Size(m)
}
func (m *ProposedGameEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ProposedGameEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ProposedGameEvent proto.InternalMessageInfo
func (m *ProposedGameEvent) GetValidUntil() uint64 {
if m != nil && m.ValidUntil != nil {
return *m.ValidUntil
}
return 0
}
func (m *ProposedGameEvent) GetProposerId() string {
if m != nil && m.ProposerId != nil {
return *m.ProposerId
}
return ""
}
func (m *ProposedGameEvent) GetGameEvent() *GameEvent {
if m != nil {
return m.GameEvent
}
return nil
}
func init() {
proto.RegisterEnum("Referee_Stage", Referee_Stage_name, Referee_Stage_value)
proto.RegisterEnum("Referee_Command", Referee_Command_name, Referee_Command_value)
proto.RegisterType((*Referee)(nil), "Referee")
proto.RegisterType((*Referee_TeamInfo)(nil), "Referee.TeamInfo")
proto.RegisterType((*Referee_Point)(nil), "Referee.Point")
proto.RegisterType((*ProposedGameEvent)(nil), "ProposedGameEvent")
}
func init() { proto.RegisterFile("ssl_referee.proto", fileDescriptor_f003bb08adc02ebb) }
var fileDescriptor_f003bb08adc02ebb = []byte{
// 1122 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xdd, 0x72, 0xdb, 0x44,
0x14, 0xae, 0x64, 0x3b, 0xb1, 0x8f, 0x2c, 0x5b, 0xde, 0x24, 0xad, 0x6a, 0x06, 0x30, 0xa1, 0x80,
0x4b, 0x67, 0x3c, 0x10, 0x66, 0x98, 0x81, 0x1b, 0x46, 0x76, 0xe5, 0xc6, 0x53, 0x25, 0xf2, 0xac,
0xd5, 0x81, 0x5e, 0xed, 0x6c, 0xec, 0x75, 0xd0, 0x54, 0x3f, 0x1e, 0x49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