-
Notifications
You must be signed in to change notification settings - Fork 302
/
user.pb.go
1632 lines (1470 loc) · 64.5 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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: lorawan-stack/api/user.proto
package ttnpb
import (
fmt "fmt"
_ "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"
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
// User is the message that defines a user on the network.
type User struct {
// 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 *types.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 *types.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 *types.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.
ContactInfo []*ContactInfo `protobuf:"bytes,7,rep,name=contact_info,json=contactInfo,proto3" json:"contact_info,omitempty"` // Deprecated: Do not use.
// 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 *types.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 *types.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 *types.Timestamp `protobuf:"bytes,16,opt,name=temporary_password_created_at,json=temporaryPasswordCreatedAt,proto3" json:"temporary_password_created_at,omitempty"`
TemporaryPasswordExpiresAt *types.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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (*User) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{0}
}
func (m *User) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_User.Unmarshal(m, b)
}
func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_User.Marshal(b, m, deterministic)
}
func (m *User) XXX_Merge(src proto.Message) {
xxx_messageInfo_User.Merge(m, src)
}
func (m *User) XXX_Size() int {
return xxx_messageInfo_User.Size(m)
}
func (m *User) XXX_DiscardUnknown() {
xxx_messageInfo_User.DiscardUnknown(m)
}
var xxx_messageInfo_User proto.InternalMessageInfo
func (m *User) GetIds() *UserIdentifiers {
if m != nil {
return m.Ids
}
return nil
}
func (m *User) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *User) GetUpdatedAt() *types.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
func (m *User) GetDeletedAt() *types.Timestamp {
if m != nil {
return m.DeletedAt
}
return nil
}
func (m *User) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *User) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *User) GetAttributes() map[string]string {
if m != nil {
return m.Attributes
}
return nil
}
// Deprecated: Do not use.
func (m *User) GetContactInfo() []*ContactInfo {
if m != nil {
return m.ContactInfo
}
return nil
}
func (m *User) GetPrimaryEmailAddress() string {
if m != nil {
return m.PrimaryEmailAddress
}
return ""
}
func (m *User) GetPrimaryEmailAddressValidatedAt() *types.Timestamp {
if m != nil {
return m.PrimaryEmailAddressValidatedAt
}
return nil
}
func (m *User) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *User) GetPasswordUpdatedAt() *types.Timestamp {
if m != nil {
return m.PasswordUpdatedAt
}
return nil
}
func (m *User) GetRequirePasswordUpdate() bool {
if m != nil {
return m.RequirePasswordUpdate
}
return false
}
func (m *User) GetState() State {
if m != nil {
return m.State
}
return State_STATE_REQUESTED
}
func (m *User) GetStateDescription() string {
if m != nil {
return m.StateDescription
}
return ""
}
func (m *User) GetAdmin() bool {
if m != nil {
return m.Admin
}
return false
}
func (m *User) GetTemporaryPassword() string {
if m != nil {
return m.TemporaryPassword
}
return ""
}
func (m *User) GetTemporaryPasswordCreatedAt() *types.Timestamp {
if m != nil {
return m.TemporaryPasswordCreatedAt
}
return nil
}
func (m *User) GetTemporaryPasswordExpiresAt() *types.Timestamp {
if m != nil {
return m.TemporaryPasswordExpiresAt
}
return nil
}
func (m *User) GetProfilePicture() *Picture {
if m != nil {
return m.ProfilePicture
}
return nil
}
type Users struct {
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Users) Reset() { *m = Users{} }
func (m *Users) String() string { return proto.CompactTextString(m) }
func (*Users) ProtoMessage() {}
func (*Users) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{1}
}
func (m *Users) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Users.Unmarshal(m, b)
}
func (m *Users) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Users.Marshal(b, m, deterministic)
}
func (m *Users) XXX_Merge(src proto.Message) {
xxx_messageInfo_Users.Merge(m, src)
}
func (m *Users) XXX_Size() int {
return xxx_messageInfo_Users.Size(m)
}
func (m *Users) XXX_DiscardUnknown() {
xxx_messageInfo_Users.DiscardUnknown(m)
}
var xxx_messageInfo_Users proto.InternalMessageInfo
func (m *Users) GetUsers() []*User {
if m != nil {
return m.Users
}
return nil
}
type GetUserRequest struct {
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 *types.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetUserRequest) Reset() { *m = GetUserRequest{} }
func (m *GetUserRequest) String() string { return proto.CompactTextString(m) }
func (*GetUserRequest) ProtoMessage() {}
func (*GetUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{2}
}
func (m *GetUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetUserRequest.Unmarshal(m, b)
}
func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetUserRequest.Marshal(b, m, deterministic)
}
func (m *GetUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetUserRequest.Merge(m, src)
}
func (m *GetUserRequest) XXX_Size() int {
return xxx_messageInfo_GetUserRequest.Size(m)
}
func (m *GetUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetUserRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetUserRequest proto.InternalMessageInfo
func (m *GetUserRequest) GetUserIds() *UserIdentifiers {
if m != nil {
return m.UserIds
}
return nil
}
func (m *GetUserRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
type ListUsersRequest struct {
// The names of the user fields that should be returned.
FieldMask *types.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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListUsersRequest) Reset() { *m = ListUsersRequest{} }
func (m *ListUsersRequest) String() string { return proto.CompactTextString(m) }
func (*ListUsersRequest) ProtoMessage() {}
func (*ListUsersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{3}
}
func (m *ListUsersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListUsersRequest.Unmarshal(m, b)
}
func (m *ListUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListUsersRequest.Marshal(b, m, deterministic)
}
func (m *ListUsersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListUsersRequest.Merge(m, src)
}
func (m *ListUsersRequest) XXX_Size() int {
return xxx_messageInfo_ListUsersRequest.Size(m)
}
func (m *ListUsersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListUsersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListUsersRequest proto.InternalMessageInfo
func (m *ListUsersRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *ListUsersRequest) GetOrder() string {
if m != nil {
return m.Order
}
return ""
}
func (m *ListUsersRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListUsersRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
func (m *ListUsersRequest) GetDeleted() bool {
if m != nil {
return m.Deleted
}
return false
}
type CreateUserRequest struct {
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} }
func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) }
func (*CreateUserRequest) ProtoMessage() {}
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{4}
}
func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateUserRequest.Unmarshal(m, b)
}
func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateUserRequest.Marshal(b, m, deterministic)
}
func (m *CreateUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateUserRequest.Merge(m, src)
}
func (m *CreateUserRequest) XXX_Size() int {
return xxx_messageInfo_CreateUserRequest.Size(m)
}
func (m *CreateUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateUserRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateUserRequest proto.InternalMessageInfo
func (m *CreateUserRequest) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
func (m *CreateUserRequest) GetInvitationToken() string {
if m != nil {
return m.InvitationToken
}
return ""
}
type UpdateUserRequest struct {
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// The names of the user fields that should be updated.
FieldMask *types.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateUserRequest) Reset() { *m = UpdateUserRequest{} }
func (m *UpdateUserRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateUserRequest) ProtoMessage() {}
func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{5}
}
func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateUserRequest.Unmarshal(m, b)
}
func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateUserRequest.Marshal(b, m, deterministic)
}
func (m *UpdateUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateUserRequest.Merge(m, src)
}
func (m *UpdateUserRequest) XXX_Size() int {
return xxx_messageInfo_UpdateUserRequest.Size(m)
}
func (m *UpdateUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateUserRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateUserRequest proto.InternalMessageInfo
func (m *UpdateUserRequest) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
func (m *UpdateUserRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
type CreateTemporaryPasswordRequest struct {
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateTemporaryPasswordRequest) Reset() { *m = CreateTemporaryPasswordRequest{} }
func (m *CreateTemporaryPasswordRequest) String() string { return proto.CompactTextString(m) }
func (*CreateTemporaryPasswordRequest) ProtoMessage() {}
func (*CreateTemporaryPasswordRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{6}
}
func (m *CreateTemporaryPasswordRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateTemporaryPasswordRequest.Unmarshal(m, b)
}
func (m *CreateTemporaryPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateTemporaryPasswordRequest.Marshal(b, m, deterministic)
}
func (m *CreateTemporaryPasswordRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateTemporaryPasswordRequest.Merge(m, src)
}
func (m *CreateTemporaryPasswordRequest) XXX_Size() int {
return xxx_messageInfo_CreateTemporaryPasswordRequest.Size(m)
}
func (m *CreateTemporaryPasswordRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateTemporaryPasswordRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateTemporaryPasswordRequest proto.InternalMessageInfo
func (m *CreateTemporaryPasswordRequest) GetUserIds() *UserIdentifiers {
if m != nil {
return m.UserIds
}
return nil
}
type UpdateUserPasswordRequest struct {
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateUserPasswordRequest) Reset() { *m = UpdateUserPasswordRequest{} }
func (m *UpdateUserPasswordRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateUserPasswordRequest) ProtoMessage() {}
func (*UpdateUserPasswordRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{7}
}
func (m *UpdateUserPasswordRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateUserPasswordRequest.Unmarshal(m, b)
}
func (m *UpdateUserPasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateUserPasswordRequest.Marshal(b, m, deterministic)
}
func (m *UpdateUserPasswordRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateUserPasswordRequest.Merge(m, src)
}
func (m *UpdateUserPasswordRequest) XXX_Size() int {
return xxx_messageInfo_UpdateUserPasswordRequest.Size(m)
}
func (m *UpdateUserPasswordRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateUserPasswordRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateUserPasswordRequest proto.InternalMessageInfo
func (m *UpdateUserPasswordRequest) GetUserIds() *UserIdentifiers {
if m != nil {
return m.UserIds
}
return nil
}
func (m *UpdateUserPasswordRequest) GetNew() string {
if m != nil {
return m.New
}
return ""
}
func (m *UpdateUserPasswordRequest) GetOld() string {
if m != nil {
return m.Old
}
return ""
}
func (m *UpdateUserPasswordRequest) GetRevokeAllAccess() bool {
if m != nil {
return m.RevokeAllAccess
}
return false
}
type ListUserAPIKeysRequest struct {
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListUserAPIKeysRequest) Reset() { *m = ListUserAPIKeysRequest{} }
func (m *ListUserAPIKeysRequest) String() string { return proto.CompactTextString(m) }
func (*ListUserAPIKeysRequest) ProtoMessage() {}
func (*ListUserAPIKeysRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{8}
}
func (m *ListUserAPIKeysRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListUserAPIKeysRequest.Unmarshal(m, b)
}
func (m *ListUserAPIKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListUserAPIKeysRequest.Marshal(b, m, deterministic)
}
func (m *ListUserAPIKeysRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListUserAPIKeysRequest.Merge(m, src)
}
func (m *ListUserAPIKeysRequest) XXX_Size() int {
return xxx_messageInfo_ListUserAPIKeysRequest.Size(m)
}
func (m *ListUserAPIKeysRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListUserAPIKeysRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListUserAPIKeysRequest proto.InternalMessageInfo
func (m *ListUserAPIKeysRequest) GetUserIds() *UserIdentifiers {
if m != nil {
return m.UserIds
}
return nil
}
func (m *ListUserAPIKeysRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListUserAPIKeysRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
type GetUserAPIKeyRequest struct {
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetUserAPIKeyRequest) Reset() { *m = GetUserAPIKeyRequest{} }
func (m *GetUserAPIKeyRequest) String() string { return proto.CompactTextString(m) }
func (*GetUserAPIKeyRequest) ProtoMessage() {}
func (*GetUserAPIKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{9}
}
func (m *GetUserAPIKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetUserAPIKeyRequest.Unmarshal(m, b)
}
func (m *GetUserAPIKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetUserAPIKeyRequest.Marshal(b, m, deterministic)
}
func (m *GetUserAPIKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetUserAPIKeyRequest.Merge(m, src)
}
func (m *GetUserAPIKeyRequest) XXX_Size() int {
return xxx_messageInfo_GetUserAPIKeyRequest.Size(m)
}
func (m *GetUserAPIKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetUserAPIKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetUserAPIKeyRequest proto.InternalMessageInfo
func (m *GetUserAPIKeyRequest) GetUserIds() *UserIdentifiers {
if m != nil {
return m.UserIds
}
return nil
}
func (m *GetUserAPIKeyRequest) GetKeyId() string {
if m != nil {
return m.KeyId
}
return ""
}
type CreateUserAPIKeyRequest struct {
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Rights []Right `protobuf:"varint,3,rep,packed,name=rights,proto3,enum=ttn.lorawan.v3.Right" json:"rights,omitempty"`
ExpiresAt *types.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateUserAPIKeyRequest) Reset() { *m = CreateUserAPIKeyRequest{} }
func (m *CreateUserAPIKeyRequest) String() string { return proto.CompactTextString(m) }
func (*CreateUserAPIKeyRequest) ProtoMessage() {}
func (*CreateUserAPIKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{10}
}
func (m *CreateUserAPIKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateUserAPIKeyRequest.Unmarshal(m, b)
}
func (m *CreateUserAPIKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateUserAPIKeyRequest.Marshal(b, m, deterministic)
}
func (m *CreateUserAPIKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateUserAPIKeyRequest.Merge(m, src)
}
func (m *CreateUserAPIKeyRequest) XXX_Size() int {
return xxx_messageInfo_CreateUserAPIKeyRequest.Size(m)
}
func (m *CreateUserAPIKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateUserAPIKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateUserAPIKeyRequest proto.InternalMessageInfo
func (m *CreateUserAPIKeyRequest) GetUserIds() *UserIdentifiers {
if m != nil {
return m.UserIds
}
return nil
}
func (m *CreateUserAPIKeyRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CreateUserAPIKeyRequest) GetRights() []Right {
if m != nil {
return m.Rights
}
return nil
}
func (m *CreateUserAPIKeyRequest) GetExpiresAt() *types.Timestamp {
if m != nil {
return m.ExpiresAt
}
return nil
}
type UpdateUserAPIKeyRequest struct {
UserIds *UserIdentifiers `protobuf:"bytes,1,opt,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
ApiKey *APIKey `protobuf:"bytes,2,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
// The names of the api key fields that should be updated.
FieldMask *types.FieldMask `protobuf:"bytes,3,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateUserAPIKeyRequest) Reset() { *m = UpdateUserAPIKeyRequest{} }
func (m *UpdateUserAPIKeyRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateUserAPIKeyRequest) ProtoMessage() {}
func (*UpdateUserAPIKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{11}
}
func (m *UpdateUserAPIKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateUserAPIKeyRequest.Unmarshal(m, b)
}
func (m *UpdateUserAPIKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateUserAPIKeyRequest.Marshal(b, m, deterministic)
}
func (m *UpdateUserAPIKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateUserAPIKeyRequest.Merge(m, src)
}
func (m *UpdateUserAPIKeyRequest) XXX_Size() int {
return xxx_messageInfo_UpdateUserAPIKeyRequest.Size(m)
}
func (m *UpdateUserAPIKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateUserAPIKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateUserAPIKeyRequest proto.InternalMessageInfo
func (m *UpdateUserAPIKeyRequest) GetUserIds() *UserIdentifiers {
if m != nil {
return m.UserIds
}
return nil
}
func (m *UpdateUserAPIKeyRequest) GetApiKey() *APIKey {
if m != nil {
return m.ApiKey
}
return nil
}
func (m *UpdateUserAPIKeyRequest) GetFieldMask() *types.FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
type Invitation struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
ExpiresAt *types.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
CreatedAt *types.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *types.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
AcceptedAt *types.Timestamp `protobuf:"bytes,6,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"`
AcceptedBy *UserIdentifiers `protobuf:"bytes,7,opt,name=accepted_by,json=acceptedBy,proto3" json:"accepted_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invitation) Reset() { *m = Invitation{} }
func (m *Invitation) String() string { return proto.CompactTextString(m) }
func (*Invitation) ProtoMessage() {}
func (*Invitation) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{12}
}
func (m *Invitation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Invitation.Unmarshal(m, b)
}
func (m *Invitation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Invitation.Marshal(b, m, deterministic)
}
func (m *Invitation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invitation.Merge(m, src)
}
func (m *Invitation) XXX_Size() int {
return xxx_messageInfo_Invitation.Size(m)
}
func (m *Invitation) XXX_DiscardUnknown() {
xxx_messageInfo_Invitation.DiscardUnknown(m)
}
var xxx_messageInfo_Invitation proto.InternalMessageInfo
func (m *Invitation) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
func (m *Invitation) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *Invitation) GetExpiresAt() *types.Timestamp {
if m != nil {
return m.ExpiresAt
}
return nil
}
func (m *Invitation) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *Invitation) GetUpdatedAt() *types.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
func (m *Invitation) GetAcceptedAt() *types.Timestamp {
if m != nil {
return m.AcceptedAt
}
return nil
}
func (m *Invitation) GetAcceptedBy() *UserIdentifiers {
if m != nil {
return m.AcceptedBy
}
return nil
}
type ListInvitationsRequest struct {
// Limit the number of results per page.
Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Page number for pagination. 0 is interpreted as 1.
Page uint32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListInvitationsRequest) Reset() { *m = ListInvitationsRequest{} }
func (m *ListInvitationsRequest) String() string { return proto.CompactTextString(m) }
func (*ListInvitationsRequest) ProtoMessage() {}
func (*ListInvitationsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{13}
}
func (m *ListInvitationsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListInvitationsRequest.Unmarshal(m, b)
}
func (m *ListInvitationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListInvitationsRequest.Marshal(b, m, deterministic)
}
func (m *ListInvitationsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListInvitationsRequest.Merge(m, src)
}
func (m *ListInvitationsRequest) XXX_Size() int {
return xxx_messageInfo_ListInvitationsRequest.Size(m)
}
func (m *ListInvitationsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListInvitationsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListInvitationsRequest proto.InternalMessageInfo
func (m *ListInvitationsRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListInvitationsRequest) GetPage() uint32 {
if m != nil {
return m.Page
}
return 0
}
type Invitations struct {
Invitations []*Invitation `protobuf:"bytes,1,rep,name=invitations,proto3" json:"invitations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invitations) Reset() { *m = Invitations{} }
func (m *Invitations) String() string { return proto.CompactTextString(m) }
func (*Invitations) ProtoMessage() {}
func (*Invitations) Descriptor() ([]byte, []int) {
return fileDescriptor_5ce30de589ccb9af, []int{14}
}
func (m *Invitations) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Invitations.Unmarshal(m, b)
}
func (m *Invitations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Invitations.Marshal(b, m, deterministic)
}
func (m *Invitations) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invitations.Merge(m, src)
}
func (m *Invitations) XXX_Size() int {
return xxx_messageInfo_Invitations.Size(m)
}
func (m *Invitations) XXX_DiscardUnknown() {
xxx_messageInfo_Invitations.DiscardUnknown(m)
}
var xxx_messageInfo_Invitations proto.InternalMessageInfo
func (m *Invitations) GetInvitations() []*Invitation {
if m != nil {
return m.Invitations
}
return nil
}
type SendInvitationRequest struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`