/
feed.pb.go
2857 lines (2565 loc) · 97.9 KB
/
feed.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
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.21.5
// source: cloudbet/feed.proto
package cloudbet
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// EventStatus presents the current status for a given Event
type EventStatus int32
const (
// event is not yet open for bet placement
EventStatus_PRE_TRADING EventStatus = 0
// event is open for bet placement and is not Live yet
EventStatus_TRADING EventStatus = 1
// event is open for bet placement and Live/In-play
EventStatus_TRADING_LIVE EventStatus = 2
// event has finished and bets are graded
EventStatus_RESULTED EventStatus = 3
// event was live, but has been interrupted. Event start time may possible change in the future.
EventStatus_INTERRUPTED EventStatus = 4
// event has finished and results are being awaited
EventStatus_AWAITING_RESULTS EventStatus = 5
// event was live, but has been suspended for trading temporarily
EventStatus_POST_TRADING EventStatus = 6
// event has been cancelled. All bets already placed on this event will be pushed
EventStatus_CANCELLED EventStatus = 7
)
// Enum value maps for EventStatus.
var (
EventStatus_name = map[int32]string{
0: "PRE_TRADING",
1: "TRADING",
2: "TRADING_LIVE",
3: "RESULTED",
4: "INTERRUPTED",
5: "AWAITING_RESULTS",
6: "POST_TRADING",
7: "CANCELLED",
}
EventStatus_value = map[string]int32{
"PRE_TRADING": 0,
"TRADING": 1,
"TRADING_LIVE": 2,
"RESULTED": 3,
"INTERRUPTED": 4,
"AWAITING_RESULTS": 5,
"POST_TRADING": 6,
"CANCELLED": 7,
}
)
func (x EventStatus) Enum() *EventStatus {
p := new(EventStatus)
*p = x
return p
}
func (x EventStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EventStatus) Descriptor() protoreflect.EnumDescriptor {
return file_cloudbet_feed_proto_enumTypes[0].Descriptor()
}
func (EventStatus) Type() protoreflect.EnumType {
return &file_cloudbet_feed_proto_enumTypes[0]
}
func (x EventStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EventStatus.Descriptor instead.
func (EventStatus) EnumDescriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{0}
}
// SelectionStatus presents the current status for a given selection
type SelectionStatus int32
const (
// selection unavailable for bet placement
SelectionStatus_SELECTION_DISABLED SelectionStatus = 0
// selection available for bet placement
SelectionStatus_SELECTION_ENABLED SelectionStatus = 1
)
// Enum value maps for SelectionStatus.
var (
SelectionStatus_name = map[int32]string{
0: "SELECTION_DISABLED",
1: "SELECTION_ENABLED",
}
SelectionStatus_value = map[string]int32{
"SELECTION_DISABLED": 0,
"SELECTION_ENABLED": 1,
}
)
func (x SelectionStatus) Enum() *SelectionStatus {
p := new(SelectionStatus)
*p = x
return p
}
func (x SelectionStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SelectionStatus) Descriptor() protoreflect.EnumDescriptor {
return file_cloudbet_feed_proto_enumTypes[1].Descriptor()
}
func (SelectionStatus) Type() protoreflect.EnumType {
return &file_cloudbet_feed_proto_enumTypes[1]
}
func (x SelectionStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SelectionStatus.Descriptor instead.
func (SelectionStatus) EnumDescriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{1}
}
// Team presents the team for a given player
type Team int32
const (
// no team defined for a given player
Team_TEAM_UNDEFINED Team = 0
// given player belongs to the home team
Team_HOME Team = 1
// given player belongs to the away team
Team_AWAY Team = 2
)
// Enum value maps for Team.
var (
Team_name = map[int32]string{
0: "TEAM_UNDEFINED",
1: "HOME",
2: "AWAY",
}
Team_value = map[string]int32{
"TEAM_UNDEFINED": 0,
"HOME": 1,
"AWAY": 2,
}
)
func (x Team) Enum() *Team {
p := new(Team)
*p = x
return p
}
func (x Team) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Team) Descriptor() protoreflect.EnumDescriptor {
return file_cloudbet_feed_proto_enumTypes[2].Descriptor()
}
func (Team) Type() protoreflect.EnumType {
return &file_cloudbet_feed_proto_enumTypes[2]
}
func (x Team) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Team.Descriptor instead.
func (Team) EnumDescriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{2}
}
// EventType presents the type of an event which affects the markets format
type EventType int32
const (
EventType_EVENT_TYPE_EVENT EventType = 0
EventType_EVENT_TYPE_OUTRIGHT EventType = 1
EventType_EVENT_TYPE_VIRTUAL EventType = 2
EventType_EVENT_TYPE_MULTI_COMPETITOR_EVENT EventType = 3
)
// Enum value maps for EventType.
var (
EventType_name = map[int32]string{
0: "EVENT_TYPE_EVENT",
1: "EVENT_TYPE_OUTRIGHT",
2: "EVENT_TYPE_VIRTUAL",
3: "EVENT_TYPE_MULTI_COMPETITOR_EVENT",
}
EventType_value = map[string]int32{
"EVENT_TYPE_EVENT": 0,
"EVENT_TYPE_OUTRIGHT": 1,
"EVENT_TYPE_VIRTUAL": 2,
"EVENT_TYPE_MULTI_COMPETITOR_EVENT": 3,
}
)
func (x EventType) Enum() *EventType {
p := new(EventType)
*p = x
return p
}
func (x EventType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EventType) Descriptor() protoreflect.EnumDescriptor {
return file_cloudbet_feed_proto_enumTypes[3].Descriptor()
}
func (EventType) Type() protoreflect.EnumType {
return &file_cloudbet_feed_proto_enumTypes[3]
}
func (x EventType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EventType.Descriptor instead.
func (EventType) EnumDescriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{3}
}
// Sports is used as the root object in the /sports endpoint
//
// swagger:model Sports
type Sports struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// list of all sports offerred
Sports []*Sport `protobuf:"bytes,1,rep,name=sports,proto3" json:"sports,omitempty"`
}
func (x *Sports) Reset() {
*x = Sports{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Sports) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Sports) ProtoMessage() {}
func (x *Sports) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Sports.ProtoReflect.Descriptor instead.
func (*Sports) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{0}
}
func (x *Sports) GetSports() []*Sport {
if x != nil {
return x.Sports
}
return nil
}
// Sport is used for an individual sport's details in the /sports endpoint
//
// swagger:model Sport
type Sport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// name of this Sport
//
// example: Tennis
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Sport
//
// example: tennis
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// number of competitions associated with this Sport, 0 indicates inactive Sport
//
// example: 2
CompetitionCount uint32 `protobuf:"varint,4,opt,name=competition_count,json=competitionCount,proto3" json:"competition_count,omitempty"`
// number of events associated with this Sport, 0 indicates inactive Sport
//
// example: 4
EventCount uint32 `protobuf:"varint,7,opt,name=event_count,json=eventCount,proto3" json:"event_count,omitempty"`
}
func (x *Sport) Reset() {
*x = Sport{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Sport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Sport) ProtoMessage() {}
func (x *Sport) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Sport.ProtoReflect.Descriptor instead.
func (*Sport) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{1}
}
func (x *Sport) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Sport) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Sport) GetCompetitionCount() uint32 {
if x != nil {
return x.CompetitionCount
}
return 0
}
func (x *Sport) GetEventCount() uint32 {
if x != nil {
return x.EventCount
}
return 0
}
// SportWithCategory is used for the /sports/{key} endpoint
// with this hierarchy: sport->categories->competitions
//
// swagger:model SportWithCategory
type SportWithCategory struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// name of this Sport
//
// example: Tennis
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Sport
//
// example: tennis
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// number of competitions associated with this Sport, 0 indicates inactive Sport
//
// example: 2
CompetitionCount uint32 `protobuf:"varint,4,opt,name=competition_count,json=competitionCount,proto3" json:"competition_count,omitempty"`
// list of all categories associated with this Sport
Categories []*Category `protobuf:"bytes,5,rep,name=categories,proto3" json:"categories,omitempty"`
// number of events associated with this Sport, 0 indicates inactive Sport
//
// example: 4
EventCount uint32 `protobuf:"varint,7,opt,name=event_count,json=eventCount,proto3" json:"event_count,omitempty"`
}
func (x *SportWithCategory) Reset() {
*x = SportWithCategory{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SportWithCategory) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SportWithCategory) ProtoMessage() {}
func (x *SportWithCategory) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SportWithCategory.ProtoReflect.Descriptor instead.
func (*SportWithCategory) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{2}
}
func (x *SportWithCategory) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *SportWithCategory) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *SportWithCategory) GetCompetitionCount() uint32 {
if x != nil {
return x.CompetitionCount
}
return 0
}
func (x *SportWithCategory) GetCategories() []*Category {
if x != nil {
return x.Categories
}
return nil
}
func (x *SportWithCategory) GetEventCount() uint32 {
if x != nil {
return x.EventCount
}
return 0
}
// FixturesCompetitions is used for the /fixtures endpoint
// It gives a list of all competitions and events for the requested Sport
//
// swagger:model FixturesCompetitions
type FixturesCompetitions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// list of all requested competitions and events
Competitions []*FixturesCompetition `protobuf:"bytes,1,rep,name=competitions,proto3" json:"competitions,omitempty"`
}
func (x *FixturesCompetitions) Reset() {
*x = FixturesCompetitions{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FixturesCompetitions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FixturesCompetitions) ProtoMessage() {}
func (x *FixturesCompetitions) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FixturesCompetitions.ProtoReflect.Descriptor instead.
func (*FixturesCompetitions) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{3}
}
func (x *FixturesCompetitions) GetCompetitions() []*FixturesCompetition {
if x != nil {
return x.Competitions
}
return nil
}
// Category is used for the /sports/{key} endpoint
//
// swagger:model Category
type Category struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// name of this Category
//
// example: "ATP"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Category
//
// example: "atp"
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// list of all competitions associated with this Category
Competitions []*CompetitionForSport `protobuf:"bytes,3,rep,name=competitions,proto3" json:"competitions,omitempty"`
}
func (x *Category) Reset() {
*x = Category{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Category) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Category) ProtoMessage() {}
func (x *Category) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Category.ProtoReflect.Descriptor instead.
func (*Category) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{4}
}
func (x *Category) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Category) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Category) GetCompetitions() []*CompetitionForSport {
if x != nil {
return x.Competitions
}
return nil
}
// CompetitionForSport is used for the /sports/{key} endpoint
//
// swagger:model CompetitionForSport
type CompetitionForSport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// name of this Competition
//
// example: "French Open, Men Singles"
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Competition. Composed of <sport-key>-<category-key>-<competition-key> as shown in the example value.
//
// example: "tennis-atp-french-open-men-singles"
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// number of events associated with this Competition, 0 events indicates inactive Competition
//
// example: 2
EventCount uint32 `protobuf:"varint,11,opt,name=event_count,json=eventCount,proto3" json:"event_count,omitempty"`
}
func (x *CompetitionForSport) Reset() {
*x = CompetitionForSport{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CompetitionForSport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CompetitionForSport) ProtoMessage() {}
func (x *CompetitionForSport) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CompetitionForSport.ProtoReflect.Descriptor instead.
func (*CompetitionForSport) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{5}
}
func (x *CompetitionForSport) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CompetitionForSport) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *CompetitionForSport) GetEventCount() uint32 {
if x != nil {
return x.EventCount
}
return 0
}
// Competition is used for the /sports/competitions/{key} endpoint
//
// swagger:model Competition
type Competition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// name of this Competition
//
// example: "French Open, Men Singles"
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Competition. Composed of <sport-key>-<category-key>-<competition-key> as shown in the example value.
//
// example: "tennis-atp-french-open-men-singles"
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// sport associated with this Competition
//
// example: {"name":"Tennis","key":"tennis"}
Sport *Identifier `protobuf:"bytes,4,opt,name=sport,proto3" json:"sport,omitempty"`
// list of all events associated with this competition
Events []*EventForCompetition `protobuf:"bytes,8,rep,name=events,proto3" json:"events,omitempty"`
// category associated with this Competition
//
// example: {"name":"ATP","key":"atp"}
Category *Identifier `protobuf:"bytes,10,opt,name=category,proto3" json:"category,omitempty"`
}
func (x *Competition) Reset() {
*x = Competition{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Competition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Competition) ProtoMessage() {}
func (x *Competition) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Competition.ProtoReflect.Descriptor instead.
func (*Competition) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{6}
}
func (x *Competition) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Competition) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Competition) GetSport() *Identifier {
if x != nil {
return x.Sport
}
return nil
}
func (x *Competition) GetEvents() []*EventForCompetition {
if x != nil {
return x.Events
}
return nil
}
func (x *Competition) GetCategory() *Identifier {
if x != nil {
return x.Category
}
return nil
}
// CompetitionWithCategory is used for the /sports/events/{id} endpoint to link events with competitions
//
// swagger:model CompetitionWithCategory
type CompetitionWithCategory struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// name of this Competition
//
// example: "French Open, Men Singles"
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Competition. Composed of <sport-key>-<category-key>-<competition-key> as shown in the example value.
//
// example: "tennis-atp-french-open-men-singles"
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// category associated with this Competition
//
// example: {"name":"ATP","key":"atp"}
Category *Identifier `protobuf:"bytes,10,opt,name=category,proto3" json:"category,omitempty"`
}
func (x *CompetitionWithCategory) Reset() {
*x = CompetitionWithCategory{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CompetitionWithCategory) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CompetitionWithCategory) ProtoMessage() {}
func (x *CompetitionWithCategory) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CompetitionWithCategory.ProtoReflect.Descriptor instead.
func (*CompetitionWithCategory) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{7}
}
func (x *CompetitionWithCategory) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CompetitionWithCategory) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *CompetitionWithCategory) GetCategory() *Identifier {
if x != nil {
return x.Category
}
return nil
}
// FixturesCompetition is used for the /fixtures and /events endpoints
// It gives a list of all events for a given competition
//
// swagger:model FixturesCompetition
type FixturesCompetition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// name of this Competition
//
// example: "French Open, Men Singles"
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Competition. Composed of <sport-key>-<category-key>-<competition-key> as shown in the example value.
//
// example: "tennis-atp-french-open-men-singles"
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// sport associated with this Competition
//
// example: {"name":"Tennis","key":"tennis"}
Sport *Identifier `protobuf:"bytes,4,opt,name=sport,proto3" json:"sport,omitempty"`
// list of events which belong to this competition
Events []*FixtureListEntry `protobuf:"bytes,8,rep,name=events,proto3" json:"events,omitempty"`
// category associated with all events in this list
//
// example: {"name":"ATP","key":"atp"}
Category *Identifier `protobuf:"bytes,10,opt,name=category,proto3" json:"category,omitempty"`
}
func (x *FixturesCompetition) Reset() {
*x = FixturesCompetition{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FixturesCompetition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FixturesCompetition) ProtoMessage() {}
func (x *FixturesCompetition) ProtoReflect() protoreflect.Message {
mi := &file_cloudbet_feed_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FixturesCompetition.ProtoReflect.Descriptor instead.
func (*FixturesCompetition) Descriptor() ([]byte, []int) {
return file_cloudbet_feed_proto_rawDescGZIP(), []int{8}
}
func (x *FixturesCompetition) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *FixturesCompetition) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *FixturesCompetition) GetSport() *Identifier {
if x != nil {
return x.Sport
}
return nil
}
func (x *FixturesCompetition) GetEvents() []*FixtureListEntry {
if x != nil {
return x.Events
}
return nil
}
func (x *FixturesCompetition) GetCategory() *Identifier {
if x != nil {
return x.Category
}
return nil
}
// EventForCompetition is used for the /sports/competitions/{key} endpoint
//
// swagger:model EventForCompetition
type EventForCompetition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// sequential update number for this Event
//
// example: 127
Sequence int64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
// unique ID for this Event
//
// example: 7498746
Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// details for the home team competitor of this Event
Home *TeamIdentifier `protobuf:"bytes,7,opt,name=home,proto3" json:"home,omitempty"`
// details for the away team competitor of this Event
Away *TeamIdentifier `protobuf:"bytes,8,opt,name=away,proto3" json:"away,omitempty"`
// current status of this Event. Possible Event Status states and their meanings are explained [here](https://github.com/Cloudbet/docs/blob/3bbbcf9bf19426d74702e95292e47a147f9a503a/README.md#event-status)
//
// example: "TRADING"
Status EventStatus `protobuf:"varint,10,opt,name=status,proto3,enum=cloudbet.EventStatus" json:"status,omitempty"`
// mapping between market key and all associated markets for this Event
Markets map[string]*Market `protobuf:"bytes,13,rep,name=markets,proto3" json:"markets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// name of this Event
//
// example: "Rafael Nadal V Diego Schwartzman"
Name string `protobuf:"bytes,18,opt,name=name,proto3" json:"name,omitempty"`
// slug for this Event
//
// example: "c886a-nadal-rafael-v-c8973-schwartzman-diego"
Key string `protobuf:"bytes,19,opt,name=key,proto3" json:"key,omitempty"`
// event cutoff time in string format "2006-01-02T15:04:05Z07:00" (RFC3339)
//
// example: "2021-06-09T09:00:00Z"
CutoffTime string `protobuf:"bytes,23,opt,name=cutoff_time,json=cutoffTime,proto3" json:"cutoff_time,omitempty"`
// metadata about this event, such as Cloudbet opinion on the winner
Metadata *EventMetadata `protobuf:"bytes,17,opt,name=metadata,proto3" json:"metadata,omitempty"`
// event type for this event
//
// example: "EVENT_TYPE_EVENT"
Type EventType `protobuf:"varint,24,opt,name=type,proto3,enum=cloudbet.EventType" json:"type,omitempty"`
}
func (x *EventForCompetition) Reset() {
*x = EventForCompetition{}
if protoimpl.UnsafeEnabled {
mi := &file_cloudbet_feed_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))