forked from infobloxopen/atlas-app-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collection_operators.pb.go
1392 lines (1267 loc) · 49.9 KB
/
collection_operators.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.
// source: github.com/infobloxopen/atlas-app-toolkit/query/collection_operators.proto
/*
Package query is a generated protocol buffer package.
It is generated from these files:
github.com/infobloxopen/atlas-app-toolkit/query/collection_operators.proto
It has these top-level messages:
SortCriteria
Sorting
FieldSelection
Field
Filtering
LogicalOperator
StringCondition
NumberCondition
NullCondition
StringArrayCondition
NumberArrayCondition
Pagination
PageInfo
*/
package query
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Order is a sort order.
type SortCriteria_Order int32
const (
// ascending sort order
SortCriteria_ASC SortCriteria_Order = 0
// descending sort order
SortCriteria_DESC SortCriteria_Order = 1
)
var SortCriteria_Order_name = map[int32]string{
0: "ASC",
1: "DESC",
}
var SortCriteria_Order_value = map[string]int32{
"ASC": 0,
"DESC": 1,
}
func (x SortCriteria_Order) String() string {
return proto.EnumName(SortCriteria_Order_name, int32(x))
}
func (SortCriteria_Order) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
type LogicalOperator_Type int32
const (
LogicalOperator_AND LogicalOperator_Type = 0
LogicalOperator_OR LogicalOperator_Type = 1
)
var LogicalOperator_Type_name = map[int32]string{
0: "AND",
1: "OR",
}
var LogicalOperator_Type_value = map[string]int32{
"AND": 0,
"OR": 1,
}
func (x LogicalOperator_Type) String() string {
return proto.EnumName(LogicalOperator_Type_name, int32(x))
}
func (LogicalOperator_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 0} }
type StringCondition_Type int32
const (
StringCondition_EQ StringCondition_Type = 0
StringCondition_MATCH StringCondition_Type = 1
StringCondition_GT StringCondition_Type = 2
StringCondition_GE StringCondition_Type = 3
StringCondition_LT StringCondition_Type = 4
StringCondition_LE StringCondition_Type = 5
StringCondition_IEQ StringCondition_Type = 6
)
var StringCondition_Type_name = map[int32]string{
0: "EQ",
1: "MATCH",
2: "GT",
3: "GE",
4: "LT",
5: "LE",
6: "IEQ",
}
var StringCondition_Type_value = map[string]int32{
"EQ": 0,
"MATCH": 1,
"GT": 2,
"GE": 3,
"LT": 4,
"LE": 5,
"IEQ": 6,
}
func (x StringCondition_Type) String() string {
return proto.EnumName(StringCondition_Type_name, int32(x))
}
func (StringCondition_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} }
type NumberCondition_Type int32
const (
NumberCondition_EQ NumberCondition_Type = 0
NumberCondition_GT NumberCondition_Type = 1
NumberCondition_GE NumberCondition_Type = 2
NumberCondition_LT NumberCondition_Type = 3
NumberCondition_LE NumberCondition_Type = 4
)
var NumberCondition_Type_name = map[int32]string{
0: "EQ",
1: "GT",
2: "GE",
3: "LT",
4: "LE",
}
var NumberCondition_Type_value = map[string]int32{
"EQ": 0,
"GT": 1,
"GE": 2,
"LT": 3,
"LE": 4,
}
func (x NumberCondition_Type) String() string {
return proto.EnumName(NumberCondition_Type_name, int32(x))
}
func (NumberCondition_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{7, 0} }
type StringArrayCondition_Type int32
const (
StringArrayCondition_IN StringArrayCondition_Type = 0
)
var StringArrayCondition_Type_name = map[int32]string{
0: "IN",
}
var StringArrayCondition_Type_value = map[string]int32{
"IN": 0,
}
func (x StringArrayCondition_Type) String() string {
return proto.EnumName(StringArrayCondition_Type_name, int32(x))
}
func (StringArrayCondition_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{9, 0} }
type NumberArrayCondition_Type int32
const (
NumberArrayCondition_IN NumberArrayCondition_Type = 0
)
var NumberArrayCondition_Type_name = map[int32]string{
0: "IN",
}
var NumberArrayCondition_Type_value = map[string]int32{
"IN": 0,
}
func (x NumberArrayCondition_Type) String() string {
return proto.EnumName(NumberArrayCondition_Type_name, int32(x))
}
func (NumberArrayCondition_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{10, 0}
}
// SortCriteria represents sort criteria
type SortCriteria struct {
// Tag is a JSON tag.
Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
Order SortCriteria_Order `protobuf:"varint,2,opt,name=order,enum=infoblox.api.SortCriteria_Order" json:"order,omitempty"`
}
func (m *SortCriteria) Reset() { *m = SortCriteria{} }
func (m *SortCriteria) String() string { return proto.CompactTextString(m) }
func (*SortCriteria) ProtoMessage() {}
func (*SortCriteria) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SortCriteria) GetTag() string {
if m != nil {
return m.Tag
}
return ""
}
func (m *SortCriteria) GetOrder() SortCriteria_Order {
if m != nil {
return m.Order
}
return SortCriteria_ASC
}
// Sorting represents list of sort criterias.
type Sorting struct {
Criterias []*SortCriteria `protobuf:"bytes,1,rep,name=criterias" json:"criterias,omitempty"`
}
func (m *Sorting) Reset() { *m = Sorting{} }
func (m *Sorting) String() string { return proto.CompactTextString(m) }
func (*Sorting) ProtoMessage() {}
func (*Sorting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Sorting) GetCriterias() []*SortCriteria {
if m != nil {
return m.Criterias
}
return nil
}
// FieldSelection represents a group of fields for some object.
// Main use case for if is to store information about object fields that
// need to be ratained prior to sending object as a response
type FieldSelection struct {
Fields map[string]*Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *FieldSelection) Reset() { *m = FieldSelection{} }
func (m *FieldSelection) String() string { return proto.CompactTextString(m) }
func (*FieldSelection) ProtoMessage() {}
func (*FieldSelection) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *FieldSelection) GetFields() map[string]*Field {
if m != nil {
return m.Fields
}
return nil
}
// Field represents a single field for an object.
// It contains fields name and also may contain a group of sub-fields for cases
// when a fields represents some structure.
type Field struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Subs map[string]*Field `protobuf:"bytes,2,rep,name=subs" json:"subs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *Field) Reset() { *m = Field{} }
func (m *Field) String() string { return proto.CompactTextString(m) }
func (*Field) ProtoMessage() {}
func (*Field) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Field) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Field) GetSubs() map[string]*Field {
if m != nil {
return m.Subs
}
return nil
}
// Filtering represents filtering expression.
// root could be either LogicalOperator or one of the supported conditions.
type Filtering struct {
// Types that are valid to be assigned to Root:
// *Filtering_Operator
// *Filtering_StringCondition
// *Filtering_NumberCondition
// *Filtering_NullCondition
// *Filtering_StringArrayCondition
// *Filtering_NumberArrayCondition
Root isFiltering_Root `protobuf_oneof:"root"`
}
func (m *Filtering) Reset() { *m = Filtering{} }
func (m *Filtering) String() string { return proto.CompactTextString(m) }
func (*Filtering) ProtoMessage() {}
func (*Filtering) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
type isFiltering_Root interface {
isFiltering_Root()
}
type Filtering_Operator struct {
Operator *LogicalOperator `protobuf:"bytes,1,opt,name=operator,oneof"`
}
type Filtering_StringCondition struct {
StringCondition *StringCondition `protobuf:"bytes,2,opt,name=string_condition,json=stringCondition,oneof"`
}
type Filtering_NumberCondition struct {
NumberCondition *NumberCondition `protobuf:"bytes,3,opt,name=number_condition,json=numberCondition,oneof"`
}
type Filtering_NullCondition struct {
NullCondition *NullCondition `protobuf:"bytes,4,opt,name=null_condition,json=nullCondition,oneof"`
}
type Filtering_StringArrayCondition struct {
StringArrayCondition *StringArrayCondition `protobuf:"bytes,5,opt,name=string_array_condition,json=stringArrayCondition,oneof"`
}
type Filtering_NumberArrayCondition struct {
NumberArrayCondition *NumberArrayCondition `protobuf:"bytes,6,opt,name=number_array_condition,json=numberArrayCondition,oneof"`
}
func (*Filtering_Operator) isFiltering_Root() {}
func (*Filtering_StringCondition) isFiltering_Root() {}
func (*Filtering_NumberCondition) isFiltering_Root() {}
func (*Filtering_NullCondition) isFiltering_Root() {}
func (*Filtering_StringArrayCondition) isFiltering_Root() {}
func (*Filtering_NumberArrayCondition) isFiltering_Root() {}
func (m *Filtering) GetRoot() isFiltering_Root {
if m != nil {
return m.Root
}
return nil
}
func (m *Filtering) GetOperator() *LogicalOperator {
if x, ok := m.GetRoot().(*Filtering_Operator); ok {
return x.Operator
}
return nil
}
func (m *Filtering) GetStringCondition() *StringCondition {
if x, ok := m.GetRoot().(*Filtering_StringCondition); ok {
return x.StringCondition
}
return nil
}
func (m *Filtering) GetNumberCondition() *NumberCondition {
if x, ok := m.GetRoot().(*Filtering_NumberCondition); ok {
return x.NumberCondition
}
return nil
}
func (m *Filtering) GetNullCondition() *NullCondition {
if x, ok := m.GetRoot().(*Filtering_NullCondition); ok {
return x.NullCondition
}
return nil
}
func (m *Filtering) GetStringArrayCondition() *StringArrayCondition {
if x, ok := m.GetRoot().(*Filtering_StringArrayCondition); ok {
return x.StringArrayCondition
}
return nil
}
func (m *Filtering) GetNumberArrayCondition() *NumberArrayCondition {
if x, ok := m.GetRoot().(*Filtering_NumberArrayCondition); ok {
return x.NumberArrayCondition
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Filtering) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Filtering_OneofMarshaler, _Filtering_OneofUnmarshaler, _Filtering_OneofSizer, []interface{}{
(*Filtering_Operator)(nil),
(*Filtering_StringCondition)(nil),
(*Filtering_NumberCondition)(nil),
(*Filtering_NullCondition)(nil),
(*Filtering_StringArrayCondition)(nil),
(*Filtering_NumberArrayCondition)(nil),
}
}
func _Filtering_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Filtering)
// root
switch x := m.Root.(type) {
case *Filtering_Operator:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Operator); err != nil {
return err
}
case *Filtering_StringCondition:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.StringCondition); err != nil {
return err
}
case *Filtering_NumberCondition:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.NumberCondition); err != nil {
return err
}
case *Filtering_NullCondition:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.NullCondition); err != nil {
return err
}
case *Filtering_StringArrayCondition:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.StringArrayCondition); err != nil {
return err
}
case *Filtering_NumberArrayCondition:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.NumberArrayCondition); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Filtering.Root has unexpected type %T", x)
}
return nil
}
func _Filtering_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Filtering)
switch tag {
case 1: // root.operator
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(LogicalOperator)
err := b.DecodeMessage(msg)
m.Root = &Filtering_Operator{msg}
return true, err
case 2: // root.string_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StringCondition)
err := b.DecodeMessage(msg)
m.Root = &Filtering_StringCondition{msg}
return true, err
case 3: // root.number_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NumberCondition)
err := b.DecodeMessage(msg)
m.Root = &Filtering_NumberCondition{msg}
return true, err
case 4: // root.null_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NullCondition)
err := b.DecodeMessage(msg)
m.Root = &Filtering_NullCondition{msg}
return true, err
case 5: // root.string_array_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StringArrayCondition)
err := b.DecodeMessage(msg)
m.Root = &Filtering_StringArrayCondition{msg}
return true, err
case 6: // root.number_array_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NumberArrayCondition)
err := b.DecodeMessage(msg)
m.Root = &Filtering_NumberArrayCondition{msg}
return true, err
default:
return false, nil
}
}
func _Filtering_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Filtering)
// root
switch x := m.Root.(type) {
case *Filtering_Operator:
s := proto.Size(x.Operator)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Filtering_StringCondition:
s := proto.Size(x.StringCondition)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Filtering_NumberCondition:
s := proto.Size(x.NumberCondition)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Filtering_NullCondition:
s := proto.Size(x.NullCondition)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Filtering_StringArrayCondition:
s := proto.Size(x.StringArrayCondition)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Filtering_NumberArrayCondition:
s := proto.Size(x.NumberArrayCondition)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// LogicalOperator represents binary logical operator, either AND or OR depending on type.
// left and right are respectively left and right operands of the operator, could be
// either LogicalOperator or one of the supported conditions.
// is_negative is set to true if the operator is negated.
type LogicalOperator struct {
// Types that are valid to be assigned to Left:
// *LogicalOperator_LeftOperator
// *LogicalOperator_LeftStringCondition
// *LogicalOperator_LeftNumberCondition
// *LogicalOperator_LeftNullCondition
// *LogicalOperator_LeftStringArrayCondition
// *LogicalOperator_LeftNumberArrayCondition
Left isLogicalOperator_Left `protobuf_oneof:"left"`
// Types that are valid to be assigned to Right:
// *LogicalOperator_RightOperator
// *LogicalOperator_RightStringCondition
// *LogicalOperator_RightNumberCondition
// *LogicalOperator_RightNullCondition
// *LogicalOperator_RightStringArrayCondition
// *LogicalOperator_RightNumberArrayCondition
Right isLogicalOperator_Right `protobuf_oneof:"right"`
Type LogicalOperator_Type `protobuf:"varint,9,opt,name=type,enum=infoblox.api.LogicalOperator_Type" json:"type,omitempty"`
IsNegative bool `protobuf:"varint,10,opt,name=is_negative,json=isNegative" json:"is_negative,omitempty"`
}
func (m *LogicalOperator) Reset() { *m = LogicalOperator{} }
func (m *LogicalOperator) String() string { return proto.CompactTextString(m) }
func (*LogicalOperator) ProtoMessage() {}
func (*LogicalOperator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
type isLogicalOperator_Left interface {
isLogicalOperator_Left()
}
type isLogicalOperator_Right interface {
isLogicalOperator_Right()
}
type LogicalOperator_LeftOperator struct {
LeftOperator *LogicalOperator `protobuf:"bytes,1,opt,name=left_operator,json=leftOperator,oneof"`
}
type LogicalOperator_LeftStringCondition struct {
LeftStringCondition *StringCondition `protobuf:"bytes,2,opt,name=left_string_condition,json=leftStringCondition,oneof"`
}
type LogicalOperator_LeftNumberCondition struct {
LeftNumberCondition *NumberCondition `protobuf:"bytes,3,opt,name=left_number_condition,json=leftNumberCondition,oneof"`
}
type LogicalOperator_LeftNullCondition struct {
LeftNullCondition *NullCondition `protobuf:"bytes,4,opt,name=left_null_condition,json=leftNullCondition,oneof"`
}
type LogicalOperator_LeftStringArrayCondition struct {
LeftStringArrayCondition *StringArrayCondition `protobuf:"bytes,11,opt,name=left_string_array_condition,json=leftStringArrayCondition,oneof"`
}
type LogicalOperator_LeftNumberArrayCondition struct {
LeftNumberArrayCondition *NumberArrayCondition `protobuf:"bytes,12,opt,name=left_number_array_condition,json=leftNumberArrayCondition,oneof"`
}
type LogicalOperator_RightOperator struct {
RightOperator *LogicalOperator `protobuf:"bytes,5,opt,name=right_operator,json=rightOperator,oneof"`
}
type LogicalOperator_RightStringCondition struct {
RightStringCondition *StringCondition `protobuf:"bytes,6,opt,name=right_string_condition,json=rightStringCondition,oneof"`
}
type LogicalOperator_RightNumberCondition struct {
RightNumberCondition *NumberCondition `protobuf:"bytes,7,opt,name=right_number_condition,json=rightNumberCondition,oneof"`
}
type LogicalOperator_RightNullCondition struct {
RightNullCondition *NullCondition `protobuf:"bytes,8,opt,name=right_null_condition,json=rightNullCondition,oneof"`
}
type LogicalOperator_RightStringArrayCondition struct {
RightStringArrayCondition *StringArrayCondition `protobuf:"bytes,13,opt,name=right_string_array_condition,json=rightStringArrayCondition,oneof"`
}
type LogicalOperator_RightNumberArrayCondition struct {
RightNumberArrayCondition *NumberArrayCondition `protobuf:"bytes,14,opt,name=right_number_array_condition,json=rightNumberArrayCondition,oneof"`
}
func (*LogicalOperator_LeftOperator) isLogicalOperator_Left() {}
func (*LogicalOperator_LeftStringCondition) isLogicalOperator_Left() {}
func (*LogicalOperator_LeftNumberCondition) isLogicalOperator_Left() {}
func (*LogicalOperator_LeftNullCondition) isLogicalOperator_Left() {}
func (*LogicalOperator_LeftStringArrayCondition) isLogicalOperator_Left() {}
func (*LogicalOperator_LeftNumberArrayCondition) isLogicalOperator_Left() {}
func (*LogicalOperator_RightOperator) isLogicalOperator_Right() {}
func (*LogicalOperator_RightStringCondition) isLogicalOperator_Right() {}
func (*LogicalOperator_RightNumberCondition) isLogicalOperator_Right() {}
func (*LogicalOperator_RightNullCondition) isLogicalOperator_Right() {}
func (*LogicalOperator_RightStringArrayCondition) isLogicalOperator_Right() {}
func (*LogicalOperator_RightNumberArrayCondition) isLogicalOperator_Right() {}
func (m *LogicalOperator) GetLeft() isLogicalOperator_Left {
if m != nil {
return m.Left
}
return nil
}
func (m *LogicalOperator) GetRight() isLogicalOperator_Right {
if m != nil {
return m.Right
}
return nil
}
func (m *LogicalOperator) GetLeftOperator() *LogicalOperator {
if x, ok := m.GetLeft().(*LogicalOperator_LeftOperator); ok {
return x.LeftOperator
}
return nil
}
func (m *LogicalOperator) GetLeftStringCondition() *StringCondition {
if x, ok := m.GetLeft().(*LogicalOperator_LeftStringCondition); ok {
return x.LeftStringCondition
}
return nil
}
func (m *LogicalOperator) GetLeftNumberCondition() *NumberCondition {
if x, ok := m.GetLeft().(*LogicalOperator_LeftNumberCondition); ok {
return x.LeftNumberCondition
}
return nil
}
func (m *LogicalOperator) GetLeftNullCondition() *NullCondition {
if x, ok := m.GetLeft().(*LogicalOperator_LeftNullCondition); ok {
return x.LeftNullCondition
}
return nil
}
func (m *LogicalOperator) GetLeftStringArrayCondition() *StringArrayCondition {
if x, ok := m.GetLeft().(*LogicalOperator_LeftStringArrayCondition); ok {
return x.LeftStringArrayCondition
}
return nil
}
func (m *LogicalOperator) GetLeftNumberArrayCondition() *NumberArrayCondition {
if x, ok := m.GetLeft().(*LogicalOperator_LeftNumberArrayCondition); ok {
return x.LeftNumberArrayCondition
}
return nil
}
func (m *LogicalOperator) GetRightOperator() *LogicalOperator {
if x, ok := m.GetRight().(*LogicalOperator_RightOperator); ok {
return x.RightOperator
}
return nil
}
func (m *LogicalOperator) GetRightStringCondition() *StringCondition {
if x, ok := m.GetRight().(*LogicalOperator_RightStringCondition); ok {
return x.RightStringCondition
}
return nil
}
func (m *LogicalOperator) GetRightNumberCondition() *NumberCondition {
if x, ok := m.GetRight().(*LogicalOperator_RightNumberCondition); ok {
return x.RightNumberCondition
}
return nil
}
func (m *LogicalOperator) GetRightNullCondition() *NullCondition {
if x, ok := m.GetRight().(*LogicalOperator_RightNullCondition); ok {
return x.RightNullCondition
}
return nil
}
func (m *LogicalOperator) GetRightStringArrayCondition() *StringArrayCondition {
if x, ok := m.GetRight().(*LogicalOperator_RightStringArrayCondition); ok {
return x.RightStringArrayCondition
}
return nil
}
func (m *LogicalOperator) GetRightNumberArrayCondition() *NumberArrayCondition {
if x, ok := m.GetRight().(*LogicalOperator_RightNumberArrayCondition); ok {
return x.RightNumberArrayCondition
}
return nil
}
func (m *LogicalOperator) GetType() LogicalOperator_Type {
if m != nil {
return m.Type
}
return LogicalOperator_AND
}
func (m *LogicalOperator) GetIsNegative() bool {
if m != nil {
return m.IsNegative
}
return false
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*LogicalOperator) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _LogicalOperator_OneofMarshaler, _LogicalOperator_OneofUnmarshaler, _LogicalOperator_OneofSizer, []interface{}{
(*LogicalOperator_LeftOperator)(nil),
(*LogicalOperator_LeftStringCondition)(nil),
(*LogicalOperator_LeftNumberCondition)(nil),
(*LogicalOperator_LeftNullCondition)(nil),
(*LogicalOperator_LeftStringArrayCondition)(nil),
(*LogicalOperator_LeftNumberArrayCondition)(nil),
(*LogicalOperator_RightOperator)(nil),
(*LogicalOperator_RightStringCondition)(nil),
(*LogicalOperator_RightNumberCondition)(nil),
(*LogicalOperator_RightNullCondition)(nil),
(*LogicalOperator_RightStringArrayCondition)(nil),
(*LogicalOperator_RightNumberArrayCondition)(nil),
}
}
func _LogicalOperator_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*LogicalOperator)
// left
switch x := m.Left.(type) {
case *LogicalOperator_LeftOperator:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LeftOperator); err != nil {
return err
}
case *LogicalOperator_LeftStringCondition:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LeftStringCondition); err != nil {
return err
}
case *LogicalOperator_LeftNumberCondition:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LeftNumberCondition); err != nil {
return err
}
case *LogicalOperator_LeftNullCondition:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LeftNullCondition); err != nil {
return err
}
case *LogicalOperator_LeftStringArrayCondition:
b.EncodeVarint(11<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LeftStringArrayCondition); err != nil {
return err
}
case *LogicalOperator_LeftNumberArrayCondition:
b.EncodeVarint(12<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LeftNumberArrayCondition); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("LogicalOperator.Left has unexpected type %T", x)
}
// right
switch x := m.Right.(type) {
case *LogicalOperator_RightOperator:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RightOperator); err != nil {
return err
}
case *LogicalOperator_RightStringCondition:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RightStringCondition); err != nil {
return err
}
case *LogicalOperator_RightNumberCondition:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RightNumberCondition); err != nil {
return err
}
case *LogicalOperator_RightNullCondition:
b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RightNullCondition); err != nil {
return err
}
case *LogicalOperator_RightStringArrayCondition:
b.EncodeVarint(13<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RightStringArrayCondition); err != nil {
return err
}
case *LogicalOperator_RightNumberArrayCondition:
b.EncodeVarint(14<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RightNumberArrayCondition); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("LogicalOperator.Right has unexpected type %T", x)
}
return nil
}
func _LogicalOperator_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*LogicalOperator)
switch tag {
case 1: // left.left_operator
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(LogicalOperator)
err := b.DecodeMessage(msg)
m.Left = &LogicalOperator_LeftOperator{msg}
return true, err
case 2: // left.left_string_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StringCondition)
err := b.DecodeMessage(msg)
m.Left = &LogicalOperator_LeftStringCondition{msg}
return true, err
case 3: // left.left_number_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NumberCondition)
err := b.DecodeMessage(msg)
m.Left = &LogicalOperator_LeftNumberCondition{msg}
return true, err
case 4: // left.left_null_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NullCondition)
err := b.DecodeMessage(msg)
m.Left = &LogicalOperator_LeftNullCondition{msg}
return true, err
case 11: // left.left_string_array_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StringArrayCondition)
err := b.DecodeMessage(msg)
m.Left = &LogicalOperator_LeftStringArrayCondition{msg}
return true, err
case 12: // left.left_number_array_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NumberArrayCondition)
err := b.DecodeMessage(msg)
m.Left = &LogicalOperator_LeftNumberArrayCondition{msg}
return true, err
case 5: // right.right_operator
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(LogicalOperator)
err := b.DecodeMessage(msg)
m.Right = &LogicalOperator_RightOperator{msg}
return true, err
case 6: // right.right_string_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StringCondition)
err := b.DecodeMessage(msg)
m.Right = &LogicalOperator_RightStringCondition{msg}
return true, err
case 7: // right.right_number_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NumberCondition)
err := b.DecodeMessage(msg)
m.Right = &LogicalOperator_RightNumberCondition{msg}
return true, err
case 8: // right.right_null_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NullCondition)
err := b.DecodeMessage(msg)
m.Right = &LogicalOperator_RightNullCondition{msg}
return true, err
case 13: // right.right_string_array_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StringArrayCondition)
err := b.DecodeMessage(msg)
m.Right = &LogicalOperator_RightStringArrayCondition{msg}
return true, err
case 14: // right.right_number_array_condition
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NumberArrayCondition)
err := b.DecodeMessage(msg)
m.Right = &LogicalOperator_RightNumberArrayCondition{msg}
return true, err
default:
return false, nil
}
}
func _LogicalOperator_OneofSizer(msg proto.Message) (n int) {
m := msg.(*LogicalOperator)
// left
switch x := m.Left.(type) {
case *LogicalOperator_LeftOperator:
s := proto.Size(x.LeftOperator)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_LeftStringCondition:
s := proto.Size(x.LeftStringCondition)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_LeftNumberCondition:
s := proto.Size(x.LeftNumberCondition)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_LeftNullCondition:
s := proto.Size(x.LeftNullCondition)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_LeftStringArrayCondition:
s := proto.Size(x.LeftStringArrayCondition)
n += proto.SizeVarint(11<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_LeftNumberArrayCondition:
s := proto.Size(x.LeftNumberArrayCondition)
n += proto.SizeVarint(12<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// right
switch x := m.Right.(type) {
case *LogicalOperator_RightOperator:
s := proto.Size(x.RightOperator)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_RightStringCondition:
s := proto.Size(x.RightStringCondition)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_RightNumberCondition:
s := proto.Size(x.RightNumberCondition)
n += proto.SizeVarint(7<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_RightNullCondition:
s := proto.Size(x.RightNullCondition)
n += proto.SizeVarint(8<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_RightStringArrayCondition:
s := proto.Size(x.RightStringArrayCondition)
n += proto.SizeVarint(13<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *LogicalOperator_RightNumberArrayCondition:
s := proto.Size(x.RightNumberArrayCondition)
n += proto.SizeVarint(14<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}