-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathquery.pb.go
More file actions
1277 lines (1091 loc) · 36.9 KB
/
query.pb.go
File metadata and controls
1277 lines (1091 loc) · 36.9 KB
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.36.11
// protoc v5.29.3
// source: loop/chain-common/query.proto
package chaincommonpb
import (
codec "github.com/smartcontractkit/chainlink-common/pkg/internal/codec"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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)
)
type ComparisonOperator int32
const (
ComparisonOperator_Eq ComparisonOperator = 0
ComparisonOperator_Neq ComparisonOperator = 1
ComparisonOperator_Gt ComparisonOperator = 2
ComparisonOperator_Lt ComparisonOperator = 3
ComparisonOperator_Gte ComparisonOperator = 4
ComparisonOperator_Lte ComparisonOperator = 5
)
// Enum value maps for ComparisonOperator.
var (
ComparisonOperator_name = map[int32]string{
0: "Eq",
1: "Neq",
2: "Gt",
3: "Lt",
4: "Gte",
5: "Lte",
}
ComparisonOperator_value = map[string]int32{
"Eq": 0,
"Neq": 1,
"Gt": 2,
"Lt": 3,
"Gte": 4,
"Lte": 5,
}
)
func (x ComparisonOperator) Enum() *ComparisonOperator {
p := new(ComparisonOperator)
*p = x
return p
}
func (x ComparisonOperator) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ComparisonOperator) Descriptor() protoreflect.EnumDescriptor {
return file_loop_chain_common_query_proto_enumTypes[0].Descriptor()
}
func (ComparisonOperator) Type() protoreflect.EnumType {
return &file_loop_chain_common_query_proto_enumTypes[0]
}
func (x ComparisonOperator) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ComparisonOperator.Descriptor instead.
func (ComparisonOperator) EnumDescriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{0}
}
type BooleanOperator int32
const (
BooleanOperator_AND BooleanOperator = 0
BooleanOperator_OR BooleanOperator = 1
)
// Enum value maps for BooleanOperator.
var (
BooleanOperator_name = map[int32]string{
0: "AND",
1: "OR",
}
BooleanOperator_value = map[string]int32{
"AND": 0,
"OR": 1,
}
)
func (x BooleanOperator) Enum() *BooleanOperator {
p := new(BooleanOperator)
*p = x
return p
}
func (x BooleanOperator) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BooleanOperator) Descriptor() protoreflect.EnumDescriptor {
return file_loop_chain_common_query_proto_enumTypes[1].Descriptor()
}
func (BooleanOperator) Type() protoreflect.EnumType {
return &file_loop_chain_common_query_proto_enumTypes[1]
}
func (x BooleanOperator) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BooleanOperator.Descriptor instead.
func (BooleanOperator) EnumDescriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{1}
}
type Confidence int32
const (
Confidence_Unconfirmed Confidence = 0
Confidence_Finalized Confidence = 1
Confidence_Safe Confidence = 2
)
// Enum value maps for Confidence.
var (
Confidence_name = map[int32]string{
0: "Unconfirmed",
1: "Finalized",
2: "Safe",
}
Confidence_value = map[string]int32{
"Unconfirmed": 0,
"Finalized": 1,
"Safe": 2,
}
)
func (x Confidence) Enum() *Confidence {
p := new(Confidence)
*p = x
return p
}
func (x Confidence) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Confidence) Descriptor() protoreflect.EnumDescriptor {
return file_loop_chain_common_query_proto_enumTypes[2].Descriptor()
}
func (Confidence) Type() protoreflect.EnumType {
return &file_loop_chain_common_query_proto_enumTypes[2]
}
func (x Confidence) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Confidence.Descriptor instead.
func (Confidence) EnumDescriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{2}
}
// CursorDirection defines the direction for cursor-based data fetching.
type CursorDirection int32
const (
CursorDirection_Preceding CursorDirection = 0
CursorDirection_Following CursorDirection = 1
)
// Enum value maps for CursorDirection.
var (
CursorDirection_name = map[int32]string{
0: "Preceding",
1: "Following",
}
CursorDirection_value = map[string]int32{
"Preceding": 0,
"Following": 1,
}
)
func (x CursorDirection) Enum() *CursorDirection {
p := new(CursorDirection)
*p = x
return p
}
func (x CursorDirection) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CursorDirection) Descriptor() protoreflect.EnumDescriptor {
return file_loop_chain_common_query_proto_enumTypes[3].Descriptor()
}
func (CursorDirection) Type() protoreflect.EnumType {
return &file_loop_chain_common_query_proto_enumTypes[3]
}
func (x CursorDirection) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CursorDirection.Descriptor instead.
func (CursorDirection) EnumDescriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{3}
}
type SortDirection int32
const (
SortDirection_Asc SortDirection = 0
SortDirection_Desc SortDirection = 1
)
// Enum value maps for SortDirection.
var (
SortDirection_name = map[int32]string{
0: "Asc",
1: "Desc",
}
SortDirection_value = map[string]int32{
"Asc": 0,
"Desc": 1,
}
)
func (x SortDirection) Enum() *SortDirection {
p := new(SortDirection)
*p = x
return p
}
func (x SortDirection) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SortDirection) Descriptor() protoreflect.EnumDescriptor {
return file_loop_chain_common_query_proto_enumTypes[4].Descriptor()
}
func (SortDirection) Type() protoreflect.EnumType {
return &file_loop_chain_common_query_proto_enumTypes[4]
}
func (x SortDirection) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SortDirection.Descriptor instead.
func (SortDirection) EnumDescriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{4}
}
type SortType int32
const (
SortType_SortTimestamp SortType = 0
SortType_SortBlock SortType = 1
SortType_SortSequence SortType = 2
)
// Enum value maps for SortType.
var (
SortType_name = map[int32]string{
0: "SortTimestamp",
1: "SortBlock",
2: "SortSequence",
}
SortType_value = map[string]int32{
"SortTimestamp": 0,
"SortBlock": 1,
"SortSequence": 2,
}
)
func (x SortType) Enum() *SortType {
p := new(SortType)
*p = x
return p
}
func (x SortType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SortType) Descriptor() protoreflect.EnumDescriptor {
return file_loop_chain_common_query_proto_enumTypes[5].Descriptor()
}
func (SortType) Type() protoreflect.EnumType {
return &file_loop_chain_common_query_proto_enumTypes[5]
}
func (x SortType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SortType.Descriptor instead.
func (SortType) EnumDescriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{5}
}
// Expression encapsulates a single unit of filtering logic, which can be a common blockchain primitive or a composite of boolean expressions.
// This allows for both simple and more complex nested expressions.
type Expression struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Evaluator:
//
// *Expression_Primitive
// *Expression_BooleanExpression
Evaluator isExpression_Evaluator `protobuf_oneof:"evaluator"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Expression) Reset() {
*x = Expression{}
mi := &file_loop_chain_common_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Expression) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Expression) ProtoMessage() {}
func (x *Expression) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Expression.ProtoReflect.Descriptor instead.
func (*Expression) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{0}
}
func (x *Expression) GetEvaluator() isExpression_Evaluator {
if x != nil {
return x.Evaluator
}
return nil
}
func (x *Expression) GetPrimitive() *Primitive {
if x != nil {
if x, ok := x.Evaluator.(*Expression_Primitive); ok {
return x.Primitive
}
}
return nil
}
func (x *Expression) GetBooleanExpression() *BooleanExpression {
if x != nil {
if x, ok := x.Evaluator.(*Expression_BooleanExpression); ok {
return x.BooleanExpression
}
}
return nil
}
type isExpression_Evaluator interface {
isExpression_Evaluator()
}
type Expression_Primitive struct {
Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"`
}
type Expression_BooleanExpression struct {
BooleanExpression *BooleanExpression `protobuf:"bytes,2,opt,name=boolean_expression,json=booleanExpression,proto3,oneof"`
}
func (*Expression_Primitive) isExpression_Evaluator() {}
func (*Expression_BooleanExpression) isExpression_Evaluator() {}
type BooleanExpression struct {
state protoimpl.MessageState `protogen:"open.v1"`
BooleanOperator BooleanOperator `protobuf:"varint,1,opt,name=boolean_operator,json=booleanOperator,proto3,enum=loop.chain.common.BooleanOperator" json:"boolean_operator,omitempty"`
Expression []*Expression `protobuf:"bytes,2,rep,name=expression,proto3" json:"expression,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BooleanExpression) Reset() {
*x = BooleanExpression{}
mi := &file_loop_chain_common_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BooleanExpression) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BooleanExpression) ProtoMessage() {}
func (x *BooleanExpression) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BooleanExpression.ProtoReflect.Descriptor instead.
func (*BooleanExpression) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{1}
}
func (x *BooleanExpression) GetBooleanOperator() BooleanOperator {
if x != nil {
return x.BooleanOperator
}
return BooleanOperator_AND
}
func (x *BooleanExpression) GetExpression() []*Expression {
if x != nil {
return x.Expression
}
return nil
}
type And struct {
state protoimpl.MessageState `protogen:"open.v1"`
Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *And) Reset() {
*x = And{}
mi := &file_loop_chain_common_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *And) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*And) ProtoMessage() {}
func (x *And) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use And.ProtoReflect.Descriptor instead.
func (*And) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{2}
}
func (x *And) GetExpr() []*Expression {
if x != nil {
return x.Expr
}
return nil
}
type Or struct {
state protoimpl.MessageState `protogen:"open.v1"`
Expr []*Expression `protobuf:"bytes,1,rep,name=expr,proto3" json:"expr,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Or) Reset() {
*x = Or{}
mi := &file_loop_chain_common_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Or) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Or) ProtoMessage() {}
func (x *Or) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Or.ProtoReflect.Descriptor instead.
func (*Or) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{3}
}
func (x *Or) GetExpr() []*Expression {
if x != nil {
return x.Expr
}
return nil
}
type ValueComparator struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value *codec.VersionedBytes `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.chain.common.ComparisonOperator" json:"operator,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ValueComparator) Reset() {
*x = ValueComparator{}
mi := &file_loop_chain_common_query_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ValueComparator) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ValueComparator) ProtoMessage() {}
func (x *ValueComparator) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ValueComparator.ProtoReflect.Descriptor instead.
func (*ValueComparator) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{4}
}
func (x *ValueComparator) GetValue() *codec.VersionedBytes {
if x != nil {
return x.Value
}
return nil
}
func (x *ValueComparator) GetOperator() ComparisonOperator {
if x != nil {
return x.Operator
}
return ComparisonOperator_Eq
}
type Comparator struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ValueComparators []*ValueComparator `protobuf:"bytes,2,rep,name=value_comparators,json=valueComparators,proto3" json:"value_comparators,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Comparator) Reset() {
*x = Comparator{}
mi := &file_loop_chain_common_query_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Comparator) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Comparator) ProtoMessage() {}
func (x *Comparator) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Comparator.ProtoReflect.Descriptor instead.
func (*Comparator) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{5}
}
func (x *Comparator) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Comparator) GetValueComparators() []*ValueComparator {
if x != nil {
return x.ValueComparators
}
return nil
}
type Block struct {
state protoimpl.MessageState `protogen:"open.v1"`
BlockNumber string `protobuf:"bytes,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.chain.common.ComparisonOperator" json:"operator,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Block) Reset() {
*x = Block{}
mi := &file_loop_chain_common_query_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Block) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Block) ProtoMessage() {}
func (x *Block) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Block.ProtoReflect.Descriptor instead.
func (*Block) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{6}
}
func (x *Block) GetBlockNumber() string {
if x != nil {
return x.BlockNumber
}
return ""
}
func (x *Block) GetOperator() ComparisonOperator {
if x != nil {
return x.Operator
}
return ComparisonOperator_Eq
}
type Timestamp struct {
state protoimpl.MessageState `protogen:"open.v1"`
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Operator ComparisonOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=loop.chain.common.ComparisonOperator" json:"operator,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Timestamp) Reset() {
*x = Timestamp{}
mi := &file_loop_chain_common_query_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Timestamp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Timestamp) ProtoMessage() {}
func (x *Timestamp) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.
func (*Timestamp) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{7}
}
func (x *Timestamp) GetTimestamp() uint64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *Timestamp) GetOperator() ComparisonOperator {
if x != nil {
return x.Operator
}
return ComparisonOperator_Eq
}
type TxHash struct {
state protoimpl.MessageState `protogen:"open.v1"`
TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TxHash) Reset() {
*x = TxHash{}
mi := &file_loop_chain_common_query_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TxHash) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TxHash) ProtoMessage() {}
func (x *TxHash) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TxHash.ProtoReflect.Descriptor instead.
func (*TxHash) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{8}
}
func (x *TxHash) GetTxHash() string {
if x != nil {
return x.TxHash
}
return ""
}
// Primitive defines the basic building blocks for filter conditions based around fundamental blockchain concepts.
type Primitive struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Primitive:
//
// *Primitive_Comparator
// *Primitive_Block
// *Primitive_Confidence
// *Primitive_Timestamp
// *Primitive_TxHash
Primitive isPrimitive_Primitive `protobuf_oneof:"primitive"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Primitive) Reset() {
*x = Primitive{}
mi := &file_loop_chain_common_query_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Primitive) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Primitive) ProtoMessage() {}
func (x *Primitive) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Primitive.ProtoReflect.Descriptor instead.
func (*Primitive) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{9}
}
func (x *Primitive) GetPrimitive() isPrimitive_Primitive {
if x != nil {
return x.Primitive
}
return nil
}
func (x *Primitive) GetComparator() *Comparator {
if x != nil {
if x, ok := x.Primitive.(*Primitive_Comparator); ok {
return x.Comparator
}
}
return nil
}
func (x *Primitive) GetBlock() *Block {
if x != nil {
if x, ok := x.Primitive.(*Primitive_Block); ok {
return x.Block
}
}
return nil
}
func (x *Primitive) GetConfidence() Confidence {
if x != nil {
if x, ok := x.Primitive.(*Primitive_Confidence); ok {
return x.Confidence
}
}
return Confidence_Unconfirmed
}
func (x *Primitive) GetTimestamp() *Timestamp {
if x != nil {
if x, ok := x.Primitive.(*Primitive_Timestamp); ok {
return x.Timestamp
}
}
return nil
}
func (x *Primitive) GetTxHash() *TxHash {
if x != nil {
if x, ok := x.Primitive.(*Primitive_TxHash); ok {
return x.TxHash
}
}
return nil
}
type isPrimitive_Primitive interface {
isPrimitive_Primitive()
}
type Primitive_Comparator struct {
Comparator *Comparator `protobuf:"bytes,1,opt,name=comparator,proto3,oneof"`
}
type Primitive_Block struct {
Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}
type Primitive_Confidence struct {
Confidence Confidence `protobuf:"varint,3,opt,name=confidence,proto3,enum=loop.chain.common.Confidence,oneof"`
}
type Primitive_Timestamp struct {
Timestamp *Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3,oneof"`
}
type Primitive_TxHash struct {
TxHash *TxHash `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3,oneof"`
}
func (*Primitive_Comparator) isPrimitive_Primitive() {}
func (*Primitive_Block) isPrimitive_Primitive() {}
func (*Primitive_Confidence) isPrimitive_Primitive() {}
func (*Primitive_Timestamp) isPrimitive_Primitive() {}
func (*Primitive_TxHash) isPrimitive_Primitive() {}
// Limit defines a structure for limiting the results of a query, including optional cursor-based pagination.
type Limit struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cursor *string `protobuf:"bytes,1,opt,name=cursor,proto3,oneof" json:"cursor,omitempty"`
Direction *CursorDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.chain.common.CursorDirection,oneof" json:"direction,omitempty"`
Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Limit) Reset() {
*x = Limit{}
mi := &file_loop_chain_common_query_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Limit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Limit) ProtoMessage() {}
func (x *Limit) ProtoReflect() protoreflect.Message {
mi := &file_loop_chain_common_query_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Limit.ProtoReflect.Descriptor instead.
func (*Limit) Descriptor() ([]byte, []int) {
return file_loop_chain_common_query_proto_rawDescGZIP(), []int{10}
}
func (x *Limit) GetCursor() string {
if x != nil && x.Cursor != nil {
return *x.Cursor
}
return ""
}
func (x *Limit) GetDirection() CursorDirection {
if x != nil && x.Direction != nil {
return *x.Direction
}
return CursorDirection_Preceding
}
func (x *Limit) GetCount() uint64 {
if x != nil {
return x.Count
}
return 0
}
type SortBy struct {
state protoimpl.MessageState `protogen:"open.v1"`
SortType SortType `protobuf:"varint,1,opt,name=sort_type,json=sortType,proto3,enum=loop.chain.common.SortType" json:"sort_type,omitempty"`
Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=loop.chain.common.SortDirection" json:"direction,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SortBy) Reset() {
*x = SortBy{}
mi := &file_loop_chain_common_query_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)