-
Notifications
You must be signed in to change notification settings - Fork 55
/
organization_pb.ts
1218 lines (1002 loc) · 48.9 KB
/
organization_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
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 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.1 with parameter "ts_nocheck=false,target=ts"
// @generated from file buf/alpha/registry/v1alpha1/organization.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, PluginRole, RepositoryRole, TemplateRole } from "./role_pb.js";
/**
* @generated from message buf.alpha.registry.v1alpha1.Organization
*/
export class Organization extends Message<Organization> {
/**
* 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 name = 4;
*/
name = "";
constructor(data?: PartialMessage<Organization>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.Organization";
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: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Organization {
return new Organization().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Organization {
return new Organization().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Organization {
return new Organization().fromJsonString(jsonString, options);
}
static equals(a: Organization | PlainMessage<Organization> | undefined, b: Organization | PlainMessage<Organization> | undefined): boolean {
return proto3.util.equals(Organization, a, b);
}
}
/**
* OrganizationMembership is a nested structure that contains
* the organization and user membership information on that organization.
*
* @generated from message buf.alpha.registry.v1alpha1.OrganizationMembership
*/
export class OrganizationMembership extends Message<OrganizationMembership> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.Organization organization = 1;
*/
organization?: Organization;
/**
* @generated from field: buf.alpha.registry.v1alpha1.OrganizationRole organization_role = 2;
*/
organizationRole = OrganizationRole.UNSPECIFIED;
constructor(data?: PartialMessage<OrganizationMembership>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.OrganizationMembership";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization", kind: "message", T: Organization },
{ no: 2, name: "organization_role", kind: "enum", T: proto3.getEnumType(OrganizationRole) },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationMembership {
return new OrganizationMembership().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationMembership {
return new OrganizationMembership().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationMembership {
return new OrganizationMembership().fromJsonString(jsonString, options);
}
static equals(a: OrganizationMembership | PlainMessage<OrganizationMembership> | undefined, b: OrganizationMembership | PlainMessage<OrganizationMembership> | undefined): boolean {
return proto3.util.equals(OrganizationMembership, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetOrganizationRequest
*/
export class GetOrganizationRequest extends Message<GetOrganizationRequest> {
/**
* @generated from field: string id = 1;
*/
id = "";
constructor(data?: PartialMessage<GetOrganizationRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetOrganizationRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationRequest {
return new GetOrganizationRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationRequest {
return new GetOrganizationRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationRequest {
return new GetOrganizationRequest().fromJsonString(jsonString, options);
}
static equals(a: GetOrganizationRequest | PlainMessage<GetOrganizationRequest> | undefined, b: GetOrganizationRequest | PlainMessage<GetOrganizationRequest> | undefined): boolean {
return proto3.util.equals(GetOrganizationRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetOrganizationResponse
*/
export class GetOrganizationResponse extends Message<GetOrganizationResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.Organization organization = 1;
*/
organization?: Organization;
constructor(data?: PartialMessage<GetOrganizationResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetOrganizationResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization", kind: "message", T: Organization },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationResponse {
return new GetOrganizationResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationResponse {
return new GetOrganizationResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationResponse {
return new GetOrganizationResponse().fromJsonString(jsonString, options);
}
static equals(a: GetOrganizationResponse | PlainMessage<GetOrganizationResponse> | undefined, b: GetOrganizationResponse | PlainMessage<GetOrganizationResponse> | undefined): boolean {
return proto3.util.equals(GetOrganizationResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetOrganizationByNameRequest
*/
export class GetOrganizationByNameRequest extends Message<GetOrganizationByNameRequest> {
/**
* @generated from field: string name = 1;
*/
name = "";
constructor(data?: PartialMessage<GetOrganizationByNameRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetOrganizationByNameRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationByNameRequest {
return new GetOrganizationByNameRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationByNameRequest {
return new GetOrganizationByNameRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationByNameRequest {
return new GetOrganizationByNameRequest().fromJsonString(jsonString, options);
}
static equals(a: GetOrganizationByNameRequest | PlainMessage<GetOrganizationByNameRequest> | undefined, b: GetOrganizationByNameRequest | PlainMessage<GetOrganizationByNameRequest> | undefined): boolean {
return proto3.util.equals(GetOrganizationByNameRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.GetOrganizationByNameResponse
*/
export class GetOrganizationByNameResponse extends Message<GetOrganizationByNameResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.Organization organization = 1;
*/
organization?: Organization;
constructor(data?: PartialMessage<GetOrganizationByNameResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.GetOrganizationByNameResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization", kind: "message", T: Organization },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationByNameResponse {
return new GetOrganizationByNameResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationByNameResponse {
return new GetOrganizationByNameResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationByNameResponse {
return new GetOrganizationByNameResponse().fromJsonString(jsonString, options);
}
static equals(a: GetOrganizationByNameResponse | PlainMessage<GetOrganizationByNameResponse> | undefined, b: GetOrganizationByNameResponse | PlainMessage<GetOrganizationByNameResponse> | undefined): boolean {
return proto3.util.equals(GetOrganizationByNameResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListOrganizationsRequest
*/
export class ListOrganizationsRequest extends Message<ListOrganizationsRequest> {
/**
* @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;
constructor(data?: PartialMessage<ListOrganizationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListOrganizationsRequest";
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 */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationsRequest {
return new ListOrganizationsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationsRequest {
return new ListOrganizationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationsRequest {
return new ListOrganizationsRequest().fromJsonString(jsonString, options);
}
static equals(a: ListOrganizationsRequest | PlainMessage<ListOrganizationsRequest> | undefined, b: ListOrganizationsRequest | PlainMessage<ListOrganizationsRequest> | undefined): boolean {
return proto3.util.equals(ListOrganizationsRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListOrganizationsResponse
*/
export class ListOrganizationsResponse extends Message<ListOrganizationsResponse> {
/**
* @generated from field: repeated buf.alpha.registry.v1alpha1.Organization organizations = 1;
*/
organizations: Organization[] = [];
/**
* There are no more pages if this is empty.
*
* @generated from field: string next_page_token = 2;
*/
nextPageToken = "";
constructor(data?: PartialMessage<ListOrganizationsResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListOrganizationsResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organizations", kind: "message", T: Organization, repeated: true },
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationsResponse {
return new ListOrganizationsResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationsResponse {
return new ListOrganizationsResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationsResponse {
return new ListOrganizationsResponse().fromJsonString(jsonString, options);
}
static equals(a: ListOrganizationsResponse | PlainMessage<ListOrganizationsResponse> | undefined, b: ListOrganizationsResponse | PlainMessage<ListOrganizationsResponse> | undefined): boolean {
return proto3.util.equals(ListOrganizationsResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListUserOrganizationsRequest
*/
export class ListUserOrganizationsRequest extends Message<ListUserOrganizationsRequest> {
/**
* The ID of the user whose organizations should be listed.
*
* @generated from field: string user_id = 1;
*/
userId = "";
/**
* @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<ListUserOrganizationsRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListUserOrganizationsRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "user_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>): ListUserOrganizationsRequest {
return new ListUserOrganizationsRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserOrganizationsRequest {
return new ListUserOrganizationsRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserOrganizationsRequest {
return new ListUserOrganizationsRequest().fromJsonString(jsonString, options);
}
static equals(a: ListUserOrganizationsRequest | PlainMessage<ListUserOrganizationsRequest> | undefined, b: ListUserOrganizationsRequest | PlainMessage<ListUserOrganizationsRequest> | undefined): boolean {
return proto3.util.equals(ListUserOrganizationsRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.ListUserOrganizationsResponse
*/
export class ListUserOrganizationsResponse extends Message<ListUserOrganizationsResponse> {
/**
* @generated from field: repeated buf.alpha.registry.v1alpha1.OrganizationMembership organizations = 1;
*/
organizations: OrganizationMembership[] = [];
/**
* There are no more pages if this is empty.
*
* @generated from field: string next_page_token = 2;
*/
nextPageToken = "";
constructor(data?: PartialMessage<ListUserOrganizationsResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.ListUserOrganizationsResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organizations", kind: "message", T: OrganizationMembership, repeated: true },
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserOrganizationsResponse {
return new ListUserOrganizationsResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserOrganizationsResponse {
return new ListUserOrganizationsResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserOrganizationsResponse {
return new ListUserOrganizationsResponse().fromJsonString(jsonString, options);
}
static equals(a: ListUserOrganizationsResponse | PlainMessage<ListUserOrganizationsResponse> | undefined, b: ListUserOrganizationsResponse | PlainMessage<ListUserOrganizationsResponse> | undefined): boolean {
return proto3.util.equals(ListUserOrganizationsResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CreateOrganizationRequest
*/
export class CreateOrganizationRequest extends Message<CreateOrganizationRequest> {
/**
* Must be unique across organizations.
*
* @generated from field: string name = 1;
*/
name = "";
constructor(data?: PartialMessage<CreateOrganizationRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CreateOrganizationRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationRequest {
return new CreateOrganizationRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationRequest {
return new CreateOrganizationRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationRequest {
return new CreateOrganizationRequest().fromJsonString(jsonString, options);
}
static equals(a: CreateOrganizationRequest | PlainMessage<CreateOrganizationRequest> | undefined, b: CreateOrganizationRequest | PlainMessage<CreateOrganizationRequest> | undefined): boolean {
return proto3.util.equals(CreateOrganizationRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.CreateOrganizationResponse
*/
export class CreateOrganizationResponse extends Message<CreateOrganizationResponse> {
/**
* @generated from field: buf.alpha.registry.v1alpha1.Organization organization = 1;
*/
organization?: Organization;
constructor(data?: PartialMessage<CreateOrganizationResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.CreateOrganizationResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization", kind: "message", T: Organization },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationResponse {
return new CreateOrganizationResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationResponse {
return new CreateOrganizationResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationResponse {
return new CreateOrganizationResponse().fromJsonString(jsonString, options);
}
static equals(a: CreateOrganizationResponse | PlainMessage<CreateOrganizationResponse> | undefined, b: CreateOrganizationResponse | PlainMessage<CreateOrganizationResponse> | undefined): boolean {
return proto3.util.equals(CreateOrganizationResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeleteOrganizationRequest
*/
export class DeleteOrganizationRequest extends Message<DeleteOrganizationRequest> {
/**
* @generated from field: string id = 1;
*/
id = "";
constructor(data?: PartialMessage<DeleteOrganizationRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeleteOrganizationRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationRequest {
return new DeleteOrganizationRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationRequest {
return new DeleteOrganizationRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationRequest {
return new DeleteOrganizationRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteOrganizationRequest | PlainMessage<DeleteOrganizationRequest> | undefined, b: DeleteOrganizationRequest | PlainMessage<DeleteOrganizationRequest> | undefined): boolean {
return proto3.util.equals(DeleteOrganizationRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeleteOrganizationResponse
*/
export class DeleteOrganizationResponse extends Message<DeleteOrganizationResponse> {
constructor(data?: PartialMessage<DeleteOrganizationResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeleteOrganizationResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationResponse {
return new DeleteOrganizationResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationResponse {
return new DeleteOrganizationResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationResponse {
return new DeleteOrganizationResponse().fromJsonString(jsonString, options);
}
static equals(a: DeleteOrganizationResponse | PlainMessage<DeleteOrganizationResponse> | undefined, b: DeleteOrganizationResponse | PlainMessage<DeleteOrganizationResponse> | undefined): boolean {
return proto3.util.equals(DeleteOrganizationResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeleteOrganizationByNameRequest
*/
export class DeleteOrganizationByNameRequest extends Message<DeleteOrganizationByNameRequest> {
/**
* @generated from field: string name = 1;
*/
name = "";
constructor(data?: PartialMessage<DeleteOrganizationByNameRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeleteOrganizationByNameRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationByNameRequest {
return new DeleteOrganizationByNameRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationByNameRequest {
return new DeleteOrganizationByNameRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationByNameRequest {
return new DeleteOrganizationByNameRequest().fromJsonString(jsonString, options);
}
static equals(a: DeleteOrganizationByNameRequest | PlainMessage<DeleteOrganizationByNameRequest> | undefined, b: DeleteOrganizationByNameRequest | PlainMessage<DeleteOrganizationByNameRequest> | undefined): boolean {
return proto3.util.equals(DeleteOrganizationByNameRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.DeleteOrganizationByNameResponse
*/
export class DeleteOrganizationByNameResponse extends Message<DeleteOrganizationByNameResponse> {
constructor(data?: PartialMessage<DeleteOrganizationByNameResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.DeleteOrganizationByNameResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationByNameResponse {
return new DeleteOrganizationByNameResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationByNameResponse {
return new DeleteOrganizationByNameResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationByNameResponse {
return new DeleteOrganizationByNameResponse().fromJsonString(jsonString, options);
}
static equals(a: DeleteOrganizationByNameResponse | PlainMessage<DeleteOrganizationByNameResponse> | undefined, b: DeleteOrganizationByNameResponse | PlainMessage<DeleteOrganizationByNameResponse> | undefined): boolean {
return proto3.util.equals(DeleteOrganizationByNameResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.AddOrganizationMemberRequest
*/
export class AddOrganizationMemberRequest extends Message<AddOrganizationMemberRequest> {
/**
* The ID of the organization for which the user will be added to.
*
* @generated from field: string organization_id = 1;
*/
organizationId = "";
/**
* The ID of the user for which to be added to the organization.
*
* @generated from field: string user_id = 2;
*/
userId = "";
/**
* The new role of the user in the organization.
*
* @generated from field: buf.alpha.registry.v1alpha1.OrganizationRole organization_role = 3;
*/
organizationRole = OrganizationRole.UNSPECIFIED;
constructor(data?: PartialMessage<AddOrganizationMemberRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.AddOrganizationMemberRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "user_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>): AddOrganizationMemberRequest {
return new AddOrganizationMemberRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddOrganizationMemberRequest {
return new AddOrganizationMemberRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddOrganizationMemberRequest {
return new AddOrganizationMemberRequest().fromJsonString(jsonString, options);
}
static equals(a: AddOrganizationMemberRequest | PlainMessage<AddOrganizationMemberRequest> | undefined, b: AddOrganizationMemberRequest | PlainMessage<AddOrganizationMemberRequest> | undefined): boolean {
return proto3.util.equals(AddOrganizationMemberRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.AddOrganizationMemberResponse
*/
export class AddOrganizationMemberResponse extends Message<AddOrganizationMemberResponse> {
constructor(data?: PartialMessage<AddOrganizationMemberResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.AddOrganizationMemberResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddOrganizationMemberResponse {
return new AddOrganizationMemberResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddOrganizationMemberResponse {
return new AddOrganizationMemberResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddOrganizationMemberResponse {
return new AddOrganizationMemberResponse().fromJsonString(jsonString, options);
}
static equals(a: AddOrganizationMemberResponse | PlainMessage<AddOrganizationMemberResponse> | undefined, b: AddOrganizationMemberResponse | PlainMessage<AddOrganizationMemberResponse> | undefined): boolean {
return proto3.util.equals(AddOrganizationMemberResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.UpdateOrganizationMemberRequest
*/
export class UpdateOrganizationMemberRequest extends Message<UpdateOrganizationMemberRequest> {
/**
* The ID of the organization for which the member belongs to.
*
* @generated from field: string organization_id = 1;
*/
organizationId = "";
/**
* The ID of the user for which to be updated the role.
*
* @generated from field: string user_id = 2;
*/
userId = "";
/**
* The new role of the user in the organization.
*
* @generated from field: buf.alpha.registry.v1alpha1.OrganizationRole organization_role = 3;
*/
organizationRole = OrganizationRole.UNSPECIFIED;
constructor(data?: PartialMessage<UpdateOrganizationMemberRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.UpdateOrganizationMemberRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "user_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>): UpdateOrganizationMemberRequest {
return new UpdateOrganizationMemberRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationMemberRequest {
return new UpdateOrganizationMemberRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationMemberRequest {
return new UpdateOrganizationMemberRequest().fromJsonString(jsonString, options);
}
static equals(a: UpdateOrganizationMemberRequest | PlainMessage<UpdateOrganizationMemberRequest> | undefined, b: UpdateOrganizationMemberRequest | PlainMessage<UpdateOrganizationMemberRequest> | undefined): boolean {
return proto3.util.equals(UpdateOrganizationMemberRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.UpdateOrganizationMemberResponse
*/
export class UpdateOrganizationMemberResponse extends Message<UpdateOrganizationMemberResponse> {
constructor(data?: PartialMessage<UpdateOrganizationMemberResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.UpdateOrganizationMemberResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationMemberResponse {
return new UpdateOrganizationMemberResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationMemberResponse {
return new UpdateOrganizationMemberResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationMemberResponse {
return new UpdateOrganizationMemberResponse().fromJsonString(jsonString, options);
}
static equals(a: UpdateOrganizationMemberResponse | PlainMessage<UpdateOrganizationMemberResponse> | undefined, b: UpdateOrganizationMemberResponse | PlainMessage<UpdateOrganizationMemberResponse> | undefined): boolean {
return proto3.util.equals(UpdateOrganizationMemberResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.RemoveOrganizationMemberRequest
*/
export class RemoveOrganizationMemberRequest extends Message<RemoveOrganizationMemberRequest> {
/**
* The ID of the organization for which the member belongs to.
*
* @generated from field: string organization_id = 1;
*/
organizationId = "";
/**
* The ID of the user for which to be removed the role.
*
* @generated from field: string user_id = 2;
*/
userId = "";
constructor(data?: PartialMessage<RemoveOrganizationMemberRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.RemoveOrganizationMemberRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveOrganizationMemberRequest {
return new RemoveOrganizationMemberRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveOrganizationMemberRequest {
return new RemoveOrganizationMemberRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveOrganizationMemberRequest {
return new RemoveOrganizationMemberRequest().fromJsonString(jsonString, options);
}
static equals(a: RemoveOrganizationMemberRequest | PlainMessage<RemoveOrganizationMemberRequest> | undefined, b: RemoveOrganizationMemberRequest | PlainMessage<RemoveOrganizationMemberRequest> | undefined): boolean {
return proto3.util.equals(RemoveOrganizationMemberRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.RemoveOrganizationMemberResponse
*/
export class RemoveOrganizationMemberResponse extends Message<RemoveOrganizationMemberResponse> {
constructor(data?: PartialMessage<RemoveOrganizationMemberResponse>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.RemoveOrganizationMemberResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveOrganizationMemberResponse {
return new RemoveOrganizationMemberResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveOrganizationMemberResponse {
return new RemoveOrganizationMemberResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveOrganizationMemberResponse {
return new RemoveOrganizationMemberResponse().fromJsonString(jsonString, options);
}
static equals(a: RemoveOrganizationMemberResponse | PlainMessage<RemoveOrganizationMemberResponse> | undefined, b: RemoveOrganizationMemberResponse | PlainMessage<RemoveOrganizationMemberResponse> | undefined): boolean {
return proto3.util.equals(RemoveOrganizationMemberResponse, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.SetOrganizationMemberRequest
*/
export class SetOrganizationMemberRequest extends Message<SetOrganizationMemberRequest> {
/**
* The ID of the organization for which the user's role will be set.
*
* @generated from field: string organization_id = 1;
*/
organizationId = "";
/**
* The ID of the user whose role will be set.
*
* @generated from field: string user_id = 2;
*/
userId = "";
/**
* The role to assign to the user.
* Setting UNSPECIFIED means removing the user's role.
*
* @generated from field: buf.alpha.registry.v1alpha1.OrganizationRole organization_role = 3;
*/
organizationRole = OrganizationRole.UNSPECIFIED;
constructor(data?: PartialMessage<SetOrganizationMemberRequest>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "buf.alpha.registry.v1alpha1.SetOrganizationMemberRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "user_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>): SetOrganizationMemberRequest {
return new SetOrganizationMemberRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetOrganizationMemberRequest {
return new SetOrganizationMemberRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetOrganizationMemberRequest {
return new SetOrganizationMemberRequest().fromJsonString(jsonString, options);
}
static equals(a: SetOrganizationMemberRequest | PlainMessage<SetOrganizationMemberRequest> | undefined, b: SetOrganizationMemberRequest | PlainMessage<SetOrganizationMemberRequest> | undefined): boolean {
return proto3.util.equals(SetOrganizationMemberRequest, a, b);
}
}
/**
* @generated from message buf.alpha.registry.v1alpha1.SetOrganizationMemberResponse
*/