/
offers.pb.go
executable file
·1673 lines (1496 loc) · 66.7 KB
/
offers.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v3.21.12
// source: google/cloud/channel/v1/offers.proto
package channelpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
money "google.golang.org/genproto/googleapis/type/money"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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)
)
// Constraints type for Promotional offers.
type PromotionalOrderType int32
const (
// Not used.
PromotionalOrderType_PROMOTIONAL_TYPE_UNSPECIFIED PromotionalOrderType = 0
// Order used for new customers, trial conversions and upgrades.
PromotionalOrderType_NEW_UPGRADE PromotionalOrderType = 1
// All orders for transferring an existing customer.
PromotionalOrderType_TRANSFER PromotionalOrderType = 2
// Orders for modifying an existing customer's promotion on the same SKU.
PromotionalOrderType_PROMOTION_SWITCH PromotionalOrderType = 3
)
// Enum value maps for PromotionalOrderType.
var (
PromotionalOrderType_name = map[int32]string{
0: "PROMOTIONAL_TYPE_UNSPECIFIED",
1: "NEW_UPGRADE",
2: "TRANSFER",
3: "PROMOTION_SWITCH",
}
PromotionalOrderType_value = map[string]int32{
"PROMOTIONAL_TYPE_UNSPECIFIED": 0,
"NEW_UPGRADE": 1,
"TRANSFER": 2,
"PROMOTION_SWITCH": 3,
}
)
func (x PromotionalOrderType) Enum() *PromotionalOrderType {
p := new(PromotionalOrderType)
*p = x
return p
}
func (x PromotionalOrderType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PromotionalOrderType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_channel_v1_offers_proto_enumTypes[0].Descriptor()
}
func (PromotionalOrderType) Type() protoreflect.EnumType {
return &file_google_cloud_channel_v1_offers_proto_enumTypes[0]
}
func (x PromotionalOrderType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PromotionalOrderType.Descriptor instead.
func (PromotionalOrderType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{0}
}
// Describes how the reseller will be billed.
type PaymentPlan int32
const (
// Not used.
PaymentPlan_PAYMENT_PLAN_UNSPECIFIED PaymentPlan = 0
// Commitment.
PaymentPlan_COMMITMENT PaymentPlan = 1
// No commitment.
PaymentPlan_FLEXIBLE PaymentPlan = 2
// Free.
PaymentPlan_FREE PaymentPlan = 3
// Trial.
PaymentPlan_TRIAL PaymentPlan = 4
// Price and ordering not available through API.
PaymentPlan_OFFLINE PaymentPlan = 5
)
// Enum value maps for PaymentPlan.
var (
PaymentPlan_name = map[int32]string{
0: "PAYMENT_PLAN_UNSPECIFIED",
1: "COMMITMENT",
2: "FLEXIBLE",
3: "FREE",
4: "TRIAL",
5: "OFFLINE",
}
PaymentPlan_value = map[string]int32{
"PAYMENT_PLAN_UNSPECIFIED": 0,
"COMMITMENT": 1,
"FLEXIBLE": 2,
"FREE": 3,
"TRIAL": 4,
"OFFLINE": 5,
}
)
func (x PaymentPlan) Enum() *PaymentPlan {
p := new(PaymentPlan)
*p = x
return p
}
func (x PaymentPlan) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PaymentPlan) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_channel_v1_offers_proto_enumTypes[1].Descriptor()
}
func (PaymentPlan) Type() protoreflect.EnumType {
return &file_google_cloud_channel_v1_offers_proto_enumTypes[1]
}
func (x PaymentPlan) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PaymentPlan.Descriptor instead.
func (PaymentPlan) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{1}
}
// Specifies when the payment needs to happen.
type PaymentType int32
const (
// Not used.
PaymentType_PAYMENT_TYPE_UNSPECIFIED PaymentType = 0
// Prepay. Amount has to be paid before service is rendered.
PaymentType_PREPAY PaymentType = 1
// Postpay. Reseller is charged at the end of the Payment cycle.
PaymentType_POSTPAY PaymentType = 2
)
// Enum value maps for PaymentType.
var (
PaymentType_name = map[int32]string{
0: "PAYMENT_TYPE_UNSPECIFIED",
1: "PREPAY",
2: "POSTPAY",
}
PaymentType_value = map[string]int32{
"PAYMENT_TYPE_UNSPECIFIED": 0,
"PREPAY": 1,
"POSTPAY": 2,
}
)
func (x PaymentType) Enum() *PaymentType {
p := new(PaymentType)
*p = x
return p
}
func (x PaymentType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PaymentType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_channel_v1_offers_proto_enumTypes[2].Descriptor()
}
func (PaymentType) Type() protoreflect.EnumType {
return &file_google_cloud_channel_v1_offers_proto_enumTypes[2]
}
func (x PaymentType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PaymentType.Descriptor instead.
func (PaymentType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{2}
}
// Represents the type for a monetizable resource(any entity on which billing
// happens). For example, this could be MINUTES for Google Voice and GB for
// Google Drive. One SKU can map to multiple monetizable resources.
type ResourceType int32
const (
// Not used.
ResourceType_RESOURCE_TYPE_UNSPECIFIED ResourceType = 0
// Seat.
ResourceType_SEAT ResourceType = 1
// Monthly active user.
ResourceType_MAU ResourceType = 2
// GB (used for storage SKUs).
ResourceType_GB ResourceType = 3
// Active licensed users(for Voice SKUs).
ResourceType_LICENSED_USER ResourceType = 4
// Voice usage.
ResourceType_MINUTES ResourceType = 5
// For IaaS SKUs like Google Cloud, monetization is based on usage accrued on
// your billing account irrespective of the type of monetizable resource. This
// enum represents an aggregated resource/container for all usage SKUs on a
// billing account. Currently, only applicable to Google Cloud.
ResourceType_IAAS_USAGE ResourceType = 6
// For Google Cloud subscriptions like Anthos or SAP.
ResourceType_SUBSCRIPTION ResourceType = 7
)
// Enum value maps for ResourceType.
var (
ResourceType_name = map[int32]string{
0: "RESOURCE_TYPE_UNSPECIFIED",
1: "SEAT",
2: "MAU",
3: "GB",
4: "LICENSED_USER",
5: "MINUTES",
6: "IAAS_USAGE",
7: "SUBSCRIPTION",
}
ResourceType_value = map[string]int32{
"RESOURCE_TYPE_UNSPECIFIED": 0,
"SEAT": 1,
"MAU": 2,
"GB": 3,
"LICENSED_USER": 4,
"MINUTES": 5,
"IAAS_USAGE": 6,
"SUBSCRIPTION": 7,
}
)
func (x ResourceType) Enum() *ResourceType {
p := new(ResourceType)
*p = x
return p
}
func (x ResourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ResourceType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_channel_v1_offers_proto_enumTypes[3].Descriptor()
}
func (ResourceType) Type() protoreflect.EnumType {
return &file_google_cloud_channel_v1_offers_proto_enumTypes[3]
}
func (x ResourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ResourceType.Descriptor instead.
func (ResourceType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{3}
}
// Period Type.
type PeriodType int32
const (
// Not used.
PeriodType_PERIOD_TYPE_UNSPECIFIED PeriodType = 0
// Day.
PeriodType_DAY PeriodType = 1
// Month.
PeriodType_MONTH PeriodType = 2
// Year.
PeriodType_YEAR PeriodType = 3
)
// Enum value maps for PeriodType.
var (
PeriodType_name = map[int32]string{
0: "PERIOD_TYPE_UNSPECIFIED",
1: "DAY",
2: "MONTH",
3: "YEAR",
}
PeriodType_value = map[string]int32{
"PERIOD_TYPE_UNSPECIFIED": 0,
"DAY": 1,
"MONTH": 2,
"YEAR": 3,
}
)
func (x PeriodType) Enum() *PeriodType {
p := new(PeriodType)
*p = x
return p
}
func (x PeriodType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PeriodType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_channel_v1_offers_proto_enumTypes[4].Descriptor()
}
func (PeriodType) Type() protoreflect.EnumType {
return &file_google_cloud_channel_v1_offers_proto_enumTypes[4]
}
func (x PeriodType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PeriodType.Descriptor instead.
func (PeriodType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{4}
}
// Data type of the parameter.
type ParameterDefinition_ParameterType int32
const (
// Not used.
ParameterDefinition_PARAMETER_TYPE_UNSPECIFIED ParameterDefinition_ParameterType = 0
// Int64 type.
ParameterDefinition_INT64 ParameterDefinition_ParameterType = 1
// String type.
ParameterDefinition_STRING ParameterDefinition_ParameterType = 2
// Double type.
ParameterDefinition_DOUBLE ParameterDefinition_ParameterType = 3
)
// Enum value maps for ParameterDefinition_ParameterType.
var (
ParameterDefinition_ParameterType_name = map[int32]string{
0: "PARAMETER_TYPE_UNSPECIFIED",
1: "INT64",
2: "STRING",
3: "DOUBLE",
}
ParameterDefinition_ParameterType_value = map[string]int32{
"PARAMETER_TYPE_UNSPECIFIED": 0,
"INT64": 1,
"STRING": 2,
"DOUBLE": 3,
}
)
func (x ParameterDefinition_ParameterType) Enum() *ParameterDefinition_ParameterType {
p := new(ParameterDefinition_ParameterType)
*p = x
return p
}
func (x ParameterDefinition_ParameterType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ParameterDefinition_ParameterType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_channel_v1_offers_proto_enumTypes[5].Descriptor()
}
func (ParameterDefinition_ParameterType) Type() protoreflect.EnumType {
return &file_google_cloud_channel_v1_offers_proto_enumTypes[5]
}
func (x ParameterDefinition_ParameterType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ParameterDefinition_ParameterType.Descriptor instead.
func (ParameterDefinition_ParameterType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{1, 0}
}
// Represents an offer made to resellers for purchase.
// An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan
// for payment, a price, and defines the constraints for buying.
type Offer struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource Name of the Offer.
// Format: accounts/{account_id}/offers/{offer_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Marketing information for the Offer.
MarketingInfo *MarketingInfo `protobuf:"bytes,2,opt,name=marketing_info,json=marketingInfo,proto3" json:"marketing_info,omitempty"`
// SKU the offer is associated with.
Sku *Sku `protobuf:"bytes,3,opt,name=sku,proto3" json:"sku,omitempty"`
// Describes the payment plan for the Offer.
Plan *Plan `protobuf:"bytes,4,opt,name=plan,proto3" json:"plan,omitempty"`
// Constraints on transacting the Offer.
Constraints *Constraints `protobuf:"bytes,5,opt,name=constraints,proto3" json:"constraints,omitempty"`
// Price for each monetizable resource type.
PriceByResources []*PriceByResource `protobuf:"bytes,6,rep,name=price_by_resources,json=priceByResources,proto3" json:"price_by_resources,omitempty"`
// Start of the Offer validity time.
StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only. End of the Offer validity time.
EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Parameters required to use current Offer to purchase.
ParameterDefinitions []*ParameterDefinition `protobuf:"bytes,9,rep,name=parameter_definitions,json=parameterDefinitions,proto3" json:"parameter_definitions,omitempty"`
// The deal code of the offer to get a special promotion or discount.
DealCode string `protobuf:"bytes,12,opt,name=deal_code,json=dealCode,proto3" json:"deal_code,omitempty"`
}
func (x *Offer) Reset() {
*x = Offer{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Offer) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Offer) ProtoMessage() {}
func (x *Offer) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_channel_v1_offers_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 Offer.ProtoReflect.Descriptor instead.
func (*Offer) Descriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{0}
}
func (x *Offer) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Offer) GetMarketingInfo() *MarketingInfo {
if x != nil {
return x.MarketingInfo
}
return nil
}
func (x *Offer) GetSku() *Sku {
if x != nil {
return x.Sku
}
return nil
}
func (x *Offer) GetPlan() *Plan {
if x != nil {
return x.Plan
}
return nil
}
func (x *Offer) GetConstraints() *Constraints {
if x != nil {
return x.Constraints
}
return nil
}
func (x *Offer) GetPriceByResources() []*PriceByResource {
if x != nil {
return x.PriceByResources
}
return nil
}
func (x *Offer) GetStartTime() *timestamppb.Timestamp {
if x != nil {
return x.StartTime
}
return nil
}
func (x *Offer) GetEndTime() *timestamppb.Timestamp {
if x != nil {
return x.EndTime
}
return nil
}
func (x *Offer) GetParameterDefinitions() []*ParameterDefinition {
if x != nil {
return x.ParameterDefinitions
}
return nil
}
func (x *Offer) GetDealCode() string {
if x != nil {
return x.DealCode
}
return ""
}
// Parameter's definition. Specifies what parameter is required to use the
// current Offer to purchase.
type ParameterDefinition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the parameter.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Data type of the parameter. Minimal value, Maximum value and allowed values
// will use specified data type here.
ParameterType ParameterDefinition_ParameterType `protobuf:"varint,2,opt,name=parameter_type,json=parameterType,proto3,enum=google.cloud.channel.v1.ParameterDefinition_ParameterType" json:"parameter_type,omitempty"`
// Minimal value of the parameter, if applicable. Inclusive. For example,
// minimal commitment when purchasing Anthos is 0.01.
// Applicable to INT64 and DOUBLE parameter types.
MinValue *Value `protobuf:"bytes,3,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
// Maximum value of the parameter, if applicable. Inclusive. For example,
// maximum seats when purchasing Google Workspace Business Standard.
// Applicable to INT64 and DOUBLE parameter types.
MaxValue *Value `protobuf:"bytes,4,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
// If not empty, parameter values must be drawn from this list.
// For example, [us-west1, us-west2, ...]
// Applicable to STRING parameter type.
AllowedValues []*Value `protobuf:"bytes,5,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"`
// If set to true, parameter is optional to purchase this Offer.
Optional bool `protobuf:"varint,6,opt,name=optional,proto3" json:"optional,omitempty"`
}
func (x *ParameterDefinition) Reset() {
*x = ParameterDefinition{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ParameterDefinition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ParameterDefinition) ProtoMessage() {}
func (x *ParameterDefinition) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_channel_v1_offers_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 ParameterDefinition.ProtoReflect.Descriptor instead.
func (*ParameterDefinition) Descriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{1}
}
func (x *ParameterDefinition) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ParameterDefinition) GetParameterType() ParameterDefinition_ParameterType {
if x != nil {
return x.ParameterType
}
return ParameterDefinition_PARAMETER_TYPE_UNSPECIFIED
}
func (x *ParameterDefinition) GetMinValue() *Value {
if x != nil {
return x.MinValue
}
return nil
}
func (x *ParameterDefinition) GetMaxValue() *Value {
if x != nil {
return x.MaxValue
}
return nil
}
func (x *ParameterDefinition) GetAllowedValues() []*Value {
if x != nil {
return x.AllowedValues
}
return nil
}
func (x *ParameterDefinition) GetOptional() bool {
if x != nil {
return x.Optional
}
return false
}
// Represents the constraints for buying the Offer.
type Constraints struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Represents constraints required to purchase the Offer for a customer.
CustomerConstraints *CustomerConstraints `protobuf:"bytes,1,opt,name=customer_constraints,json=customerConstraints,proto3" json:"customer_constraints,omitempty"`
}
func (x *Constraints) Reset() {
*x = Constraints{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Constraints) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Constraints) ProtoMessage() {}
func (x *Constraints) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_channel_v1_offers_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 Constraints.ProtoReflect.Descriptor instead.
func (*Constraints) Descriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{2}
}
func (x *Constraints) GetCustomerConstraints() *CustomerConstraints {
if x != nil {
return x.CustomerConstraints
}
return nil
}
// Represents constraints required to purchase the Offer for a customer.
type CustomerConstraints struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Allowed geographical regions of the customer.
AllowedRegions []string `protobuf:"bytes,1,rep,name=allowed_regions,json=allowedRegions,proto3" json:"allowed_regions,omitempty"`
// Allowed Customer Type.
AllowedCustomerTypes []CloudIdentityInfo_CustomerType `protobuf:"varint,2,rep,packed,name=allowed_customer_types,json=allowedCustomerTypes,proto3,enum=google.cloud.channel.v1.CloudIdentityInfo_CustomerType" json:"allowed_customer_types,omitempty"`
// Allowed Promotional Order Type. Present for Promotional offers.
PromotionalOrderTypes []PromotionalOrderType `protobuf:"varint,3,rep,packed,name=promotional_order_types,json=promotionalOrderTypes,proto3,enum=google.cloud.channel.v1.PromotionalOrderType" json:"promotional_order_types,omitempty"`
}
func (x *CustomerConstraints) Reset() {
*x = CustomerConstraints{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomerConstraints) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomerConstraints) ProtoMessage() {}
func (x *CustomerConstraints) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_channel_v1_offers_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 CustomerConstraints.ProtoReflect.Descriptor instead.
func (*CustomerConstraints) Descriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{3}
}
func (x *CustomerConstraints) GetAllowedRegions() []string {
if x != nil {
return x.AllowedRegions
}
return nil
}
func (x *CustomerConstraints) GetAllowedCustomerTypes() []CloudIdentityInfo_CustomerType {
if x != nil {
return x.AllowedCustomerTypes
}
return nil
}
func (x *CustomerConstraints) GetPromotionalOrderTypes() []PromotionalOrderType {
if x != nil {
return x.PromotionalOrderTypes
}
return nil
}
// The payment plan for the Offer. Describes how to make a payment.
type Plan struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Describes how a reseller will be billed.
PaymentPlan PaymentPlan `protobuf:"varint,1,opt,name=payment_plan,json=paymentPlan,proto3,enum=google.cloud.channel.v1.PaymentPlan" json:"payment_plan,omitempty"`
// Specifies when the payment needs to happen.
PaymentType PaymentType `protobuf:"varint,2,opt,name=payment_type,json=paymentType,proto3,enum=google.cloud.channel.v1.PaymentType" json:"payment_type,omitempty"`
// Describes how frequently the reseller will be billed, such as
// once per month.
PaymentCycle *Period `protobuf:"bytes,3,opt,name=payment_cycle,json=paymentCycle,proto3" json:"payment_cycle,omitempty"`
// Present for Offers with a trial period.
// For trial-only Offers, a paid service needs to start before the trial
// period ends for continued service.
// For Regular Offers with a trial period, the regular pricing goes into
// effect when trial period ends, or if paid service is started before the end
// of the trial period.
TrialPeriod *Period `protobuf:"bytes,4,opt,name=trial_period,json=trialPeriod,proto3" json:"trial_period,omitempty"`
// Reseller Billing account to charge after an offer transaction.
// Only present for Google Cloud offers.
BillingAccount string `protobuf:"bytes,5,opt,name=billing_account,json=billingAccount,proto3" json:"billing_account,omitempty"`
}
func (x *Plan) Reset() {
*x = Plan{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Plan) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan) ProtoMessage() {}
func (x *Plan) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_channel_v1_offers_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 Plan.ProtoReflect.Descriptor instead.
func (*Plan) Descriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{4}
}
func (x *Plan) GetPaymentPlan() PaymentPlan {
if x != nil {
return x.PaymentPlan
}
return PaymentPlan_PAYMENT_PLAN_UNSPECIFIED
}
func (x *Plan) GetPaymentType() PaymentType {
if x != nil {
return x.PaymentType
}
return PaymentType_PAYMENT_TYPE_UNSPECIFIED
}
func (x *Plan) GetPaymentCycle() *Period {
if x != nil {
return x.PaymentCycle
}
return nil
}
func (x *Plan) GetTrialPeriod() *Period {
if x != nil {
return x.TrialPeriod
}
return nil
}
func (x *Plan) GetBillingAccount() string {
if x != nil {
return x.BillingAccount
}
return ""
}
// Represents price by resource type.
type PriceByResource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource Type. Example: SEAT
ResourceType ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=google.cloud.channel.v1.ResourceType" json:"resource_type,omitempty"`
// Price of the Offer. Present if there are no price phases.
Price *Price `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
// Specifies the price by time range.
PricePhases []*PricePhase `protobuf:"bytes,3,rep,name=price_phases,json=pricePhases,proto3" json:"price_phases,omitempty"`
}
func (x *PriceByResource) Reset() {
*x = PriceByResource{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PriceByResource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PriceByResource) ProtoMessage() {}
func (x *PriceByResource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_channel_v1_offers_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 PriceByResource.ProtoReflect.Descriptor instead.
func (*PriceByResource) Descriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{5}
}
func (x *PriceByResource) GetResourceType() ResourceType {
if x != nil {
return x.ResourceType
}
return ResourceType_RESOURCE_TYPE_UNSPECIFIED
}
func (x *PriceByResource) GetPrice() *Price {
if x != nil {
return x.Price
}
return nil
}
func (x *PriceByResource) GetPricePhases() []*PricePhase {
if x != nil {
return x.PricePhases
}
return nil
}
// Represents the price of the Offer.
type Price struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Base price.
BasePrice *money.Money `protobuf:"bytes,1,opt,name=base_price,json=basePrice,proto3" json:"base_price,omitempty"`
// Discount percentage, represented as decimal.
// For example, a 20% discount will be represent as 0.2.
Discount float64 `protobuf:"fixed64,2,opt,name=discount,proto3" json:"discount,omitempty"`
// Effective Price after applying the discounts.
EffectivePrice *money.Money `protobuf:"bytes,3,opt,name=effective_price,json=effectivePrice,proto3" json:"effective_price,omitempty"`
// Link to external price list, such as link to Google Voice rate card.
ExternalPriceUri string `protobuf:"bytes,4,opt,name=external_price_uri,json=externalPriceUri,proto3" json:"external_price_uri,omitempty"`
}
func (x *Price) Reset() {
*x = Price{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Price) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Price) ProtoMessage() {}
func (x *Price) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_channel_v1_offers_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 Price.ProtoReflect.Descriptor instead.
func (*Price) Descriptor() ([]byte, []int) {
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{6}
}
func (x *Price) GetBasePrice() *money.Money {
if x != nil {
return x.BasePrice
}
return nil
}
func (x *Price) GetDiscount() float64 {
if x != nil {
return x.Discount
}
return 0
}
func (x *Price) GetEffectivePrice() *money.Money {
if x != nil {
return x.EffectivePrice
}
return nil
}
func (x *Price) GetExternalPriceUri() string {
if x != nil {
return x.ExternalPriceUri
}
return ""
}
// Specifies the price by the duration of months.
// For example, a 20% discount for the first six months, then a 10% discount
// starting on the seventh month.
type PricePhase struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache