-
Notifications
You must be signed in to change notification settings - Fork 302
/
search_services.pb.go
1473 lines (1332 loc) · 62.4 KB
/
search_services.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-gogo. DO NOT EDIT.
// source: lorawan-stack/api/search_services.proto
package ttnpb
import (
context "context"
fmt "fmt"
_ "github.com/TheThingsIndustries/protoc-gen-go-flags/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
golang_proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// This message is used for finding applications in the EntityRegistrySearch service.
type SearchApplicationsRequest struct {
// Find applications where the ID, name or description contains this substring.
Query string `protobuf:"bytes,11,opt,name=query,proto3" json:"query,omitempty"`
// Find applications where the ID contains this substring.
IdContains string `protobuf:"bytes,1,opt,name=id_contains,json=idContains,proto3" json:"id_contains,omitempty"`
// Find applications where the name contains this substring.
NameContains string `protobuf:"bytes,2,opt,name=name_contains,json=nameContains,proto3" json:"name_contains,omitempty"`
// Find applications where the description contains this substring.
DescriptionContains string `protobuf:"bytes,3,opt,name=description_contains,json=descriptionContains,proto3" json:"description_contains,omitempty"`
// Find applications where the given attributes contain these substrings.
AttributesContain map[string]string `protobuf:"bytes,4,rep,name=attributes_contain,json=attributesContain,proto3" json:"attributes_contain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
FieldMask *types.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Order the results by this field path (must be present in the field mask).
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,9,opt,name=page,proto3" json:"page,omitempty"`
// Only return recently deleted applications.
Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchApplicationsRequest) Reset() { *m = SearchApplicationsRequest{} }
func (m *SearchApplicationsRequest) String() string { return proto.CompactTextString(m) }
func (*SearchApplicationsRequest) ProtoMessage() {}
func (*SearchApplicationsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{0}
}
func (m *SearchApplicationsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchApplicationsRequest.Unmarshal(m, b)
}
func (m *SearchApplicationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchApplicationsRequest.Marshal(b, m, deterministic)
}
func (m *SearchApplicationsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchApplicationsRequest.Merge(m, src)
}
func (m *SearchApplicationsRequest) XXX_Size() int {
return xxx_messageInfo_SearchApplicationsRequest.Size(m)
}
func (m *SearchApplicationsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchApplicationsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchApplicationsRequest proto.InternalMessageInfo
func (m *SearchApplicationsRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func (m *SearchApplicationsRequest) GetIdContains() string {
if m != nil {
return m.IdContains
}
return ""
}
func (m *SearchApplicationsRequest) GetNameContains() string {
if m != nil {
return m.NameContains
}
return ""
}
func (m *SearchApplicationsRequest) GetDescriptionContains() string {
if m != nil {
return m.DescriptionContains
}
return ""
}
func (m *SearchApplicationsRequest) GetAttributesContain() map[string]string {
if m != nil {
return m.AttributesContain
}
return nil
}
func (m *SearchApplicationsRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *SearchApplicationsRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *SearchApplicationsRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *SearchApplicationsRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func (m *SearchApplicationsRequest) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
// This message is used for finding OAuth clients in the EntityRegistrySearch service.
type SearchClientsRequest struct {
// Find OAuth clients where the ID, name or description contains this substring.
Query string `protobuf:"bytes,11,opt,name=query,proto3" json:"query,omitempty"`
// Find OAuth clients where the ID contains this substring.
IdContains string `protobuf:"bytes,1,opt,name=id_contains,json=idContains,proto3" json:"id_contains,omitempty"`
// Find OAuth clients where the name contains this substring.
NameContains string `protobuf:"bytes,2,opt,name=name_contains,json=nameContains,proto3" json:"name_contains,omitempty"`
// Find OAuth clients where the description contains this substring.
DescriptionContains string `protobuf:"bytes,3,opt,name=description_contains,json=descriptionContains,proto3" json:"description_contains,omitempty"`
// Find OAuth clients where the given attributes contain these substrings.
AttributesContain map[string]string `protobuf:"bytes,4,rep,name=attributes_contain,json=attributesContain,proto3" json:"attributes_contain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Find OAuth clients where the state is any of these states.
State []State `protobuf:"varint,5,rep,packed,name=state,proto3,enum=ttn.lorawan.v3.State" json:"state,omitempty"`
FieldMask *types.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Order the results by this field path (must be present in the field mask).
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,9,opt,name=page,proto3" json:"page,omitempty"`
// Only return recently deleted OAuth clients.
Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchClientsRequest) Reset() { *m = SearchClientsRequest{} }
func (m *SearchClientsRequest) String() string { return proto.CompactTextString(m) }
func (*SearchClientsRequest) ProtoMessage() {}
func (*SearchClientsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{1}
}
func (m *SearchClientsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchClientsRequest.Unmarshal(m, b)
}
func (m *SearchClientsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchClientsRequest.Marshal(b, m, deterministic)
}
func (m *SearchClientsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchClientsRequest.Merge(m, src)
}
func (m *SearchClientsRequest) XXX_Size() int {
return xxx_messageInfo_SearchClientsRequest.Size(m)
}
func (m *SearchClientsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchClientsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchClientsRequest proto.InternalMessageInfo
func (m *SearchClientsRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func (m *SearchClientsRequest) GetIdContains() string {
if m != nil {
return m.IdContains
}
return ""
}
func (m *SearchClientsRequest) GetNameContains() string {
if m != nil {
return m.NameContains
}
return ""
}
func (m *SearchClientsRequest) GetDescriptionContains() string {
if m != nil {
return m.DescriptionContains
}
return ""
}
func (m *SearchClientsRequest) GetAttributesContain() map[string]string {
if m != nil {
return m.AttributesContain
}
return nil
}
func (m *SearchClientsRequest) GetState() []State {
if m != nil {
return m.State
}
return nil
}
func (m *SearchClientsRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *SearchClientsRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *SearchClientsRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *SearchClientsRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func (m *SearchClientsRequest) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
// This message is used for finding gateways in the EntityRegistrySearch service.
type SearchGatewaysRequest struct {
// Find gateways where the ID, name, description or EUI contains this substring.
Query string `protobuf:"bytes,11,opt,name=query,proto3" json:"query,omitempty"`
// Find gateways where the ID contains this substring.
IdContains string `protobuf:"bytes,1,opt,name=id_contains,json=idContains,proto3" json:"id_contains,omitempty"`
// Find gateways where the name contains this substring.
NameContains string `protobuf:"bytes,2,opt,name=name_contains,json=nameContains,proto3" json:"name_contains,omitempty"`
// Find gateways where the description contains this substring.
DescriptionContains string `protobuf:"bytes,3,opt,name=description_contains,json=descriptionContains,proto3" json:"description_contains,omitempty"`
// Find gateways where the given attributes contain these substrings.
AttributesContain map[string]string `protobuf:"bytes,4,rep,name=attributes_contain,json=attributesContain,proto3" json:"attributes_contain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Find gateways where the (hexadecimal) EUI contains this substring.
EuiContains string `protobuf:"bytes,5,opt,name=eui_contains,json=euiContains,proto3" json:"eui_contains,omitempty"`
FieldMask *types.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Order the results by this field path (must be present in the field mask).
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,9,opt,name=page,proto3" json:"page,omitempty"`
// Only return recently deleted gateways.
Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchGatewaysRequest) Reset() { *m = SearchGatewaysRequest{} }
func (m *SearchGatewaysRequest) String() string { return proto.CompactTextString(m) }
func (*SearchGatewaysRequest) ProtoMessage() {}
func (*SearchGatewaysRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{2}
}
func (m *SearchGatewaysRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchGatewaysRequest.Unmarshal(m, b)
}
func (m *SearchGatewaysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchGatewaysRequest.Marshal(b, m, deterministic)
}
func (m *SearchGatewaysRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchGatewaysRequest.Merge(m, src)
}
func (m *SearchGatewaysRequest) XXX_Size() int {
return xxx_messageInfo_SearchGatewaysRequest.Size(m)
}
func (m *SearchGatewaysRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchGatewaysRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchGatewaysRequest proto.InternalMessageInfo
func (m *SearchGatewaysRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func (m *SearchGatewaysRequest) GetIdContains() string {
if m != nil {
return m.IdContains
}
return ""
}
func (m *SearchGatewaysRequest) GetNameContains() string {
if m != nil {
return m.NameContains
}
return ""
}
func (m *SearchGatewaysRequest) GetDescriptionContains() string {
if m != nil {
return m.DescriptionContains
}
return ""
}
func (m *SearchGatewaysRequest) GetAttributesContain() map[string]string {
if m != nil {
return m.AttributesContain
}
return nil
}
func (m *SearchGatewaysRequest) GetEuiContains() string {
if m != nil {
return m.EuiContains
}
return ""
}
func (m *SearchGatewaysRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *SearchGatewaysRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *SearchGatewaysRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *SearchGatewaysRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func (m *SearchGatewaysRequest) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
// This message is used for finding organizations in the EntityRegistrySearch service.
type SearchOrganizationsRequest struct {
// Find organizations where the ID, name or description contains this substring.
Query string `protobuf:"bytes,11,opt,name=query,proto3" json:"query,omitempty"`
// Find organizations where the ID contains this substring.
IdContains string `protobuf:"bytes,1,opt,name=id_contains,json=idContains,proto3" json:"id_contains,omitempty"`
// Find organizations where the name contains this substring.
NameContains string `protobuf:"bytes,2,opt,name=name_contains,json=nameContains,proto3" json:"name_contains,omitempty"`
// Find organizations where the description contains this substring.
DescriptionContains string `protobuf:"bytes,3,opt,name=description_contains,json=descriptionContains,proto3" json:"description_contains,omitempty"`
// Find organizations where the given attributes contain these substrings.
AttributesContain map[string]string `protobuf:"bytes,4,rep,name=attributes_contain,json=attributesContain,proto3" json:"attributes_contain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
FieldMask *types.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Order the results by this field path (must be present in the field mask).
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,9,opt,name=page,proto3" json:"page,omitempty"`
// Only return recently deleted organizations.
Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchOrganizationsRequest) Reset() { *m = SearchOrganizationsRequest{} }
func (m *SearchOrganizationsRequest) String() string { return proto.CompactTextString(m) }
func (*SearchOrganizationsRequest) ProtoMessage() {}
func (*SearchOrganizationsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{3}
}
func (m *SearchOrganizationsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchOrganizationsRequest.Unmarshal(m, b)
}
func (m *SearchOrganizationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchOrganizationsRequest.Marshal(b, m, deterministic)
}
func (m *SearchOrganizationsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchOrganizationsRequest.Merge(m, src)
}
func (m *SearchOrganizationsRequest) XXX_Size() int {
return xxx_messageInfo_SearchOrganizationsRequest.Size(m)
}
func (m *SearchOrganizationsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchOrganizationsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchOrganizationsRequest proto.InternalMessageInfo
func (m *SearchOrganizationsRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func (m *SearchOrganizationsRequest) GetIdContains() string {
if m != nil {
return m.IdContains
}
return ""
}
func (m *SearchOrganizationsRequest) GetNameContains() string {
if m != nil {
return m.NameContains
}
return ""
}
func (m *SearchOrganizationsRequest) GetDescriptionContains() string {
if m != nil {
return m.DescriptionContains
}
return ""
}
func (m *SearchOrganizationsRequest) GetAttributesContain() map[string]string {
if m != nil {
return m.AttributesContain
}
return nil
}
func (m *SearchOrganizationsRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *SearchOrganizationsRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *SearchOrganizationsRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *SearchOrganizationsRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func (m *SearchOrganizationsRequest) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
// This message is used for finding users in the EntityRegistrySearch service.
type SearchUsersRequest struct {
// Find users where the ID, name or description contains this substring.
Query string `protobuf:"bytes,11,opt,name=query,proto3" json:"query,omitempty"`
// Find users where the ID contains this substring.
IdContains string `protobuf:"bytes,1,opt,name=id_contains,json=idContains,proto3" json:"id_contains,omitempty"`
// Find users where the name contains this substring.
NameContains string `protobuf:"bytes,2,opt,name=name_contains,json=nameContains,proto3" json:"name_contains,omitempty"`
// Find users where the description contains this substring.
DescriptionContains string `protobuf:"bytes,3,opt,name=description_contains,json=descriptionContains,proto3" json:"description_contains,omitempty"`
// Find users where the given attributes contain these substrings.
AttributesContain map[string]string `protobuf:"bytes,4,rep,name=attributes_contain,json=attributesContain,proto3" json:"attributes_contain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Find users where the state is any of these states.
State []State `protobuf:"varint,5,rep,packed,name=state,proto3,enum=ttn.lorawan.v3.State" json:"state,omitempty"`
FieldMask *types.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Order the results by this field path (must be present in the field mask).
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,9,opt,name=page,proto3" json:"page,omitempty"`
// Only return recently deleted users.
Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchUsersRequest) Reset() { *m = SearchUsersRequest{} }
func (m *SearchUsersRequest) String() string { return proto.CompactTextString(m) }
func (*SearchUsersRequest) ProtoMessage() {}
func (*SearchUsersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{4}
}
func (m *SearchUsersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchUsersRequest.Unmarshal(m, b)
}
func (m *SearchUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchUsersRequest.Marshal(b, m, deterministic)
}
func (m *SearchUsersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchUsersRequest.Merge(m, src)
}
func (m *SearchUsersRequest) XXX_Size() int {
return xxx_messageInfo_SearchUsersRequest.Size(m)
}
func (m *SearchUsersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchUsersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchUsersRequest proto.InternalMessageInfo
func (m *SearchUsersRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func (m *SearchUsersRequest) GetIdContains() string {
if m != nil {
return m.IdContains
}
return ""
}
func (m *SearchUsersRequest) GetNameContains() string {
if m != nil {
return m.NameContains
}
return ""
}
func (m *SearchUsersRequest) GetDescriptionContains() string {
if m != nil {
return m.DescriptionContains
}
return ""
}
func (m *SearchUsersRequest) GetAttributesContain() map[string]string {
if m != nil {
return m.AttributesContain
}
return nil
}
func (m *SearchUsersRequest) GetState() []State {
if m != nil {
return m.State
}
return nil
}
func (m *SearchUsersRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *SearchUsersRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *SearchUsersRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *SearchUsersRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func (m *SearchUsersRequest) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
type SearchAccountsRequest struct {
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
OnlyUsers bool `protobuf:"varint,2,opt,name=only_users,json=onlyUsers,proto3" json:"only_users,omitempty"`
// Types that are valid to be assigned to CollaboratorOf:
// *SearchAccountsRequest_ApplicationIds
// *SearchAccountsRequest_ClientIds
// *SearchAccountsRequest_GatewayIds
// *SearchAccountsRequest_OrganizationIds
CollaboratorOf isSearchAccountsRequest_CollaboratorOf `protobuf_oneof:"collaborator_of"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchAccountsRequest) Reset() { *m = SearchAccountsRequest{} }
func (m *SearchAccountsRequest) String() string { return proto.CompactTextString(m) }
func (*SearchAccountsRequest) ProtoMessage() {}
func (*SearchAccountsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{5}
}
func (m *SearchAccountsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchAccountsRequest.Unmarshal(m, b)
}
func (m *SearchAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchAccountsRequest.Marshal(b, m, deterministic)
}
func (m *SearchAccountsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchAccountsRequest.Merge(m, src)
}
func (m *SearchAccountsRequest) XXX_Size() int {
return xxx_messageInfo_SearchAccountsRequest.Size(m)
}
func (m *SearchAccountsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchAccountsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchAccountsRequest proto.InternalMessageInfo
type isSearchAccountsRequest_CollaboratorOf interface {
isSearchAccountsRequest_CollaboratorOf()
}
type SearchAccountsRequest_ApplicationIds struct {
ApplicationIds *ApplicationIdentifiers `protobuf:"bytes,3,opt,name=application_ids,json=applicationIds,proto3,oneof" json:"application_ids,omitempty"`
}
type SearchAccountsRequest_ClientIds struct {
ClientIds *ClientIdentifiers `protobuf:"bytes,4,opt,name=client_ids,json=clientIds,proto3,oneof" json:"client_ids,omitempty"`
}
type SearchAccountsRequest_GatewayIds struct {
GatewayIds *GatewayIdentifiers `protobuf:"bytes,5,opt,name=gateway_ids,json=gatewayIds,proto3,oneof" json:"gateway_ids,omitempty"`
}
type SearchAccountsRequest_OrganizationIds struct {
OrganizationIds *OrganizationIdentifiers `protobuf:"bytes,6,opt,name=organization_ids,json=organizationIds,proto3,oneof" json:"organization_ids,omitempty"`
}
func (*SearchAccountsRequest_ApplicationIds) isSearchAccountsRequest_CollaboratorOf() {}
func (*SearchAccountsRequest_ClientIds) isSearchAccountsRequest_CollaboratorOf() {}
func (*SearchAccountsRequest_GatewayIds) isSearchAccountsRequest_CollaboratorOf() {}
func (*SearchAccountsRequest_OrganizationIds) isSearchAccountsRequest_CollaboratorOf() {}
func (m *SearchAccountsRequest) GetCollaboratorOf() isSearchAccountsRequest_CollaboratorOf {
if m != nil {
return m.CollaboratorOf
}
return nil
}
func (m *SearchAccountsRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func (m *SearchAccountsRequest) GetOnlyUsers() bool {
if m != nil {
return m.OnlyUsers
}
return false
}
func (m *SearchAccountsRequest) GetApplicationIds() *ApplicationIdentifiers {
if x, ok := m.GetCollaboratorOf().(*SearchAccountsRequest_ApplicationIds); ok {
return x.ApplicationIds
}
return nil
}
func (m *SearchAccountsRequest) GetClientIds() *ClientIdentifiers {
if x, ok := m.GetCollaboratorOf().(*SearchAccountsRequest_ClientIds); ok {
return x.ClientIds
}
return nil
}
func (m *SearchAccountsRequest) GetGatewayIds() *GatewayIdentifiers {
if x, ok := m.GetCollaboratorOf().(*SearchAccountsRequest_GatewayIds); ok {
return x.GatewayIds
}
return nil
}
func (m *SearchAccountsRequest) GetOrganizationIds() *OrganizationIdentifiers {
if x, ok := m.GetCollaboratorOf().(*SearchAccountsRequest_OrganizationIds); ok {
return x.OrganizationIds
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*SearchAccountsRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*SearchAccountsRequest_ApplicationIds)(nil),
(*SearchAccountsRequest_ClientIds)(nil),
(*SearchAccountsRequest_GatewayIds)(nil),
(*SearchAccountsRequest_OrganizationIds)(nil),
}
}
type SearchAccountsResponse struct {
AccountIds []*OrganizationOrUserIdentifiers `protobuf:"bytes,1,rep,name=account_ids,json=accountIds,proto3" json:"account_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchAccountsResponse) Reset() { *m = SearchAccountsResponse{} }
func (m *SearchAccountsResponse) String() string { return proto.CompactTextString(m) }
func (*SearchAccountsResponse) ProtoMessage() {}
func (*SearchAccountsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{6}
}
func (m *SearchAccountsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchAccountsResponse.Unmarshal(m, b)
}
func (m *SearchAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchAccountsResponse.Marshal(b, m, deterministic)
}
func (m *SearchAccountsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchAccountsResponse.Merge(m, src)
}
func (m *SearchAccountsResponse) XXX_Size() int {
return xxx_messageInfo_SearchAccountsResponse.Size(m)
}
func (m *SearchAccountsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SearchAccountsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SearchAccountsResponse proto.InternalMessageInfo
func (m *SearchAccountsResponse) GetAccountIds() []*OrganizationOrUserIdentifiers {
if m != nil {
return m.AccountIds
}
return nil
}
type SearchEndDevicesRequest struct {
ApplicationIds *ApplicationIdentifiers `protobuf:"bytes,1,opt,name=application_ids,json=applicationIds,proto3" json:"application_ids,omitempty"`
// Find end devices where the ID, name, description or EUI contains this substring.
Query string `protobuf:"bytes,13,opt,name=query,proto3" json:"query,omitempty"`
// Find end devices where the ID contains this substring.
IdContains string `protobuf:"bytes,2,opt,name=id_contains,json=idContains,proto3" json:"id_contains,omitempty"`
// Find end devices where the name contains this substring.
NameContains string `protobuf:"bytes,3,opt,name=name_contains,json=nameContains,proto3" json:"name_contains,omitempty"`
// Find end devices where the description contains this substring.
DescriptionContains string `protobuf:"bytes,4,opt,name=description_contains,json=descriptionContains,proto3" json:"description_contains,omitempty"`
// Find end devices where the given attributes contain these substrings.
AttributesContain map[string]string `protobuf:"bytes,5,rep,name=attributes_contain,json=attributesContain,proto3" json:"attributes_contain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Find end devices where the (hexadecimal) DevEUI contains this substring.
DevEuiContains string `protobuf:"bytes,6,opt,name=dev_eui_contains,json=devEuiContains,proto3" json:"dev_eui_contains,omitempty"`
// Find end devices where the (hexadecimal) JoinEUI contains this substring.
JoinEuiContains string `protobuf:"bytes,7,opt,name=join_eui_contains,json=joinEuiContains,proto3" json:"join_eui_contains,omitempty"`
// Find end devices where the (hexadecimal) DevAddr contains this substring.
DevAddrContains string `protobuf:"bytes,8,opt,name=dev_addr_contains,json=devAddrContains,proto3" json:"dev_addr_contains,omitempty"`
FieldMask *types.FieldMask `protobuf:"bytes,9,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// Order the results by this field path (must be present in the field mask).
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,10,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,11,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,12,opt,name=page,proto3" json:"page,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SearchEndDevicesRequest) Reset() { *m = SearchEndDevicesRequest{} }
func (m *SearchEndDevicesRequest) String() string { return proto.CompactTextString(m) }
func (*SearchEndDevicesRequest) ProtoMessage() {}
func (*SearchEndDevicesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_584ecc2845ae2dc1, []int{7}
}
func (m *SearchEndDevicesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SearchEndDevicesRequest.Unmarshal(m, b)
}
func (m *SearchEndDevicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SearchEndDevicesRequest.Marshal(b, m, deterministic)
}
func (m *SearchEndDevicesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SearchEndDevicesRequest.Merge(m, src)
}
func (m *SearchEndDevicesRequest) XXX_Size() int {
return xxx_messageInfo_SearchEndDevicesRequest.Size(m)
}
func (m *SearchEndDevicesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SearchEndDevicesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SearchEndDevicesRequest proto.InternalMessageInfo
func (m *SearchEndDevicesRequest) GetApplicationIds() *ApplicationIdentifiers {
if m != nil {
return m.ApplicationIds
}
return nil
}
func (m *SearchEndDevicesRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func (m *SearchEndDevicesRequest) GetIdContains() string {
if m != nil {
return m.IdContains
}
return ""
}
func (m *SearchEndDevicesRequest) GetNameContains() string {
if m != nil {
return m.NameContains
}
return ""
}
func (m *SearchEndDevicesRequest) GetDescriptionContains() string {
if m != nil {
return m.DescriptionContains
}
return ""
}
func (m *SearchEndDevicesRequest) GetAttributesContain() map[string]string {
if m != nil {
return m.AttributesContain
}
return nil
}
func (m *SearchEndDevicesRequest) GetDevEuiContains() string {
if m != nil {
return m.DevEuiContains
}
return ""
}
func (m *SearchEndDevicesRequest) GetJoinEuiContains() string {
if m != nil {
return m.JoinEuiContains
}
return ""
}
func (m *SearchEndDevicesRequest) GetDevAddrContains() string {
if m != nil {
return m.DevAddrContains
}
return ""
}
func (m *SearchEndDevicesRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *SearchEndDevicesRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *SearchEndDevicesRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *SearchEndDevicesRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func init() {
proto.RegisterType((*SearchApplicationsRequest)(nil), "ttn.lorawan.v3.SearchApplicationsRequest")
golang_proto.RegisterType((*SearchApplicationsRequest)(nil), "ttn.lorawan.v3.SearchApplicationsRequest")
proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchApplicationsRequest.AttributesContainEntry")
golang_proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchApplicationsRequest.AttributesContainEntry")
proto.RegisterType((*SearchClientsRequest)(nil), "ttn.lorawan.v3.SearchClientsRequest")
golang_proto.RegisterType((*SearchClientsRequest)(nil), "ttn.lorawan.v3.SearchClientsRequest")
proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchClientsRequest.AttributesContainEntry")
golang_proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchClientsRequest.AttributesContainEntry")
proto.RegisterType((*SearchGatewaysRequest)(nil), "ttn.lorawan.v3.SearchGatewaysRequest")
golang_proto.RegisterType((*SearchGatewaysRequest)(nil), "ttn.lorawan.v3.SearchGatewaysRequest")
proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchGatewaysRequest.AttributesContainEntry")
golang_proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchGatewaysRequest.AttributesContainEntry")
proto.RegisterType((*SearchOrganizationsRequest)(nil), "ttn.lorawan.v3.SearchOrganizationsRequest")
golang_proto.RegisterType((*SearchOrganizationsRequest)(nil), "ttn.lorawan.v3.SearchOrganizationsRequest")
proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchOrganizationsRequest.AttributesContainEntry")
golang_proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchOrganizationsRequest.AttributesContainEntry")
proto.RegisterType((*SearchUsersRequest)(nil), "ttn.lorawan.v3.SearchUsersRequest")
golang_proto.RegisterType((*SearchUsersRequest)(nil), "ttn.lorawan.v3.SearchUsersRequest")
proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchUsersRequest.AttributesContainEntry")
golang_proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchUsersRequest.AttributesContainEntry")
proto.RegisterType((*SearchAccountsRequest)(nil), "ttn.lorawan.v3.SearchAccountsRequest")
golang_proto.RegisterType((*SearchAccountsRequest)(nil), "ttn.lorawan.v3.SearchAccountsRequest")
proto.RegisterType((*SearchAccountsResponse)(nil), "ttn.lorawan.v3.SearchAccountsResponse")
golang_proto.RegisterType((*SearchAccountsResponse)(nil), "ttn.lorawan.v3.SearchAccountsResponse")
proto.RegisterType((*SearchEndDevicesRequest)(nil), "ttn.lorawan.v3.SearchEndDevicesRequest")
golang_proto.RegisterType((*SearchEndDevicesRequest)(nil), "ttn.lorawan.v3.SearchEndDevicesRequest")
proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchEndDevicesRequest.AttributesContainEntry")
golang_proto.RegisterMapType((map[string]string)(nil), "ttn.lorawan.v3.SearchEndDevicesRequest.AttributesContainEntry")
}
func init() {