-
Notifications
You must be signed in to change notification settings - Fork 301
/
user.pb.go
3672 lines (3285 loc) · 149 KB
/
user.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.1
// source: ttn/lorawan/v3/user.proto
package ttnpb
import (
_ "github.com/TheThingsIndustries/protoc-gen-go-flags/annotations"
_ "github.com/TheThingsIndustries/protoc-gen-go-json/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// ConsoleTheme is the theme of the Console.
type ConsoleTheme int32
const (
// The user prefers the system mode.
ConsoleTheme_CONSOLE_THEME_SYSTEM ConsoleTheme = 0
// The user prefers the light mode.
ConsoleTheme_CONSOLE_THEME_LIGHT ConsoleTheme = 1
// The user prefers the dark mode.
ConsoleTheme_CONSOLE_THEME_DARK ConsoleTheme = 2
)
// Enum value maps for ConsoleTheme.
var (
ConsoleTheme_name = map[int32]string{
0: "CONSOLE_THEME_SYSTEM",
1: "CONSOLE_THEME_LIGHT",
2: "CONSOLE_THEME_DARK",
}
ConsoleTheme_value = map[string]int32{
"CONSOLE_THEME_SYSTEM": 0,
"CONSOLE_THEME_LIGHT": 1,
"CONSOLE_THEME_DARK": 2,
}
)
func (x ConsoleTheme) Enum() *ConsoleTheme {
p := new(ConsoleTheme)
*p = x
return p
}
func (x ConsoleTheme) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConsoleTheme) Descriptor() protoreflect.EnumDescriptor {
return file_ttn_lorawan_v3_user_proto_enumTypes[0].Descriptor()
}
func (ConsoleTheme) Type() protoreflect.EnumType {
return &file_ttn_lorawan_v3_user_proto_enumTypes[0]
}
func (x ConsoleTheme) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConsoleTheme.Descriptor instead.
func (ConsoleTheme) EnumDescriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{0}
}
// DashboardLayout is a set of possible layout values to be used in the Console.
type DashboardLayout int32
const (
DashboardLayout_DASHBOARD_LAYOUT_TABLE DashboardLayout = 0
DashboardLayout_DASHBOARD_LAYOUT_LIST DashboardLayout = 1
DashboardLayout_DASHBOARD_LAYOUT_GRID DashboardLayout = 2
)
// Enum value maps for DashboardLayout.
var (
DashboardLayout_name = map[int32]string{
0: "DASHBOARD_LAYOUT_TABLE",
1: "DASHBOARD_LAYOUT_LIST",
2: "DASHBOARD_LAYOUT_GRID",
}
DashboardLayout_value = map[string]int32{
"DASHBOARD_LAYOUT_TABLE": 0,
"DASHBOARD_LAYOUT_LIST": 1,
"DASHBOARD_LAYOUT_GRID": 2,
}
)
func (x DashboardLayout) Enum() *DashboardLayout {
p := new(DashboardLayout)
*p = x
return p
}
func (x DashboardLayout) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DashboardLayout) Descriptor() protoreflect.EnumDescriptor {
return file_ttn_lorawan_v3_user_proto_enumTypes[1].Descriptor()
}
func (DashboardLayout) Type() protoreflect.EnumType {
return &file_ttn_lorawan_v3_user_proto_enumTypes[1]
}
func (x DashboardLayout) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DashboardLayout.Descriptor instead.
func (DashboardLayout) EnumDescriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{1}
}
// UserConsolePreferences is the message that defines the user preferences for the Console.
type UserConsolePreferences struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ConsoleTheme ConsoleTheme `protobuf:"varint,1,opt,name=console_theme,json=consoleTheme,proto3,enum=ttn.lorawan.v3.ConsoleTheme" json:"console_theme,omitempty"`
DashboardLayouts *UserConsolePreferences_DashboardLayouts `protobuf:"bytes,2,opt,name=dashboard_layouts,json=dashboardLayouts,proto3" json:"dashboard_layouts,omitempty"`
SortBy *UserConsolePreferences_SortBy `protobuf:"bytes,3,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"`
}
func (x *UserConsolePreferences) Reset() {
*x = UserConsolePreferences{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserConsolePreferences) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserConsolePreferences) ProtoMessage() {}
func (x *UserConsolePreferences) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserConsolePreferences.ProtoReflect.Descriptor instead.
func (*UserConsolePreferences) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{0}
}
func (x *UserConsolePreferences) GetConsoleTheme() ConsoleTheme {
if x != nil {
return x.ConsoleTheme
}
return ConsoleTheme_CONSOLE_THEME_SYSTEM
}
func (x *UserConsolePreferences) GetDashboardLayouts() *UserConsolePreferences_DashboardLayouts {
if x != nil {
return x.DashboardLayouts
}
return nil
}
func (x *UserConsolePreferences) GetSortBy() *UserConsolePreferences_SortBy {
if x != nil {
return x.SortBy
}
return nil
}
// User is the message that defines a user on the network.
type User struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The identifiers of the user. These are public and can be seen by any authenticated user in the network.
Ids *UserIdentifiers `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,omitempty"`
// When the user was created. This information is public and can be seen by any authenticated user in the network.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// When the user was last updated. This information is public and can be seen by any authenticated user in the network.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// When the user was deleted. This information is public and can be seen by any authenticated user in the network.
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
// The name of the user. This information is public and can be seen by any authenticated user in the network.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// A description for the user. This information is public and can be seen by any authenticated user in the network.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Key-value attributes for this users. Typically used for storing integration-specific data.
Attributes map[string]string `protobuf:"bytes,6,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Contact information for this user. Typically used to indicate who to contact with security/billing questions about the user.
// This field is deprecated.
//
// Deprecated: Marked as deprecated in ttn/lorawan/v3/user.proto.
ContactInfo []*ContactInfo `protobuf:"bytes,7,rep,name=contact_info,json=contactInfo,proto3" json:"contact_info,omitempty"`
// Primary email address that can be used for logging in.
// This address is not public, use contact_info for that.
PrimaryEmailAddress string `protobuf:"bytes,8,opt,name=primary_email_address,json=primaryEmailAddress,proto3" json:"primary_email_address,omitempty"`
// When the primary email address was validated. Note that email address validation is not required on all networks.
PrimaryEmailAddressValidatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=primary_email_address_validated_at,json=primaryEmailAddressValidatedAt,proto3" json:"primary_email_address_validated_at,omitempty"`
// The password field is only considered when creating a user.
// It is not returned on API calls, and can not be updated by updating the User.
// See the UpdatePassword method of the UserRegistry service for more information.
Password string `protobuf:"bytes,10,opt,name=password,proto3" json:"password,omitempty"`
PasswordUpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=password_updated_at,json=passwordUpdatedAt,proto3" json:"password_updated_at,omitempty"`
RequirePasswordUpdate bool `protobuf:"varint,12,opt,name=require_password_update,json=requirePasswordUpdate,proto3" json:"require_password_update,omitempty"`
// The reviewing state of the user.
// This information is public and can be seen by any authenticated user in the network.
// This field can only be modified by admins.
State State `protobuf:"varint,13,opt,name=state,proto3,enum=ttn.lorawan.v3.State" json:"state,omitempty"`
// A description for the state field.
// This field can only be modified by admins, and should typically only be updated
// when also updating `state`.
StateDescription string `protobuf:"bytes,20,opt,name=state_description,json=stateDescription,proto3" json:"state_description,omitempty"`
// This user is an admin.
// This information is public and can be seen by any authenticated user in the network.
// This field can only be modified by other admins.
Admin bool `protobuf:"varint,14,opt,name=admin,proto3" json:"admin,omitempty"`
// The temporary password can only be used to update a user's password; never returned on API calls.
// It is not returned on API calls, and can not be updated by updating the User.
// See the CreateTemporaryPassword method of the UserRegistry service for more information.
TemporaryPassword string `protobuf:"bytes,15,opt,name=temporary_password,json=temporaryPassword,proto3" json:"temporary_password,omitempty"`
TemporaryPasswordCreatedAt *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=temporary_password_created_at,json=temporaryPasswordCreatedAt,proto3" json:"temporary_password_created_at,omitempty"`
TemporaryPasswordExpiresAt *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=temporary_password_expires_at,json=temporaryPasswordExpiresAt,proto3" json:"temporary_password_expires_at,omitempty"`
// A profile picture for the user.
// This information is public and can be seen by any authenticated user in the network.
ProfilePicture *Picture `protobuf:"bytes,18,opt,name=profile_picture,json=profilePicture,proto3" json:"profile_picture,omitempty"`
// Console preferences contains the user's preferences regarding the behavior of the Console.
ConsolePreferences *UserConsolePreferences `protobuf:"bytes,25,opt,name=console_preferences,json=consolePreferences,proto3" json:"console_preferences,omitempty"`
}
func (x *User) Reset() {
*x = User{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *User) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*User) ProtoMessage() {}
func (x *User) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use User.ProtoReflect.Descriptor instead.
func (*User) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{1}
}
func (x *User) GetIds() *UserIdentifiers {
if x != nil {
return x.Ids
}
return nil
}
func (x *User) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *User) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *User) GetDeletedAt() *timestamppb.Timestamp {
if x != nil {
return x.DeletedAt
}
return nil
}
func (x *User) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *User) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *User) GetAttributes() map[string]string {
if x != nil {
return x.Attributes
}
return nil
}
// Deprecated: Marked as deprecated in ttn/lorawan/v3/user.proto.
func (x *User) GetContactInfo() []*ContactInfo {
if x != nil {
return x.ContactInfo
}
return nil
}
func (x *User) GetPrimaryEmailAddress() string {
if x != nil {
return x.PrimaryEmailAddress
}
return ""
}
func (x *User) GetPrimaryEmailAddressValidatedAt() *timestamppb.Timestamp {
if x != nil {
return x.PrimaryEmailAddressValidatedAt
}
return nil
}
func (x *User) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *User) GetPasswordUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.PasswordUpdatedAt
}
return nil
}
func (x *User) GetRequirePasswordUpdate() bool {
if x != nil {
return x.RequirePasswordUpdate
}
return false
}
func (x *User) GetState() State {
if x != nil {
return x.State
}
return State_STATE_REQUESTED
}
func (x *User) GetStateDescription() string {
if x != nil {
return x.StateDescription
}
return ""
}
func (x *User) GetAdmin() bool {
if x != nil {
return x.Admin
}
return false
}
func (x *User) GetTemporaryPassword() string {
if x != nil {
return x.TemporaryPassword
}
return ""
}
func (x *User) GetTemporaryPasswordCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.TemporaryPasswordCreatedAt
}
return nil
}
func (x *User) GetTemporaryPasswordExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.TemporaryPasswordExpiresAt
}
return nil
}
func (x *User) GetProfilePicture() *Picture {
if x != nil {
return x.ProfilePicture
}
return nil
}
func (x *User) GetConsolePreferences() *UserConsolePreferences {
if x != nil {
return x.ConsolePreferences
}
return nil
}
type Users struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
}
func (x *Users) Reset() {
*x = Users{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Users) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Users) ProtoMessage() {}
func (x *Users) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Users.ProtoReflect.Descriptor instead.
func (*Users) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{2}
}
func (x *Users) GetUsers() []*User {
if x != nil {
return x.Users
}
return nil
}
type GetUserRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
// The names of the user fields that should be returned.
FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
}
func (x *GetUserRequest) Reset() {
*x = GetUserRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserRequest) ProtoMessage() {}
func (x *GetUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{3}
}
func (x *GetUserRequest) GetUserIds() *UserIdentifiers {
if x != nil {
return x.UserIds
}
return nil
}
func (x *GetUserRequest) GetFieldMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.FieldMask
}
return nil
}
type ListUsersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The names of the user fields that should be returned.
FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,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,2,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
// Only return recently deleted users.
Deleted bool `protobuf:"varint,5,opt,name=deleted,proto3" json:"deleted,omitempty"`
}
func (x *ListUsersRequest) Reset() {
*x = ListUsersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListUsersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListUsersRequest) ProtoMessage() {}
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{4}
}
func (x *ListUsersRequest) GetFieldMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.FieldMask
}
return nil
}
func (x *ListUsersRequest) GetOrder() string {
if x != nil {
return x.Order
}
return ""
}
func (x *ListUsersRequest) GetLimit() uint32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *ListUsersRequest) GetPage() uint32 {
if x != nil {
return x.Page
}
return 0
}
func (x *ListUsersRequest) GetDeleted() bool {
if x != nil {
return x.Deleted
}
return false
}
type CreateUserRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// The invitation token that was sent to the user (some networks require an invitation in order to register new users).
InvitationToken string `protobuf:"bytes,2,opt,name=invitation_token,json=invitationToken,proto3" json:"invitation_token,omitempty"`
}
func (x *CreateUserRequest) Reset() {
*x = CreateUserRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserRequest) ProtoMessage() {}
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{5}
}
func (x *CreateUserRequest) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
func (x *CreateUserRequest) GetInvitationToken() string {
if x != nil {
return x.InvitationToken
}
return ""
}
type UpdateUserRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// The names of the user fields that should be updated.
FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
}
func (x *UpdateUserRequest) Reset() {
*x = UpdateUserRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateUserRequest) ProtoMessage() {}
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateUserRequest) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
func (x *UpdateUserRequest) GetFieldMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.FieldMask
}
return nil
}
type CreateTemporaryPasswordRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
}
func (x *CreateTemporaryPasswordRequest) Reset() {
*x = CreateTemporaryPasswordRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateTemporaryPasswordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateTemporaryPasswordRequest) ProtoMessage() {}
func (x *CreateTemporaryPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateTemporaryPasswordRequest.ProtoReflect.Descriptor instead.
func (*CreateTemporaryPasswordRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{7}
}
func (x *CreateTemporaryPasswordRequest) GetUserIds() *UserIdentifiers {
if x != nil {
return x.UserIds
}
return nil
}
type UpdateUserPasswordRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
Old string `protobuf:"bytes,3,opt,name=old,proto3" json:"old,omitempty"`
// Revoke active sessions and access tokens of user if true. To be used if credentials are suspected to be compromised.
RevokeAllAccess bool `protobuf:"varint,4,opt,name=revoke_all_access,json=revokeAllAccess,proto3" json:"revoke_all_access,omitempty"`
}
func (x *UpdateUserPasswordRequest) Reset() {
*x = UpdateUserPasswordRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateUserPasswordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateUserPasswordRequest) ProtoMessage() {}
func (x *UpdateUserPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateUserPasswordRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateUserPasswordRequest) GetUserIds() *UserIdentifiers {
if x != nil {
return x.UserIds
}
return nil
}
func (x *UpdateUserPasswordRequest) GetNew() string {
if x != nil {
return x.New
}
return ""
}
func (x *UpdateUserPasswordRequest) GetOld() string {
if x != nil {
return x.Old
}
return ""
}
func (x *UpdateUserPasswordRequest) GetRevokeAllAccess() bool {
if x != nil {
return x.RevokeAllAccess
}
return false
}
type ListUserAPIKeysRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
// Order the results by this field path.
// Default ordering is by ID. Prepend with a minus (-) to reverse the order.
Order string `protobuf:"bytes,4,opt,name=order,proto3" json:"order,omitempty"`
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
}
func (x *ListUserAPIKeysRequest) Reset() {
*x = ListUserAPIKeysRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListUserAPIKeysRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListUserAPIKeysRequest) ProtoMessage() {}
func (x *ListUserAPIKeysRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListUserAPIKeysRequest.ProtoReflect.Descriptor instead.
func (*ListUserAPIKeysRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{9}
}
func (x *ListUserAPIKeysRequest) GetUserIds() *UserIdentifiers {
if x != nil {
return x.UserIds
}
return nil
}
func (x *ListUserAPIKeysRequest) GetOrder() string {
if x != nil {
return x.Order
}
return ""
}
func (x *ListUserAPIKeysRequest) GetLimit() uint32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *ListUserAPIKeysRequest) GetPage() uint32 {
if x != nil {
return x.Page
}
return 0
}
type GetUserAPIKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
// Unique public identifier for the API key.
KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
}
func (x *GetUserAPIKeyRequest) Reset() {
*x = GetUserAPIKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetUserAPIKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserAPIKeyRequest) ProtoMessage() {}
func (x *GetUserAPIKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_ttn_lorawan_v3_user_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetUserAPIKeyRequest.ProtoReflect.Descriptor instead.
func (*GetUserAPIKeyRequest) Descriptor() ([]byte, []int) {
return file_ttn_lorawan_v3_user_proto_rawDescGZIP(), []int{10}
}
func (x *GetUserAPIKeyRequest) GetUserIds() *UserIdentifiers {
if x != nil {
return x.UserIds
}
return nil
}
func (x *GetUserAPIKeyRequest) GetKeyId() string {
if x != nil {
return x.KeyId
}
return ""
}
type CreateUserAPIKeyRequest struct {