-
Notifications
You must be signed in to change notification settings - Fork 0
/
tenant.pb.go
3035 lines (2713 loc) · 115 KB
/
tenant.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-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.34.1
// protoc (unknown)
// source: api/v1/tenant.proto
package apiv1
import (
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Tenant is a customer of the platform
type Tenant struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Login of the tenant
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
// Name of the tenant
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Email of the tenant
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
// Description of this tenant
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// AvatarUrl of the tenant
AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
// OauthProvider of the tenant
OauthProvider OAuthProvider `protobuf:"varint,6,opt,name=oauth_provider,json=oauthProvider,proto3,enum=api.v1.OAuthProvider" json:"oauth_provider,omitempty"`
// PaymentDetails the tenant provides
PaymentDetails *PaymentDetails `protobuf:"bytes,8,opt,name=payment_details,json=paymentDetails,proto3" json:"payment_details,omitempty"`
// Admitted indicates if this tenant is allowed to use the platform
Admitted bool `protobuf:"varint,9,opt,name=admitted,proto3" json:"admitted,omitempty"`
// PhoneNumber of the tenant
PhoneNumber string `protobuf:"bytes,10,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
// TermsAndConditions the tenant accepted
TermsAndConditions *TermsAndConditions `protobuf:"bytes,11,opt,name=terms_and_conditions,json=termsAndConditions,proto3" json:"terms_and_conditions,omitempty"`
// EmailConsent the tenant made
EmailConsent bool `protobuf:"varint,12,opt,name=email_consent,json=emailConsent,proto3" json:"email_consent,omitempty"`
// Onboarded checks if the tenant was asked to be onboarded
Onboarded bool `protobuf:"varint,13,opt,name=onboarded,proto3" json:"onboarded,omitempty"`
// CreatedBy stores who created this tenant
CreatedBy string `protobuf:"bytes,15,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
// CreatedAt the date when this tenant was created
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// UpdatedAt the date when this tenant was updated
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// DeletedAt the date when this tenant was deleted
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
}
func (x *Tenant) Reset() {
*x = Tenant{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Tenant) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Tenant) ProtoMessage() {}
func (x *Tenant) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Tenant.ProtoReflect.Descriptor instead.
func (*Tenant) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{0}
}
func (x *Tenant) GetLogin() string {
if x != nil {
return x.Login
}
return ""
}
func (x *Tenant) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Tenant) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *Tenant) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Tenant) GetAvatarUrl() string {
if x != nil {
return x.AvatarUrl
}
return ""
}
func (x *Tenant) GetOauthProvider() OAuthProvider {
if x != nil {
return x.OauthProvider
}
return OAuthProvider_O_AUTH_PROVIDER_UNSPECIFIED
}
func (x *Tenant) GetPaymentDetails() *PaymentDetails {
if x != nil {
return x.PaymentDetails
}
return nil
}
func (x *Tenant) GetAdmitted() bool {
if x != nil {
return x.Admitted
}
return false
}
func (x *Tenant) GetPhoneNumber() string {
if x != nil {
return x.PhoneNumber
}
return ""
}
func (x *Tenant) GetTermsAndConditions() *TermsAndConditions {
if x != nil {
return x.TermsAndConditions
}
return nil
}
func (x *Tenant) GetEmailConsent() bool {
if x != nil {
return x.EmailConsent
}
return false
}
func (x *Tenant) GetOnboarded() bool {
if x != nil {
return x.Onboarded
}
return false
}
func (x *Tenant) GetCreatedBy() string {
if x != nil {
return x.CreatedBy
}
return ""
}
func (x *Tenant) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Tenant) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Tenant) GetDeletedAt() *timestamppb.Timestamp {
if x != nil {
return x.DeletedAt
}
return nil
}
// TenantMember defines a user that participates at a tenant
type TenantMember struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Id is the user id of the member
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Role is the role of the member
Role TenantRole `protobuf:"varint,2,opt,name=role,proto3,enum=api.v1.TenantRole" json:"role,omitempty"`
// CreatedAt the date when the member was added to the tenant
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (x *TenantMember) Reset() {
*x = TenantMember{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TenantMember) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantMember) ProtoMessage() {}
func (x *TenantMember) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TenantMember.ProtoReflect.Descriptor instead.
func (*TenantMember) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{1}
}
func (x *TenantMember) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TenantMember) GetRole() TenantRole {
if x != nil {
return x.Role
}
return TenantRole_TENANT_ROLE_UNSPECIFIED
}
func (x *TenantMember) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
// TenantInvite defines invite to tenant
type TenantInvite struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Secret is the secret part of the invite, typically part of the url
Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
// TargetTenant is the tenant id for which this invite was created
TargetTenant string `protobuf:"bytes,2,opt,name=target_tenant,json=targetTenant,proto3" json:"target_tenant,omitempty"`
// Role is the role in this tenant the user will get after accepting the invitation
Role TenantRole `protobuf:"varint,3,opt,name=role,proto3,enum=api.v1.TenantRole" json:"role,omitempty"`
// Joined is false as long as a user has not accepted the invite
Joined bool `protobuf:"varint,4,opt,name=joined,proto3" json:"joined,omitempty"`
// TargetTenantName is the tenant name for which this invite was created
TargetTenantName string `protobuf:"bytes,5,opt,name=target_tenant_name,json=targetTenantName,proto3" json:"target_tenant_name,omitempty"`
// Tenant is the login of tenant who invites to join this tenant
Tenant string `protobuf:"bytes,6,opt,name=tenant,proto3" json:"tenant,omitempty"`
// TenantName is the name of tenant who invites to join this tenant
TenantName string `protobuf:"bytes,7,opt,name=tenant_name,json=tenantName,proto3" json:"tenant_name,omitempty"`
// ExpiresAt the date when this invite expires
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
// JoinedAt the date when the member accepted this invite
JoinedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"`
}
func (x *TenantInvite) Reset() {
*x = TenantInvite{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TenantInvite) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantInvite) ProtoMessage() {}
func (x *TenantInvite) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TenantInvite.ProtoReflect.Descriptor instead.
func (*TenantInvite) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{2}
}
func (x *TenantInvite) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
func (x *TenantInvite) GetTargetTenant() string {
if x != nil {
return x.TargetTenant
}
return ""
}
func (x *TenantInvite) GetRole() TenantRole {
if x != nil {
return x.Role
}
return TenantRole_TENANT_ROLE_UNSPECIFIED
}
func (x *TenantInvite) GetJoined() bool {
if x != nil {
return x.Joined
}
return false
}
func (x *TenantInvite) GetTargetTenantName() string {
if x != nil {
return x.TargetTenantName
}
return ""
}
func (x *TenantInvite) GetTenant() string {
if x != nil {
return x.Tenant
}
return ""
}
func (x *TenantInvite) GetTenantName() string {
if x != nil {
return x.TenantName
}
return ""
}
func (x *TenantInvite) GetExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.ExpiresAt
}
return nil
}
func (x *TenantInvite) GetJoinedAt() *timestamppb.Timestamp {
if x != nil {
return x.JoinedAt
}
return nil
}
// PaymentDetails of a tenant
type PaymentDetails struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// CustomerId at the payment processor
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
// PaymentMethodId of the tenant at the payment processor
PaymentMethodId *string `protobuf:"bytes,2,opt,name=payment_method_id,json=paymentMethodId,proto3,oneof" json:"payment_method_id,omitempty"`
// SubscriptionId at the payment processor
SubscriptionId string `protobuf:"bytes,3,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
// Coupons a list of coupons the tenant has
Coupons []*Coupon `protobuf:"bytes,4,rep,name=coupons,proto3" json:"coupons,omitempty"`
// Vat which applies to this tenant
Vat string `protobuf:"bytes,5,opt,name=vat,proto3" json:"vat,omitempty"`
}
func (x *PaymentDetails) Reset() {
*x = PaymentDetails{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PaymentDetails) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PaymentDetails) ProtoMessage() {}
func (x *PaymentDetails) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PaymentDetails.ProtoReflect.Descriptor instead.
func (*PaymentDetails) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{3}
}
func (x *PaymentDetails) GetCustomerId() string {
if x != nil {
return x.CustomerId
}
return ""
}
func (x *PaymentDetails) GetPaymentMethodId() string {
if x != nil && x.PaymentMethodId != nil {
return *x.PaymentMethodId
}
return ""
}
func (x *PaymentDetails) GetSubscriptionId() string {
if x != nil {
return x.SubscriptionId
}
return ""
}
func (x *PaymentDetails) GetCoupons() []*Coupon {
if x != nil {
return x.Coupons
}
return nil
}
func (x *PaymentDetails) GetVat() string {
if x != nil {
return x.Vat
}
return ""
}
// PaymentDetailsUpdate is used to update PaymentDetails
type PaymentDetailsUpdate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// CustomerId at the payment processor
CustomerId *string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3,oneof" json:"customer_id,omitempty"`
// PaymentMethodId of the tenant at the payment processor
PaymentMethodId *string `protobuf:"bytes,2,opt,name=payment_method_id,json=paymentMethodId,proto3,oneof" json:"payment_method_id,omitempty"`
// SubscriptionId at the payment processor
SubscriptionId *string `protobuf:"bytes,3,opt,name=subscription_id,json=subscriptionId,proto3,oneof" json:"subscription_id,omitempty"`
// Vat which applies to this tenant
Vat *string `protobuf:"bytes,4,opt,name=vat,proto3,oneof" json:"vat,omitempty"`
}
func (x *PaymentDetailsUpdate) Reset() {
*x = PaymentDetailsUpdate{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PaymentDetailsUpdate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PaymentDetailsUpdate) ProtoMessage() {}
func (x *PaymentDetailsUpdate) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PaymentDetailsUpdate.ProtoReflect.Descriptor instead.
func (*PaymentDetailsUpdate) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{4}
}
func (x *PaymentDetailsUpdate) GetCustomerId() string {
if x != nil && x.CustomerId != nil {
return *x.CustomerId
}
return ""
}
func (x *PaymentDetailsUpdate) GetPaymentMethodId() string {
if x != nil && x.PaymentMethodId != nil {
return *x.PaymentMethodId
}
return ""
}
func (x *PaymentDetailsUpdate) GetSubscriptionId() string {
if x != nil && x.SubscriptionId != nil {
return *x.SubscriptionId
}
return ""
}
func (x *PaymentDetailsUpdate) GetVat() string {
if x != nil && x.Vat != nil {
return *x.Vat
}
return ""
}
// TermsAndConditions the tenant accepted
type TermsAndConditions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Accepted indicates if the tenant accepted the terms and conditions
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
// When is the date when the tenant accepted the terms and conditions
When *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=when,proto3" json:"when,omitempty"`
}
func (x *TermsAndConditions) Reset() {
*x = TermsAndConditions{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TermsAndConditions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TermsAndConditions) ProtoMessage() {}
func (x *TermsAndConditions) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TermsAndConditions.ProtoReflect.Descriptor instead.
func (*TermsAndConditions) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{5}
}
func (x *TermsAndConditions) GetAccepted() bool {
if x != nil {
return x.Accepted
}
return false
}
func (x *TermsAndConditions) GetWhen() *timestamppb.Timestamp {
if x != nil {
return x.When
}
return nil
}
// TermsAndConditionsUpdate
type TermsAndConditionsUpdate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Accepted indicates if the tenant accepted the terms and conditions
Accepted *bool `protobuf:"varint,1,opt,name=accepted,proto3,oneof" json:"accepted,omitempty"`
// When is the date when the tenant accepted the terms and conditions
When *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=when,proto3,oneof" json:"when,omitempty"`
}
func (x *TermsAndConditionsUpdate) Reset() {
*x = TermsAndConditionsUpdate{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TermsAndConditionsUpdate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TermsAndConditionsUpdate) ProtoMessage() {}
func (x *TermsAndConditionsUpdate) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TermsAndConditionsUpdate.ProtoReflect.Descriptor instead.
func (*TermsAndConditionsUpdate) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{6}
}
func (x *TermsAndConditionsUpdate) GetAccepted() bool {
if x != nil && x.Accepted != nil {
return *x.Accepted
}
return false
}
func (x *TermsAndConditionsUpdate) GetWhen() *timestamppb.Timestamp {
if x != nil {
return x.When
}
return nil
}
// TenantServiceListRequest is the request payload of the tenant list request
type TenantServiceListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Id filters tenants by id
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
// Name filters tenants by name
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
}
func (x *TenantServiceListRequest) Reset() {
*x = TenantServiceListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TenantServiceListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantServiceListRequest) ProtoMessage() {}
func (x *TenantServiceListRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TenantServiceListRequest.ProtoReflect.Descriptor instead.
func (*TenantServiceListRequest) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{7}
}
func (x *TenantServiceListRequest) GetId() string {
if x != nil && x.Id != nil {
return *x.Id
}
return ""
}
func (x *TenantServiceListRequest) GetName() string {
if x != nil && x.Name != nil {
return *x.Name
}
return ""
}
// TenantServiceGetRequest is the request payload of the tenant get request
type TenantServiceGetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Login of the tenant
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
}
func (x *TenantServiceGetRequest) Reset() {
*x = TenantServiceGetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TenantServiceGetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantServiceGetRequest) ProtoMessage() {}
func (x *TenantServiceGetRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TenantServiceGetRequest.ProtoReflect.Descriptor instead.
func (*TenantServiceGetRequest) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{8}
}
func (x *TenantServiceGetRequest) GetLogin() string {
if x != nil {
return x.Login
}
return ""
}
// TenantServiceCreateRequest is the request payload of the tenant create request
type TenantServiceCreateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of this tenant
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Description of this tenant
Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"`
// Email of the tenant, if not set will be inherited from the creator
Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
// AvatarUrl of the tenant
AvatarUrl *string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
// PhoneNumber of the tenant
PhoneNumber *string `protobuf:"bytes,5,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"`
}
func (x *TenantServiceCreateRequest) Reset() {
*x = TenantServiceCreateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TenantServiceCreateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantServiceCreateRequest) ProtoMessage() {}
func (x *TenantServiceCreateRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TenantServiceCreateRequest.ProtoReflect.Descriptor instead.
func (*TenantServiceCreateRequest) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{9}
}
func (x *TenantServiceCreateRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TenantServiceCreateRequest) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *TenantServiceCreateRequest) GetEmail() string {
if x != nil && x.Email != nil {
return *x.Email
}
return ""
}
func (x *TenantServiceCreateRequest) GetAvatarUrl() string {
if x != nil && x.AvatarUrl != nil {
return *x.AvatarUrl
}
return ""
}
func (x *TenantServiceCreateRequest) GetPhoneNumber() string {
if x != nil && x.PhoneNumber != nil {
return *x.PhoneNumber
}
return ""
}
// TenantServiceCreateOrUpdateRequest is the request payload of the tenant create or update request
type TenantServiceCreateOrUpdateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Tenant the tenant to create or update
Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
}
func (x *TenantServiceCreateOrUpdateRequest) Reset() {
*x = TenantServiceCreateOrUpdateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TenantServiceCreateOrUpdateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantServiceCreateOrUpdateRequest) ProtoMessage() {}
func (x *TenantServiceCreateOrUpdateRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TenantServiceCreateOrUpdateRequest.ProtoReflect.Descriptor instead.
func (*TenantServiceCreateOrUpdateRequest) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{10}
}
func (x *TenantServiceCreateOrUpdateRequest) GetTenant() *Tenant {
if x != nil {
return x.Tenant
}
return nil
}
// TenantServiceUpdateRequest is the request payload of the tenant update request
type TenantServiceUpdateRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Login of the tenant
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
// Name of the tenant
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
// Email of the tenant
Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
// Description of this tenant
Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
// AvatarUrl of the tenant
AvatarUrl *string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3,oneof" json:"avatar_url,omitempty"`
// PaymentDetails of the tenant
PaymentDetails *PaymentDetailsUpdate `protobuf:"bytes,8,opt,name=payment_details,json=paymentDetails,proto3,oneof" json:"payment_details,omitempty"`
// TermsAndConditions of the tenant
TermsAndConditions *TermsAndConditionsUpdate `protobuf:"bytes,9,opt,name=terms_and_conditions,json=termsAndConditions,proto3,oneof" json:"terms_and_conditions,omitempty"`
// Onboarded checks if the tenant was asked to be onboarded
Onboarded *bool `protobuf:"varint,13,opt,name=onboarded,proto3,oneof" json:"onboarded,omitempty"`
}
func (x *TenantServiceUpdateRequest) Reset() {
*x = TenantServiceUpdateRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_api_v1_tenant_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TenantServiceUpdateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantServiceUpdateRequest) ProtoMessage() {}
func (x *TenantServiceUpdateRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_v1_tenant_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TenantServiceUpdateRequest.ProtoReflect.Descriptor instead.
func (*TenantServiceUpdateRequest) Descriptor() ([]byte, []int) {
return file_api_v1_tenant_proto_rawDescGZIP(), []int{11}
}
func (x *TenantServiceUpdateRequest) GetLogin() string {
if x != nil {
return x.Login
}
return ""
}
func (x *TenantServiceUpdateRequest) GetName() string {
if x != nil && x.Name != nil {
return *x.Name
}
return ""
}
func (x *TenantServiceUpdateRequest) GetEmail() string {
if x != nil && x.Email != nil {
return *x.Email
}
return ""
}
func (x *TenantServiceUpdateRequest) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *TenantServiceUpdateRequest) GetAvatarUrl() string {
if x != nil && x.AvatarUrl != nil {