-
Notifications
You must be signed in to change notification settings - Fork 55
/
user_pb.ts
886 lines (729 loc) · 32.1 KB
/
user_pb.ts
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
// Copyright 2021-2024 Buf Technologies, Inc.
//
// 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.
// @generated by protoc-gen-es v1.7.0 with parameter "ts_nocheck=false,target=ts"
// @generated from file buf/alpha/registry/v1alpha1/user.proto (package buf.alpha.registry.v1alpha1, syntax proto3)
/* eslint-disable */
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
import { OrganizationRole, ServerRole } from "./role_pb.js";
/**
* @generated from enum buf.alpha.registry.v1alpha1.UserState
*/
export enum UserState {
/**
* @generated from enum value: USER_STATE_UNSPECIFIED = 0;
*/
UNSPECIFIED = 0,
/**
* @generated from enum value: USER_STATE_ACTIVE = 1;
*/
ACTIVE = 1,
/**
* @generated from enum value: USER_STATE_DEACTIVATED = 2;
*/
DEACTIVATED = 2,
}
// Retrieve enum metadata with: proto3.getEnumType(UserState)
proto3.util.setEnumType(UserState, "buf.alpha.registry.v1alpha1.UserState", [
{ no: 0, name: "USER_STATE_UNSPECIFIED" },
{ no: 1, name: "USER_STATE_ACTIVE" },
{ no: 2, name: "USER_STATE_DEACTIVATED" },
]);
/**
* @generated from message buf.alpha.registry.v1alpha1.User
*/
export class User extends Message<User> {
/**
* primary key, unique, immutable
*
* @generated from field: string id = 1;
*/
id = "";
/**
* immutable
*
* @generated from field: google.protobuf.Timestamp create_time = 2;
*/
createTime?: Timestamp;
/**
* mutable
*
* @generated from field: google.protobuf.Timestamp update_time = 3;
*/
updateTime?: Timestamp;
/**
* unique, mutable
*
* @generated from field: string username = 4;
*/
username = "";
/**
* mutable
*
* @generated from field: bool deactivated = 5;
*/
deactivated = false;
constructor(data?: PartialMessage<User>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.User";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "create_time", kind: "message", T: Timestamp },
{ no: 3, name: "update_time", kind: "message", T: Timestamp },
{ no: 4, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "deactivated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
return new User().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User {
return new User().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User {
return new User().fromJsonString(jsonString, options);
}
static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean {
return proto3.util.equals(User, a, b);
}
}
/**
* TODO: #663 move this to organization service
*
* @generated from message buf.alpha.registry.v1alpha1.OrganizationUser
*/
export class OrganizationUser extends Message<OrganizationUser> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.User user = 1;
*/
user?: User;
/**
* The ID of the organization for which the role belongs to.
*
* @generated from field: string organization_id = 2;
*/
organizationId = "";
/**
* The role that the user has in the organization above.
*
* @generated from field: buf.alpha.registry.v1alpha1.OrganizationRole organization_role = 3;
*/
organizationRole = OrganizationRole.UNSPECIFIED;
constructor(data?: PartialMessage<OrganizationUser>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.OrganizationUser";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user", kind: "message", T: User },
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "organization_role", kind: "enum", T: proto3.getEnumType(OrganizationRole) },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationUser {
return new OrganizationUser().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationUser {
return new OrganizationUser().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationUser {
return new OrganizationUser().fromJsonString(jsonString, options);
}
static equals(a: OrganizationUser | PlainMessage<OrganizationUser> | undefined, b: OrganizationUser | PlainMessage<OrganizationUser> | undefined): boolean {
return proto3.util.equals(OrganizationUser, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CreateUserRequest
*/
export class CreateUserRequest extends Message<CreateUserRequest> {
/**
* @generated from field: string username = 1;
*/
username = "";
constructor(data?: PartialMessage<CreateUserRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CreateUserRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserRequest {
return new CreateUserRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserRequest {
return new CreateUserRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserRequest {
return new CreateUserRequest().fromJsonString(jsonString, options);
}
static equals(a: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined, b: CreateUserRequest | PlainMessage<CreateUserRequest> | undefined): boolean {
return proto3.util.equals(CreateUserRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CreateUserResponse
*/
export class CreateUserResponse extends Message<CreateUserResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.User user = 1;
*/
user?: User;
constructor(data?: PartialMessage<CreateUserResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CreateUserResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user", kind: "message", T: User },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserResponse {
return new CreateUserResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserResponse {
return new CreateUserResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserResponse {
return new CreateUserResponse().fromJsonString(jsonString, options);
}
static equals(a: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined, b: CreateUserResponse | PlainMessage<CreateUserResponse> | undefined): boolean {
return proto3.util.equals(CreateUserResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetUserRequest
*/
export class GetUserRequest extends Message<GetUserRequest> {
/**
* @generated from field: string id = 1;
*/
id = "";
constructor(data?: PartialMessage<GetUserRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetUserRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRequest {
return new GetUserRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRequest {
return new GetUserRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRequest {
return new GetUserRequest().fromJsonString(jsonString, options);
}
static equals(a: GetUserRequest | PlainMessage<GetUserRequest> | undefined, b: GetUserRequest | PlainMessage<GetUserRequest> | undefined): boolean {
return proto3.util.equals(GetUserRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetUserResponse
*/
export class GetUserResponse extends Message<GetUserResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.User user = 1;
*/
user?: User;
constructor(data?: PartialMessage<GetUserResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetUserResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user", kind: "message", T: User },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserResponse {
return new GetUserResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserResponse {
return new GetUserResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserResponse {
return new GetUserResponse().fromJsonString(jsonString, options);
}
static equals(a: GetUserResponse | PlainMessage<GetUserResponse> | undefined, b: GetUserResponse | PlainMessage<GetUserResponse> | undefined): boolean {
return proto3.util.equals(GetUserResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetUserByUsernameRequest
*/
export class GetUserByUsernameRequest extends Message<GetUserByUsernameRequest> {
/**
* @generated from field: string username = 1;
*/
username = "";
constructor(data?: PartialMessage<GetUserByUsernameRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetUserByUsernameRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserByUsernameRequest {
return new GetUserByUsernameRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserByUsernameRequest {
return new GetUserByUsernameRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserByUsernameRequest {
return new GetUserByUsernameRequest().fromJsonString(jsonString, options);
}
static equals(a: GetUserByUsernameRequest | PlainMessage<GetUserByUsernameRequest> | undefined, b: GetUserByUsernameRequest | PlainMessage<GetUserByUsernameRequest> | undefined): boolean {
return proto3.util.equals(GetUserByUsernameRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetUserByUsernameResponse
*/
export class GetUserByUsernameResponse extends Message<GetUserByUsernameResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.User user = 1;
*/
user?: User;
constructor(data?: PartialMessage<GetUserByUsernameResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetUserByUsernameResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user", kind: "message", T: User },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserByUsernameResponse {
return new GetUserByUsernameResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserByUsernameResponse {
return new GetUserByUsernameResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserByUsernameResponse {
return new GetUserByUsernameResponse().fromJsonString(jsonString, options);
}
static equals(a: GetUserByUsernameResponse | PlainMessage<GetUserByUsernameResponse> | undefined, b: GetUserByUsernameResponse | PlainMessage<GetUserByUsernameResponse> | undefined): boolean {
return proto3.util.equals(GetUserByUsernameResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListUsersRequest
*/
export class ListUsersRequest extends Message<ListUsersRequest> {
/**
* @generated from field: uint32 page_size = 1;
*/
pageSize = 0;
/**
* The first page is returned if this is empty.
*
* @generated from field: string page_token = 2;
*/
pageToken = "";
/**
* @generated from field: bool reverse = 3;
*/
reverse = false;
/**
* If the user_state_filter is unspecified, all users are included.
*
* @generated from field: buf.alpha.registry.v1alpha1.UserState user_state_filter = 4;
*/
userStateFilter = UserState.UNSPECIFIED;
constructor(data?: PartialMessage<ListUsersRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListUsersRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "reverse", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 4, name: "user_state_filter", kind: "enum", T: proto3.getEnumType(UserState) },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersRequest {
return new ListUsersRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersRequest {
return new ListUsersRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersRequest {
return new ListUsersRequest().fromJsonString(jsonString, options);
}
static equals(a: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined, b: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined): boolean {
return proto3.util.equals(ListUsersRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListUsersResponse
*/
export class ListUsersResponse extends Message<ListUsersResponse> {
/**
* @generated from field: repeated buf.alpha.registry.v1alpha1.User users = 1;
*/
users: User[] = [];
/**
* There are no more pages if this is empty.
*
* @generated from field: string next_page_token = 2;
*/
nextPageToken = "";
constructor(data?: PartialMessage<ListUsersResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListUsersResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "users", kind: "message", T: User, repeated: true },
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersResponse {
return new ListUsersResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersResponse {
return new ListUsersResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersResponse {
return new ListUsersResponse().fromJsonString(jsonString, options);
}
static equals(a: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined, b: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined): boolean {
return proto3.util.equals(ListUsersResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListOrganizationUsersRequest
*/
export class ListOrganizationUsersRequest extends Message<ListOrganizationUsersRequest> {
/**
* @generated from field: string organization_id = 1;
*/
organizationId = "";
/**
* @generated from field: uint32 page_size = 2;
*/
pageSize = 0;
/**
* The first page is returned if this is empty.
*
* @generated from field: string page_token = 3;
*/
pageToken = "";
/**
* @generated from field: bool reverse = 4;
*/
reverse = false;
constructor(data?: PartialMessage<ListOrganizationUsersRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListOrganizationUsersRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "reverse", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersRequest {
return new ListOrganizationUsersRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest {
return new ListOrganizationUsersRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest {
return new ListOrganizationUsersRequest().fromJsonString(jsonString, options);
}
static equals(a: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined, b: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined): boolean {
return proto3.util.equals(ListOrganizationUsersRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListOrganizationUsersResponse
*/
export class ListOrganizationUsersResponse extends Message<ListOrganizationUsersResponse> {
/**
* @generated from field: repeated buf.alpha.registry.v1alpha1.OrganizationUser users = 1;
*/
users: OrganizationUser[] = [];
/**
* There are no more pages if this is empty.
*
* @generated from field: string next_page_token = 2;
*/
nextPageToken = "";
constructor(data?: PartialMessage<ListOrganizationUsersResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListOrganizationUsersResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "users", kind: "message", T: OrganizationUser, repeated: true },
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersResponse {
return new ListOrganizationUsersResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse {
return new ListOrganizationUsersResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse {
return new ListOrganizationUsersResponse().fromJsonString(jsonString, options);
}
static equals(a: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined, b: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined): boolean {
return proto3.util.equals(ListOrganizationUsersResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeleteUserRequest
*/
export class DeleteUserRequest extends Message<DeleteUserRequest> {
constructor(data?: PartialMessage<DeleteUserRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeleteUserRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest {
return new DeleteUserRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest {
return new DeleteUserRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest {
return new DeleteUserRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean {
return proto3.util.equals(DeleteUserRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeleteUserResponse
*/
export class DeleteUserResponse extends Message<DeleteUserResponse> {
constructor(data?: PartialMessage<DeleteUserResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeleteUserResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserResponse {
return new DeleteUserResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserResponse {
return new DeleteUserResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserResponse {
return new DeleteUserResponse().fromJsonString(jsonString, options);
}
static equals(a: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined, b: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined): boolean {
return proto3.util.equals(DeleteUserResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeactivateUserRequest
*/
export class DeactivateUserRequest extends Message<DeactivateUserRequest> {
/**
* @generated from field: string id = 1;
*/
id = "";
constructor(data?: PartialMessage<DeactivateUserRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeactivateUserRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeactivateUserRequest {
return new DeactivateUserRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeactivateUserRequest {
return new DeactivateUserRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeactivateUserRequest {
return new DeactivateUserRequest().fromJsonString(jsonString, options);
}
static equals(a: DeactivateUserRequest | PlainMessage<DeactivateUserRequest> | undefined, b: DeactivateUserRequest | PlainMessage<DeactivateUserRequest> | undefined): boolean {
return proto3.util.equals(DeactivateUserRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeactivateUserResponse
*/
export class DeactivateUserResponse extends Message<DeactivateUserResponse> {
constructor(data?: PartialMessage<DeactivateUserResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeactivateUserResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeactivateUserResponse {
return new DeactivateUserResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeactivateUserResponse {
return new DeactivateUserResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeactivateUserResponse {
return new DeactivateUserResponse().fromJsonString(jsonString, options);
}
static equals(a: DeactivateUserResponse | PlainMessage<DeactivateUserResponse> | undefined, b: DeactivateUserResponse | PlainMessage<DeactivateUserResponse> | undefined): boolean {
return proto3.util.equals(DeactivateUserResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.UpdateUserServerRoleRequest
*/
export class UpdateUserServerRoleRequest extends Message<UpdateUserServerRoleRequest> {
/**
* The ID of the user for which to be updated a role.
*
* @generated from field: string user_id = 1;
*/
userId = "";
/**
* The new role of the user in the server.
*
* @generated from field: buf.alpha.registry.v1alpha1.ServerRole server_role = 2;
*/
serverRole = ServerRole.UNSPECIFIED;
constructor(data?: PartialMessage<UpdateUserServerRoleRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.UpdateUserServerRoleRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "server_role", kind: "enum", T: proto3.getEnumType(ServerRole) },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserServerRoleRequest {
return new UpdateUserServerRoleRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserServerRoleRequest {
return new UpdateUserServerRoleRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserServerRoleRequest {
return new UpdateUserServerRoleRequest().fromJsonString(jsonString, options);
}
static equals(a: UpdateUserServerRoleRequest | PlainMessage<UpdateUserServerRoleRequest> | undefined, b: UpdateUserServerRoleRequest | PlainMessage<UpdateUserServerRoleRequest> | undefined): boolean {
return proto3.util.equals(UpdateUserServerRoleRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.UpdateUserServerRoleResponse
*/
export class UpdateUserServerRoleResponse extends Message<UpdateUserServerRoleResponse> {
constructor(data?: PartialMessage<UpdateUserServerRoleResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.UpdateUserServerRoleResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserServerRoleResponse {
return new UpdateUserServerRoleResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserServerRoleResponse {
return new UpdateUserServerRoleResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserServerRoleResponse {
return new UpdateUserServerRoleResponse().fromJsonString(jsonString, options);
}
static equals(a: UpdateUserServerRoleResponse | PlainMessage<UpdateUserServerRoleResponse> | undefined, b: UpdateUserServerRoleResponse | PlainMessage<UpdateUserServerRoleResponse> | undefined): boolean {
return proto3.util.equals(UpdateUserServerRoleResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CountUsersRequest
*/
export class CountUsersRequest extends Message<CountUsersRequest> {
/**
* If the user_state_filter is unspecified, all users are included.
*
* @generated from field: buf.alpha.registry.v1alpha1.UserState user_state_filter = 1;
*/
userStateFilter = UserState.UNSPECIFIED;
constructor(data?: PartialMessage<CountUsersRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CountUsersRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user_state_filter", kind: "enum", T: proto3.getEnumType(UserState) },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CountUsersRequest {
return new CountUsersRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CountUsersRequest {
return new CountUsersRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CountUsersRequest {
return new CountUsersRequest().fromJsonString(jsonString, options);
}
static equals(a: CountUsersRequest | PlainMessage<CountUsersRequest> | undefined, b: CountUsersRequest | PlainMessage<CountUsersRequest> | undefined): boolean {
return proto3.util.equals(CountUsersRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CountUsersResponse
*/
export class CountUsersResponse extends Message<CountUsersResponse> {
/**
* @generated from field: uint32 total_count = 1;
*/
totalCount = 0;
constructor(data?: PartialMessage<CountUsersResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CountUsersResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "total_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CountUsersResponse {
return new CountUsersResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CountUsersResponse {
return new CountUsersResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CountUsersResponse {
return new CountUsersResponse().fromJsonString(jsonString, options);
}
static equals(a: CountUsersResponse | PlainMessage<CountUsersResponse> | undefined, b: CountUsersResponse | PlainMessage<CountUsersResponse> | undefined): boolean {
return proto3.util.equals(CountUsersResponse, a, b);
}
}