/
cube.pb.go
3678 lines (3261 loc) · 141 KB
/
cube.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
// Copyright (c) 2018 Anki, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License in the file LICENSE.txt or at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// External interface for robot <-> app and robot <-> sdk communication
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.24.0-devel
// protoc v3.12.4
// source: cube.proto
package vectorpb
import (
proto "github.com/golang/protobuf/proto"
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type ObjectType int32
const (
ObjectType_INVALID_OBJECT ObjectType = 0
ObjectType_UNKNOWN_OBJECT ObjectType = 1
//////////////////////////////////////////////////////////////////////////
// Light Cube (a.k.a. Active Block)
//
ObjectType_BLOCK_LIGHTCUBE1 ObjectType = 2
ObjectType_CHARGER_BASIC ObjectType = 6
ObjectType_FIRST_CUSTOM_OBJECT_TYPE ObjectType = 15
)
// Enum value maps for ObjectType.
var (
ObjectType_name = map[int32]string{
0: "INVALID_OBJECT",
1: "UNKNOWN_OBJECT",
2: "BLOCK_LIGHTCUBE1",
6: "CHARGER_BASIC",
15: "FIRST_CUSTOM_OBJECT_TYPE",
}
ObjectType_value = map[string]int32{
"INVALID_OBJECT": 0,
"UNKNOWN_OBJECT": 1,
"BLOCK_LIGHTCUBE1": 2,
"CHARGER_BASIC": 6,
"FIRST_CUSTOM_OBJECT_TYPE": 15,
}
)
func (x ObjectType) Enum() *ObjectType {
p := new(ObjectType)
*p = x
return p
}
func (x ObjectType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ObjectType) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[0].Descriptor()
}
func (ObjectType) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[0]
}
func (x ObjectType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ObjectType.Descriptor instead.
func (ObjectType) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{0}
}
type CustomType int32
const (
CustomType_INVALID_CUSTOM_TYPE CustomType = 0
CustomType_CUSTOM_TYPE_00 CustomType = 1
CustomType_CUSTOM_TYPE_01 CustomType = 2
CustomType_CUSTOM_TYPE_02 CustomType = 3
CustomType_CUSTOM_TYPE_03 CustomType = 4
CustomType_CUSTOM_TYPE_04 CustomType = 5
CustomType_CUSTOM_TYPE_05 CustomType = 6
CustomType_CUSTOM_TYPE_06 CustomType = 7
CustomType_CUSTOM_TYPE_07 CustomType = 8
CustomType_CUSTOM_TYPE_08 CustomType = 9
CustomType_CUSTOM_TYPE_09 CustomType = 10
CustomType_CUSTOM_TYPE_10 CustomType = 11
CustomType_CUSTOM_TYPE_11 CustomType = 12
CustomType_CUSTOM_TYPE_12 CustomType = 13
CustomType_CUSTOM_TYPE_13 CustomType = 14
CustomType_CUSTOM_TYPE_14 CustomType = 15
CustomType_CUSTOM_TYPE_15 CustomType = 16
CustomType_CUSTOM_TYPE_16 CustomType = 17
CustomType_CUSTOM_TYPE_17 CustomType = 18
CustomType_CUSTOM_TYPE_18 CustomType = 19
CustomType_CUSTOM_TYPE_19 CustomType = 20
CustomType_CUSTOM_TYPE_COUNT CustomType = 20
)
// Enum value maps for CustomType.
var (
CustomType_name = map[int32]string{
0: "INVALID_CUSTOM_TYPE",
1: "CUSTOM_TYPE_00",
2: "CUSTOM_TYPE_01",
3: "CUSTOM_TYPE_02",
4: "CUSTOM_TYPE_03",
5: "CUSTOM_TYPE_04",
6: "CUSTOM_TYPE_05",
7: "CUSTOM_TYPE_06",
8: "CUSTOM_TYPE_07",
9: "CUSTOM_TYPE_08",
10: "CUSTOM_TYPE_09",
11: "CUSTOM_TYPE_10",
12: "CUSTOM_TYPE_11",
13: "CUSTOM_TYPE_12",
14: "CUSTOM_TYPE_13",
15: "CUSTOM_TYPE_14",
16: "CUSTOM_TYPE_15",
17: "CUSTOM_TYPE_16",
18: "CUSTOM_TYPE_17",
19: "CUSTOM_TYPE_18",
20: "CUSTOM_TYPE_19",
// Duplicate value: 20: "CUSTOM_TYPE_COUNT",
}
CustomType_value = map[string]int32{
"INVALID_CUSTOM_TYPE": 0,
"CUSTOM_TYPE_00": 1,
"CUSTOM_TYPE_01": 2,
"CUSTOM_TYPE_02": 3,
"CUSTOM_TYPE_03": 4,
"CUSTOM_TYPE_04": 5,
"CUSTOM_TYPE_05": 6,
"CUSTOM_TYPE_06": 7,
"CUSTOM_TYPE_07": 8,
"CUSTOM_TYPE_08": 9,
"CUSTOM_TYPE_09": 10,
"CUSTOM_TYPE_10": 11,
"CUSTOM_TYPE_11": 12,
"CUSTOM_TYPE_12": 13,
"CUSTOM_TYPE_13": 14,
"CUSTOM_TYPE_14": 15,
"CUSTOM_TYPE_15": 16,
"CUSTOM_TYPE_16": 17,
"CUSTOM_TYPE_17": 18,
"CUSTOM_TYPE_18": 19,
"CUSTOM_TYPE_19": 20,
"CUSTOM_TYPE_COUNT": 20,
}
)
func (x CustomType) Enum() *CustomType {
p := new(CustomType)
*p = x
return p
}
func (x CustomType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CustomType) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[1].Descriptor()
}
func (CustomType) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[1]
}
func (x CustomType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CustomType.Descriptor instead.
func (CustomType) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{1}
}
// Note: ObjectFamily is deprecated and will be removed in future releases
type ObjectFamily int32
const (
ObjectFamily_INVALID_FAMILY ObjectFamily = 0
ObjectFamily_UNKNOWN_FAMILY ObjectFamily = 1
ObjectFamily_BLOCK ObjectFamily = 2
ObjectFamily_LIGHT_CUBE ObjectFamily = 3
ObjectFamily_CHARGER ObjectFamily = 4
ObjectFamily_CUSTOM_OBJECT ObjectFamily = 7
ObjectFamily_OBJECT_FAMILY_COUNT ObjectFamily = 7
)
// Enum value maps for ObjectFamily.
var (
ObjectFamily_name = map[int32]string{
0: "INVALID_FAMILY",
1: "UNKNOWN_FAMILY",
2: "BLOCK",
3: "LIGHT_CUBE",
4: "CHARGER",
7: "CUSTOM_OBJECT",
// Duplicate value: 7: "OBJECT_FAMILY_COUNT",
}
ObjectFamily_value = map[string]int32{
"INVALID_FAMILY": 0,
"UNKNOWN_FAMILY": 1,
"BLOCK": 2,
"LIGHT_CUBE": 3,
"CHARGER": 4,
"CUSTOM_OBJECT": 7,
"OBJECT_FAMILY_COUNT": 7,
}
)
func (x ObjectFamily) Enum() *ObjectFamily {
p := new(ObjectFamily)
*p = x
return p
}
func (x ObjectFamily) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ObjectFamily) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[2].Descriptor()
}
func (ObjectFamily) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[2]
}
func (x ObjectFamily) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ObjectFamily.Descriptor instead.
func (ObjectFamily) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{2}
}
type UpAxis int32
const (
UpAxis_INVALID_AXIS UpAxis = 0
UpAxis_X_NEGATIVE UpAxis = 1
UpAxis_X_POSITIVE UpAxis = 2
UpAxis_Y_NEGATIVE UpAxis = 3
UpAxis_Y_POSITIVE UpAxis = 4
UpAxis_Z_NEGATIVE UpAxis = 5
UpAxis_Z_POSITIVE UpAxis = 6
UpAxis_NUM_AXES UpAxis = 7
)
// Enum value maps for UpAxis.
var (
UpAxis_name = map[int32]string{
0: "INVALID_AXIS",
1: "X_NEGATIVE",
2: "X_POSITIVE",
3: "Y_NEGATIVE",
4: "Y_POSITIVE",
5: "Z_NEGATIVE",
6: "Z_POSITIVE",
7: "NUM_AXES",
}
UpAxis_value = map[string]int32{
"INVALID_AXIS": 0,
"X_NEGATIVE": 1,
"X_POSITIVE": 2,
"Y_NEGATIVE": 3,
"Y_POSITIVE": 4,
"Z_NEGATIVE": 5,
"Z_POSITIVE": 6,
"NUM_AXES": 7,
}
)
func (x UpAxis) Enum() *UpAxis {
p := new(UpAxis)
*p = x
return p
}
func (x UpAxis) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UpAxis) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[3].Descriptor()
}
func (UpAxis) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[3]
}
func (x UpAxis) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UpAxis.Descriptor instead.
func (UpAxis) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{3}
}
// Constants associated with the audio feed
type ObjectConstants int32
const (
ObjectConstants_OBJECT_CONSTANTS_NULL ObjectConstants = 0 // error value
ObjectConstants_FIXED_CUSTOM_WALL_THICKNESS_MM ObjectConstants = 10 // The depth of custom walls used in the engine
)
// Enum value maps for ObjectConstants.
var (
ObjectConstants_name = map[int32]string{
0: "OBJECT_CONSTANTS_NULL",
10: "FIXED_CUSTOM_WALL_THICKNESS_MM",
}
ObjectConstants_value = map[string]int32{
"OBJECT_CONSTANTS_NULL": 0,
"FIXED_CUSTOM_WALL_THICKNESS_MM": 10,
}
)
func (x ObjectConstants) Enum() *ObjectConstants {
p := new(ObjectConstants)
*p = x
return p
}
func (x ObjectConstants) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ObjectConstants) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[4].Descriptor()
}
func (ObjectConstants) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[4]
}
func (x ObjectConstants) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ObjectConstants.Descriptor instead.
func (ObjectConstants) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{4}
}
type CustomObjectMarker int32
const (
CustomObjectMarker_CUSTOM_MARKER_UNKNOWN CustomObjectMarker = 0
CustomObjectMarker_CUSTOM_MARKER_CIRCLES_2 CustomObjectMarker = 1
CustomObjectMarker_CUSTOM_MARKER_CIRCLES_3 CustomObjectMarker = 2
CustomObjectMarker_CUSTOM_MARKER_CIRCLES_4 CustomObjectMarker = 3
CustomObjectMarker_CUSTOM_MARKER_CIRCLES_5 CustomObjectMarker = 4
CustomObjectMarker_CUSTOM_MARKER_DIAMONDS_2 CustomObjectMarker = 5
CustomObjectMarker_CUSTOM_MARKER_DIAMONDS_3 CustomObjectMarker = 6
CustomObjectMarker_CUSTOM_MARKER_DIAMONDS_4 CustomObjectMarker = 7
CustomObjectMarker_CUSTOM_MARKER_DIAMONDS_5 CustomObjectMarker = 8
CustomObjectMarker_CUSTOM_MARKER_HEXAGONS_2 CustomObjectMarker = 9
CustomObjectMarker_CUSTOM_MARKER_HEXAGONS_3 CustomObjectMarker = 10
CustomObjectMarker_CUSTOM_MARKER_HEXAGONS_4 CustomObjectMarker = 11
CustomObjectMarker_CUSTOM_MARKER_HEXAGONS_5 CustomObjectMarker = 12
CustomObjectMarker_CUSTOM_MARKER_TRIANGLES_2 CustomObjectMarker = 13
CustomObjectMarker_CUSTOM_MARKER_TRIANGLES_3 CustomObjectMarker = 14
CustomObjectMarker_CUSTOM_MARKER_TRIANGLES_4 CustomObjectMarker = 15
CustomObjectMarker_CUSTOM_MARKER_TRIANGLES_5 CustomObjectMarker = 16
CustomObjectMarker_CUSTOM_MARKER_COUNT CustomObjectMarker = 16
)
// Enum value maps for CustomObjectMarker.
var (
CustomObjectMarker_name = map[int32]string{
0: "CUSTOM_MARKER_UNKNOWN",
1: "CUSTOM_MARKER_CIRCLES_2",
2: "CUSTOM_MARKER_CIRCLES_3",
3: "CUSTOM_MARKER_CIRCLES_4",
4: "CUSTOM_MARKER_CIRCLES_5",
5: "CUSTOM_MARKER_DIAMONDS_2",
6: "CUSTOM_MARKER_DIAMONDS_3",
7: "CUSTOM_MARKER_DIAMONDS_4",
8: "CUSTOM_MARKER_DIAMONDS_5",
9: "CUSTOM_MARKER_HEXAGONS_2",
10: "CUSTOM_MARKER_HEXAGONS_3",
11: "CUSTOM_MARKER_HEXAGONS_4",
12: "CUSTOM_MARKER_HEXAGONS_5",
13: "CUSTOM_MARKER_TRIANGLES_2",
14: "CUSTOM_MARKER_TRIANGLES_3",
15: "CUSTOM_MARKER_TRIANGLES_4",
16: "CUSTOM_MARKER_TRIANGLES_5",
// Duplicate value: 16: "CUSTOM_MARKER_COUNT",
}
CustomObjectMarker_value = map[string]int32{
"CUSTOM_MARKER_UNKNOWN": 0,
"CUSTOM_MARKER_CIRCLES_2": 1,
"CUSTOM_MARKER_CIRCLES_3": 2,
"CUSTOM_MARKER_CIRCLES_4": 3,
"CUSTOM_MARKER_CIRCLES_5": 4,
"CUSTOM_MARKER_DIAMONDS_2": 5,
"CUSTOM_MARKER_DIAMONDS_3": 6,
"CUSTOM_MARKER_DIAMONDS_4": 7,
"CUSTOM_MARKER_DIAMONDS_5": 8,
"CUSTOM_MARKER_HEXAGONS_2": 9,
"CUSTOM_MARKER_HEXAGONS_3": 10,
"CUSTOM_MARKER_HEXAGONS_4": 11,
"CUSTOM_MARKER_HEXAGONS_5": 12,
"CUSTOM_MARKER_TRIANGLES_2": 13,
"CUSTOM_MARKER_TRIANGLES_3": 14,
"CUSTOM_MARKER_TRIANGLES_4": 15,
"CUSTOM_MARKER_TRIANGLES_5": 16,
"CUSTOM_MARKER_COUNT": 16,
}
)
func (x CustomObjectMarker) Enum() *CustomObjectMarker {
p := new(CustomObjectMarker)
*p = x
return p
}
func (x CustomObjectMarker) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CustomObjectMarker) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[5].Descriptor()
}
func (CustomObjectMarker) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[5]
}
func (x CustomObjectMarker) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CustomObjectMarker.Descriptor instead.
func (CustomObjectMarker) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{5}
}
type CustomObjectDeletionMode int32
const (
CustomObjectDeletionMode_DELETION_MASK_UNKNOWN CustomObjectDeletionMode = 0
CustomObjectDeletionMode_DELETION_MASK_FIXED_CUSTOM_OBJECTS CustomObjectDeletionMode = 1
CustomObjectDeletionMode_DELETION_MASK_CUSTOM_MARKER_OBJECTS CustomObjectDeletionMode = 2
CustomObjectDeletionMode_DELETION_MASK_ARCHETYPES CustomObjectDeletionMode = 3
)
// Enum value maps for CustomObjectDeletionMode.
var (
CustomObjectDeletionMode_name = map[int32]string{
0: "DELETION_MASK_UNKNOWN",
1: "DELETION_MASK_FIXED_CUSTOM_OBJECTS",
2: "DELETION_MASK_CUSTOM_MARKER_OBJECTS",
3: "DELETION_MASK_ARCHETYPES",
}
CustomObjectDeletionMode_value = map[string]int32{
"DELETION_MASK_UNKNOWN": 0,
"DELETION_MASK_FIXED_CUSTOM_OBJECTS": 1,
"DELETION_MASK_CUSTOM_MARKER_OBJECTS": 2,
"DELETION_MASK_ARCHETYPES": 3,
}
)
func (x CustomObjectDeletionMode) Enum() *CustomObjectDeletionMode {
p := new(CustomObjectDeletionMode)
*p = x
return p
}
func (x CustomObjectDeletionMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CustomObjectDeletionMode) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[6].Descriptor()
}
func (CustomObjectDeletionMode) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[6]
}
func (x CustomObjectDeletionMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CustomObjectDeletionMode.Descriptor instead.
func (CustomObjectDeletionMode) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{6}
}
// This is a uint_8 internally.
type SetCubeLightsRequest_MakeRelativeMode int32
const (
SetCubeLightsRequest_UNKNOWN SetCubeLightsRequest_MakeRelativeMode = 0
SetCubeLightsRequest_OFF SetCubeLightsRequest_MakeRelativeMode = 1
SetCubeLightsRequest_BY_CORNER SetCubeLightsRequest_MakeRelativeMode = 2
SetCubeLightsRequest_BY_SIDE SetCubeLightsRequest_MakeRelativeMode = 3
)
// Enum value maps for SetCubeLightsRequest_MakeRelativeMode.
var (
SetCubeLightsRequest_MakeRelativeMode_name = map[int32]string{
0: "UNKNOWN",
1: "OFF",
2: "BY_CORNER",
3: "BY_SIDE",
}
SetCubeLightsRequest_MakeRelativeMode_value = map[string]int32{
"UNKNOWN": 0,
"OFF": 1,
"BY_CORNER": 2,
"BY_SIDE": 3,
}
)
func (x SetCubeLightsRequest_MakeRelativeMode) Enum() *SetCubeLightsRequest_MakeRelativeMode {
p := new(SetCubeLightsRequest_MakeRelativeMode)
*p = x
return p
}
func (x SetCubeLightsRequest_MakeRelativeMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SetCubeLightsRequest_MakeRelativeMode) Descriptor() protoreflect.EnumDescriptor {
return file_cube_proto_enumTypes[7].Descriptor()
}
func (SetCubeLightsRequest_MakeRelativeMode) Type() protoreflect.EnumType {
return &file_cube_proto_enumTypes[7]
}
func (x SetCubeLightsRequest_MakeRelativeMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SetCubeLightsRequest_MakeRelativeMode.Descriptor instead.
func (SetCubeLightsRequest_MakeRelativeMode) EnumDescriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{12, 0}
}
// Attempt to connect to a cube. If a cube is currently connected,
// this will do nothing.
type ConnectCubeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *ConnectCubeRequest) Reset() {
*x = ConnectCubeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConnectCubeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConnectCubeRequest) ProtoMessage() {}
func (x *ConnectCubeRequest) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 ConnectCubeRequest.ProtoReflect.Descriptor instead.
func (*ConnectCubeRequest) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{0}
}
type ConnectCubeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status *ResponseStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
ObjectId uint32 `protobuf:"varint,3,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
FactoryId string `protobuf:"bytes,4,opt,name=factory_id,json=factoryId,proto3" json:"factory_id,omitempty"`
}
func (x *ConnectCubeResponse) Reset() {
*x = ConnectCubeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConnectCubeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConnectCubeResponse) ProtoMessage() {}
func (x *ConnectCubeResponse) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 ConnectCubeResponse.ProtoReflect.Descriptor instead.
func (*ConnectCubeResponse) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{1}
}
func (x *ConnectCubeResponse) GetStatus() *ResponseStatus {
if x != nil {
return x.Status
}
return nil
}
func (x *ConnectCubeResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *ConnectCubeResponse) GetObjectId() uint32 {
if x != nil {
return x.ObjectId
}
return 0
}
func (x *ConnectCubeResponse) GetFactoryId() string {
if x != nil {
return x.FactoryId
}
return ""
}
type CubesAvailableRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *CubesAvailableRequest) Reset() {
*x = CubesAvailableRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CubesAvailableRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CubesAvailableRequest) ProtoMessage() {}
func (x *CubesAvailableRequest) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 CubesAvailableRequest.ProtoReflect.Descriptor instead.
func (*CubesAvailableRequest) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{2}
}
type CubesAvailableResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status *ResponseStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
FactoryIds []string `protobuf:"bytes,2,rep,name=factory_ids,json=factoryIds,proto3" json:"factory_ids,omitempty"`
}
func (x *CubesAvailableResponse) Reset() {
*x = CubesAvailableResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CubesAvailableResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CubesAvailableResponse) ProtoMessage() {}
func (x *CubesAvailableResponse) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 CubesAvailableResponse.ProtoReflect.Descriptor instead.
func (*CubesAvailableResponse) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{3}
}
func (x *CubesAvailableResponse) GetStatus() *ResponseStatus {
if x != nil {
return x.Status
}
return nil
}
func (x *CubesAvailableResponse) GetFactoryIds() []string {
if x != nil {
return x.FactoryIds
}
return nil
}
// Requests a disconnection from the currently connected cube.
type DisconnectCubeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *DisconnectCubeRequest) Reset() {
*x = DisconnectCubeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisconnectCubeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisconnectCubeRequest) ProtoMessage() {}
func (x *DisconnectCubeRequest) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 DisconnectCubeRequest.ProtoReflect.Descriptor instead.
func (*DisconnectCubeRequest) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{4}
}
type DisconnectCubeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status *ResponseStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (x *DisconnectCubeResponse) Reset() {
*x = DisconnectCubeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DisconnectCubeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DisconnectCubeResponse) ProtoMessage() {}
func (x *DisconnectCubeResponse) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 DisconnectCubeResponse.ProtoReflect.Descriptor instead.
func (*DisconnectCubeResponse) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{5}
}
func (x *DisconnectCubeResponse) GetStatus() *ResponseStatus {
if x != nil {
return x.Status
}
return nil
}
// Plays the default cube connection animation on the currently
// connected cube's lights. This is intended for app level user
// surfacing of cube connectivity, not for sdk cube light control.
type FlashCubeLightsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FlashCubeLightsRequest) Reset() {
*x = FlashCubeLightsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FlashCubeLightsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FlashCubeLightsRequest) ProtoMessage() {}
func (x *FlashCubeLightsRequest) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 FlashCubeLightsRequest.ProtoReflect.Descriptor instead.
func (*FlashCubeLightsRequest) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{6}
}
type FlashCubeLightsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status *ResponseStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (x *FlashCubeLightsResponse) Reset() {
*x = FlashCubeLightsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FlashCubeLightsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FlashCubeLightsResponse) ProtoMessage() {}
func (x *FlashCubeLightsResponse) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 FlashCubeLightsResponse.ProtoReflect.Descriptor instead.
func (*FlashCubeLightsResponse) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{7}
}
func (x *FlashCubeLightsResponse) GetStatus() *ResponseStatus {
if x != nil {
return x.Status
}
return nil
}
// Forget the robot's preferred cube. This will cause the robot to
// connect to the cube with the highest RSSI (signal strength) next
// time a connection is requested. Saves this preference to disk.
// The next cube that the robot connects to will become its
// preferred cube.
type ForgetPreferredCubeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *ForgetPreferredCubeRequest) Reset() {
*x = ForgetPreferredCubeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cube_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForgetPreferredCubeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForgetPreferredCubeRequest) ProtoMessage() {}
func (x *ForgetPreferredCubeRequest) ProtoReflect() protoreflect.Message {
mi := &file_cube_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 ForgetPreferredCubeRequest.ProtoReflect.Descriptor instead.
func (*ForgetPreferredCubeRequest) Descriptor() ([]byte, []int) {
return file_cube_proto_rawDescGZIP(), []int{8}
}