| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/channel/v1/offers.proto |
| 20 |
|
| 21 |
package channelpb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
money "google.golang.org/genproto/googleapis/type/money" |
| 26 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 27 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 28 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 29 |
reflect "reflect" |
| 30 |
sync "sync" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// Constraints type for Promotional offers. |
| 41 |
type PromotionalOrderType int32 |
| 42 |
|
| 43 |
const ( |
| 44 |
// Not used. |
| 45 |
PromotionalOrderType_PROMOTIONAL_TYPE_UNSPECIFIED PromotionalOrderType = 0 |
| 46 |
// Order used for new customers, trial conversions and upgrades. |
| 47 |
PromotionalOrderType_NEW_UPGRADE PromotionalOrderType = 1 |
| 48 |
// All orders for transferring an existing customer. |
| 49 |
PromotionalOrderType_TRANSFER PromotionalOrderType = 2 |
| 50 |
// Orders for modifying an existing customer's promotion on the same SKU. |
| 51 |
PromotionalOrderType_PROMOTION_SWITCH PromotionalOrderType = 3 |
| 52 |
) |
| 53 |
|
| 54 |
// Enum value maps for PromotionalOrderType. |
| 55 |
var ( |
| 56 |
PromotionalOrderType_name = map[int32]string{ |
| 57 |
0: "PROMOTIONAL_TYPE_UNSPECIFIED", |
| 58 |
1: "NEW_UPGRADE", |
| 59 |
2: "TRANSFER", |
| 60 |
3: "PROMOTION_SWITCH", |
| 61 |
} |
| 62 |
PromotionalOrderType_value = map[string]int32{ |
| 63 |
"PROMOTIONAL_TYPE_UNSPECIFIED": 0, |
| 64 |
"NEW_UPGRADE": 1, |
| 65 |
"TRANSFER": 2, |
| 66 |
"PROMOTION_SWITCH": 3, |
| 67 |
} |
| 68 |
) |
| 69 |
|
| 70 |
func (x PromotionalOrderType) Enum() *PromotionalOrderType { |
| 71 |
p := new(PromotionalOrderType) |
| 72 |
*p = x |
| 73 |
return p |
| 74 |
} |
| 75 |
|
| 76 |
func (x PromotionalOrderType) String() string { |
| 77 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 78 |
} |
| 79 |
|
| 80 |
func (PromotionalOrderType) Descriptor() protoreflect.EnumDescriptor { |
| 81 |
return file_google_cloud_channel_v1_offers_proto_enumTypes[0].Descriptor() |
| 82 |
} |
| 83 |
|
| 84 |
func (PromotionalOrderType) Type() protoreflect.EnumType { |
| 85 |
return &file_google_cloud_channel_v1_offers_proto_enumTypes[0] |
| 86 |
} |
| 87 |
|
| 88 |
func (x PromotionalOrderType) Number() protoreflect.EnumNumber { |
| 89 |
return protoreflect.EnumNumber(x) |
| 90 |
} |
| 91 |
|
| 92 |
// Deprecated: Use PromotionalOrderType.Descriptor instead. |
| 93 |
func (PromotionalOrderType) EnumDescriptor() ([]byte, []int) { |
| 94 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{0} |
| 95 |
} |
| 96 |
|
| 97 |
// Describes how the reseller will be billed. |
| 98 |
type PaymentPlan int32 |
| 99 |
|
| 100 |
const ( |
| 101 |
// Not used. |
| 102 |
PaymentPlan_PAYMENT_PLAN_UNSPECIFIED PaymentPlan = 0 |
| 103 |
// Commitment. |
| 104 |
PaymentPlan_COMMITMENT PaymentPlan = 1 |
| 105 |
// No commitment. |
| 106 |
PaymentPlan_FLEXIBLE PaymentPlan = 2 |
| 107 |
// Free. |
| 108 |
PaymentPlan_FREE PaymentPlan = 3 |
| 109 |
// Trial. |
| 110 |
PaymentPlan_TRIAL PaymentPlan = 4 |
| 111 |
// Price and ordering not available through API. |
| 112 |
PaymentPlan_OFFLINE PaymentPlan = 5 |
| 113 |
) |
| 114 |
|
| 115 |
// Enum value maps for PaymentPlan. |
| 116 |
var ( |
| 117 |
PaymentPlan_name = map[int32]string{ |
| 118 |
0: "PAYMENT_PLAN_UNSPECIFIED", |
| 119 |
1: "COMMITMENT", |
| 120 |
2: "FLEXIBLE", |
| 121 |
3: "FREE", |
| 122 |
4: "TRIAL", |
| 123 |
5: "OFFLINE", |
| 124 |
} |
| 125 |
PaymentPlan_value = map[string]int32{ |
| 126 |
"PAYMENT_PLAN_UNSPECIFIED": 0, |
| 127 |
"COMMITMENT": 1, |
| 128 |
"FLEXIBLE": 2, |
| 129 |
"FREE": 3, |
| 130 |
"TRIAL": 4, |
| 131 |
"OFFLINE": 5, |
| 132 |
} |
| 133 |
) |
| 134 |
|
| 135 |
func (x PaymentPlan) Enum() *PaymentPlan { |
| 136 |
p := new(PaymentPlan) |
| 137 |
*p = x |
| 138 |
return p |
| 139 |
} |
| 140 |
|
| 141 |
func (x PaymentPlan) String() string { |
| 142 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 143 |
} |
| 144 |
|
| 145 |
func (PaymentPlan) Descriptor() protoreflect.EnumDescriptor { |
| 146 |
return file_google_cloud_channel_v1_offers_proto_enumTypes[1].Descriptor() |
| 147 |
} |
| 148 |
|
| 149 |
func (PaymentPlan) Type() protoreflect.EnumType { |
| 150 |
return &file_google_cloud_channel_v1_offers_proto_enumTypes[1] |
| 151 |
} |
| 152 |
|
| 153 |
func (x PaymentPlan) Number() protoreflect.EnumNumber { |
| 154 |
return protoreflect.EnumNumber(x) |
| 155 |
} |
| 156 |
|
| 157 |
// Deprecated: Use PaymentPlan.Descriptor instead. |
| 158 |
func (PaymentPlan) EnumDescriptor() ([]byte, []int) { |
| 159 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{1} |
| 160 |
} |
| 161 |
|
| 162 |
// Specifies when the payment needs to happen. |
| 163 |
type PaymentType int32 |
| 164 |
|
| 165 |
const ( |
| 166 |
// Not used. |
| 167 |
PaymentType_PAYMENT_TYPE_UNSPECIFIED PaymentType = 0 |
| 168 |
// Prepay. Amount has to be paid before service is rendered. |
| 169 |
PaymentType_PREPAY PaymentType = 1 |
| 170 |
// Postpay. Reseller is charged at the end of the Payment cycle. |
| 171 |
PaymentType_POSTPAY PaymentType = 2 |
| 172 |
) |
| 173 |
|
| 174 |
// Enum value maps for PaymentType. |
| 175 |
var ( |
| 176 |
PaymentType_name = map[int32]string{ |
| 177 |
0: "PAYMENT_TYPE_UNSPECIFIED", |
| 178 |
1: "PREPAY", |
| 179 |
2: "POSTPAY", |
| 180 |
} |
| 181 |
PaymentType_value = map[string]int32{ |
| 182 |
"PAYMENT_TYPE_UNSPECIFIED": 0, |
| 183 |
"PREPAY": 1, |
| 184 |
"POSTPAY": 2, |
| 185 |
} |
| 186 |
) |
| 187 |
|
| 188 |
func (x PaymentType) Enum() *PaymentType { |
| 189 |
p := new(PaymentType) |
| 190 |
*p = x |
| 191 |
return p |
| 192 |
} |
| 193 |
|
| 194 |
func (x PaymentType) String() string { |
| 195 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 196 |
} |
| 197 |
|
| 198 |
func (PaymentType) Descriptor() protoreflect.EnumDescriptor { |
| 199 |
return file_google_cloud_channel_v1_offers_proto_enumTypes[2].Descriptor() |
| 200 |
} |
| 201 |
|
| 202 |
func (PaymentType) Type() protoreflect.EnumType { |
| 203 |
return &file_google_cloud_channel_v1_offers_proto_enumTypes[2] |
| 204 |
} |
| 205 |
|
| 206 |
func (x PaymentType) Number() protoreflect.EnumNumber { |
| 207 |
return protoreflect.EnumNumber(x) |
| 208 |
} |
| 209 |
|
| 210 |
// Deprecated: Use PaymentType.Descriptor instead. |
| 211 |
func (PaymentType) EnumDescriptor() ([]byte, []int) { |
| 212 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{2} |
| 213 |
} |
| 214 |
|
| 215 |
// Represents the type for a monetizable resource(any entity on which billing |
| 216 |
// happens). For example, this could be MINUTES for Google Voice and GB for |
| 217 |
// Google Drive. One SKU can map to multiple monetizable resources. |
| 218 |
type ResourceType int32 |
| 219 |
|
| 220 |
const ( |
| 221 |
// Not used. |
| 222 |
ResourceType_RESOURCE_TYPE_UNSPECIFIED ResourceType = 0 |
| 223 |
// Seat. |
| 224 |
ResourceType_SEAT ResourceType = 1 |
| 225 |
// Monthly active user. |
| 226 |
ResourceType_MAU ResourceType = 2 |
| 227 |
// GB (used for storage SKUs). |
| 228 |
ResourceType_GB ResourceType = 3 |
| 229 |
// Active licensed users(for Voice SKUs). |
| 230 |
ResourceType_LICENSED_USER ResourceType = 4 |
| 231 |
// Voice usage. |
| 232 |
ResourceType_MINUTES ResourceType = 5 |
| 233 |
// For IaaS SKUs like Google Cloud, monetization is based on usage accrued on |
| 234 |
// your billing account irrespective of the type of monetizable resource. This |
| 235 |
// enum represents an aggregated resource/container for all usage SKUs on a |
| 236 |
// billing account. Currently, only applicable to Google Cloud. |
| 237 |
ResourceType_IAAS_USAGE ResourceType = 6 |
| 238 |
// For Google Cloud subscriptions like Anthos or SAP. |
| 239 |
ResourceType_SUBSCRIPTION ResourceType = 7 |
| 240 |
) |
| 241 |
|
| 242 |
// Enum value maps for ResourceType. |
| 243 |
var ( |
| 244 |
ResourceType_name = map[int32]string{ |
| 245 |
0: "RESOURCE_TYPE_UNSPECIFIED", |
| 246 |
1: "SEAT", |
| 247 |
2: "MAU", |
| 248 |
3: "GB", |
| 249 |
4: "LICENSED_USER", |
| 250 |
5: "MINUTES", |
| 251 |
6: "IAAS_USAGE", |
| 252 |
7: "SUBSCRIPTION", |
| 253 |
} |
| 254 |
ResourceType_value = map[string]int32{ |
| 255 |
"RESOURCE_TYPE_UNSPECIFIED": 0, |
| 256 |
"SEAT": 1, |
| 257 |
"MAU": 2, |
| 258 |
"GB": 3, |
| 259 |
"LICENSED_USER": 4, |
| 260 |
"MINUTES": 5, |
| 261 |
"IAAS_USAGE": 6, |
| 262 |
"SUBSCRIPTION": 7, |
| 263 |
} |
| 264 |
) |
| 265 |
|
| 266 |
func (x ResourceType) Enum() *ResourceType { |
| 267 |
p := new(ResourceType) |
| 268 |
*p = x |
| 269 |
return p |
| 270 |
} |
| 271 |
|
| 272 |
func (x ResourceType) String() string { |
| 273 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 274 |
} |
| 275 |
|
| 276 |
func (ResourceType) Descriptor() protoreflect.EnumDescriptor { |
| 277 |
return file_google_cloud_channel_v1_offers_proto_enumTypes[3].Descriptor() |
| 278 |
} |
| 279 |
|
| 280 |
func (ResourceType) Type() protoreflect.EnumType { |
| 281 |
return &file_google_cloud_channel_v1_offers_proto_enumTypes[3] |
| 282 |
} |
| 283 |
|
| 284 |
func (x ResourceType) Number() protoreflect.EnumNumber { |
| 285 |
return protoreflect.EnumNumber(x) |
| 286 |
} |
| 287 |
|
| 288 |
// Deprecated: Use ResourceType.Descriptor instead. |
| 289 |
func (ResourceType) EnumDescriptor() ([]byte, []int) { |
| 290 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{3} |
| 291 |
} |
| 292 |
|
| 293 |
// Period Type. |
| 294 |
type PeriodType int32 |
| 295 |
|
| 296 |
const ( |
| 297 |
// Not used. |
| 298 |
PeriodType_PERIOD_TYPE_UNSPECIFIED PeriodType = 0 |
| 299 |
// Day. |
| 300 |
PeriodType_DAY PeriodType = 1 |
| 301 |
// Month. |
| 302 |
PeriodType_MONTH PeriodType = 2 |
| 303 |
// Year. |
| 304 |
PeriodType_YEAR PeriodType = 3 |
| 305 |
) |
| 306 |
|
| 307 |
// Enum value maps for PeriodType. |
| 308 |
var ( |
| 309 |
PeriodType_name = map[int32]string{ |
| 310 |
0: "PERIOD_TYPE_UNSPECIFIED", |
| 311 |
1: "DAY", |
| 312 |
2: "MONTH", |
| 313 |
3: "YEAR", |
| 314 |
} |
| 315 |
PeriodType_value = map[string]int32{ |
| 316 |
"PERIOD_TYPE_UNSPECIFIED": 0, |
| 317 |
"DAY": 1, |
| 318 |
"MONTH": 2, |
| 319 |
"YEAR": 3, |
| 320 |
} |
| 321 |
) |
| 322 |
|
| 323 |
func (x PeriodType) Enum() *PeriodType { |
| 324 |
p := new(PeriodType) |
| 325 |
*p = x |
| 326 |
return p |
| 327 |
} |
| 328 |
|
| 329 |
func (x PeriodType) String() string { |
| 330 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 331 |
} |
| 332 |
|
| 333 |
func (PeriodType) Descriptor() protoreflect.EnumDescriptor { |
| 334 |
return file_google_cloud_channel_v1_offers_proto_enumTypes[4].Descriptor() |
| 335 |
} |
| 336 |
|
| 337 |
func (PeriodType) Type() protoreflect.EnumType { |
| 338 |
return &file_google_cloud_channel_v1_offers_proto_enumTypes[4] |
| 339 |
} |
| 340 |
|
| 341 |
func (x PeriodType) Number() protoreflect.EnumNumber { |
| 342 |
return protoreflect.EnumNumber(x) |
| 343 |
} |
| 344 |
|
| 345 |
// Deprecated: Use PeriodType.Descriptor instead. |
| 346 |
func (PeriodType) EnumDescriptor() ([]byte, []int) { |
| 347 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{4} |
| 348 |
} |
| 349 |
|
| 350 |
// Data type of the parameter. |
| 351 |
type ParameterDefinition_ParameterType int32 |
| 352 |
|
| 353 |
const ( |
| 354 |
// Not used. |
| 355 |
ParameterDefinition_PARAMETER_TYPE_UNSPECIFIED ParameterDefinition_ParameterType = 0 |
| 356 |
// Int64 type. |
| 357 |
ParameterDefinition_INT64 ParameterDefinition_ParameterType = 1 |
| 358 |
// String type. |
| 359 |
ParameterDefinition_STRING ParameterDefinition_ParameterType = 2 |
| 360 |
// Double type. |
| 361 |
ParameterDefinition_DOUBLE ParameterDefinition_ParameterType = 3 |
| 362 |
// Boolean type. |
| 363 |
ParameterDefinition_BOOLEAN ParameterDefinition_ParameterType = 4 |
| 364 |
) |
| 365 |
|
| 366 |
// Enum value maps for ParameterDefinition_ParameterType. |
| 367 |
var ( |
| 368 |
ParameterDefinition_ParameterType_name = map[int32]string{ |
| 369 |
0: "PARAMETER_TYPE_UNSPECIFIED", |
| 370 |
1: "INT64", |
| 371 |
2: "STRING", |
| 372 |
3: "DOUBLE", |
| 373 |
4: "BOOLEAN", |
| 374 |
} |
| 375 |
ParameterDefinition_ParameterType_value = map[string]int32{ |
| 376 |
"PARAMETER_TYPE_UNSPECIFIED": 0, |
| 377 |
"INT64": 1, |
| 378 |
"STRING": 2, |
| 379 |
"DOUBLE": 3, |
| 380 |
"BOOLEAN": 4, |
| 381 |
} |
| 382 |
) |
| 383 |
|
| 384 |
func (x ParameterDefinition_ParameterType) Enum() *ParameterDefinition_ParameterType { |
| 385 |
p := new(ParameterDefinition_ParameterType) |
| 386 |
*p = x |
| 387 |
return p |
| 388 |
} |
| 389 |
|
| 390 |
func (x ParameterDefinition_ParameterType) String() string { |
| 391 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 392 |
} |
| 393 |
|
| 394 |
func (ParameterDefinition_ParameterType) Descriptor() protoreflect.EnumDescriptor { |
| 395 |
return file_google_cloud_channel_v1_offers_proto_enumTypes[5].Descriptor() |
| 396 |
} |
| 397 |
|
| 398 |
func (ParameterDefinition_ParameterType) Type() protoreflect.EnumType { |
| 399 |
return &file_google_cloud_channel_v1_offers_proto_enumTypes[5] |
| 400 |
} |
| 401 |
|
| 402 |
func (x ParameterDefinition_ParameterType) Number() protoreflect.EnumNumber { |
| 403 |
return protoreflect.EnumNumber(x) |
| 404 |
} |
| 405 |
|
| 406 |
// Deprecated: Use ParameterDefinition_ParameterType.Descriptor instead. |
| 407 |
func (ParameterDefinition_ParameterType) EnumDescriptor() ([]byte, []int) { |
| 408 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{1, 0} |
| 409 |
} |
| 410 |
|
| 411 |
// Represents an offer made to resellers for purchase. |
| 412 |
// An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan |
| 413 |
// for payment, a price, and defines the constraints for buying. |
| 414 |
type Offer struct { |
| 415 |
state protoimpl.MessageState |
| 416 |
sizeCache protoimpl.SizeCache |
| 417 |
unknownFields protoimpl.UnknownFields |
| 418 |
|
| 419 |
// Resource Name of the Offer. |
| 420 |
// Format: accounts/{account_id}/offers/{offer_id} |
| 421 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 422 |
// Marketing information for the Offer. |
| 423 |
MarketingInfo *MarketingInfo `protobuf:"bytes,2,opt,name=marketing_info,json=marketingInfo,proto3" json:"marketing_info,omitempty"` |
| 424 |
// SKU the offer is associated with. |
| 425 |
Sku *Sku `protobuf:"bytes,3,opt,name=sku,proto3" json:"sku,omitempty"` |
| 426 |
// Describes the payment plan for the Offer. |
| 427 |
Plan *Plan `protobuf:"bytes,4,opt,name=plan,proto3" json:"plan,omitempty"` |
| 428 |
// Constraints on transacting the Offer. |
| 429 |
Constraints *Constraints `protobuf:"bytes,5,opt,name=constraints,proto3" json:"constraints,omitempty"` |
| 430 |
// Price for each monetizable resource type. |
| 431 |
PriceByResources []*PriceByResource `protobuf:"bytes,6,rep,name=price_by_resources,json=priceByResources,proto3" json:"price_by_resources,omitempty"` |
| 432 |
// Start of the Offer validity time. |
| 433 |
StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` |
| 434 |
// Output only. End of the Offer validity time. |
| 435 |
EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` |
| 436 |
// Parameters required to use current Offer to purchase. |
| 437 |
ParameterDefinitions []*ParameterDefinition `protobuf:"bytes,9,rep,name=parameter_definitions,json=parameterDefinitions,proto3" json:"parameter_definitions,omitempty"` |
| 438 |
// The deal code of the offer to get a special promotion or discount. |
| 439 |
DealCode string `protobuf:"bytes,12,opt,name=deal_code,json=dealCode,proto3" json:"deal_code,omitempty"` |
| 440 |
} |
| 441 |
|
| 442 |
func (x *Offer) Reset() { |
| 443 |
*x = Offer{} |
| 444 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[0] |
| 445 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 446 |
ms.StoreMessageInfo(mi) |
| 447 |
} |
| 448 |
|
| 449 |
func (x *Offer) String() string { |
| 450 |
return protoimpl.X.MessageStringOf(x) |
| 451 |
} |
| 452 |
|
| 453 |
func (*Offer) ProtoMessage() {} |
| 454 |
|
| 455 |
func (x *Offer) ProtoReflect() protoreflect.Message { |
| 456 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[0] |
| 457 |
if x != nil { |
| 458 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 459 |
if ms.LoadMessageInfo() == nil { |
| 460 |
ms.StoreMessageInfo(mi) |
| 461 |
} |
| 462 |
return ms |
| 463 |
} |
| 464 |
return mi.MessageOf(x) |
| 465 |
} |
| 466 |
|
| 467 |
// Deprecated: Use Offer.ProtoReflect.Descriptor instead. |
| 468 |
func (*Offer) Descriptor() ([]byte, []int) { |
| 469 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{0} |
| 470 |
} |
| 471 |
|
| 472 |
func (x *Offer) GetName() string { |
| 473 |
if x != nil { |
| 474 |
return x.Name |
| 475 |
} |
| 476 |
return "" |
| 477 |
} |
| 478 |
|
| 479 |
func (x *Offer) GetMarketingInfo() *MarketingInfo { |
| 480 |
if x != nil { |
| 481 |
return x.MarketingInfo |
| 482 |
} |
| 483 |
return nil |
| 484 |
} |
| 485 |
|
| 486 |
func (x *Offer) GetSku() *Sku { |
| 487 |
if x != nil { |
| 488 |
return x.Sku |
| 489 |
} |
| 490 |
return nil |
| 491 |
} |
| 492 |
|
| 493 |
func (x *Offer) GetPlan() *Plan { |
| 494 |
if x != nil { |
| 495 |
return x.Plan |
| 496 |
} |
| 497 |
return nil |
| 498 |
} |
| 499 |
|
| 500 |
func (x *Offer) GetConstraints() *Constraints { |
| 501 |
if x != nil { |
| 502 |
return x.Constraints |
| 503 |
} |
| 504 |
return nil |
| 505 |
} |
| 506 |
|
| 507 |
func (x *Offer) GetPriceByResources() []*PriceByResource { |
| 508 |
if x != nil { |
| 509 |
return x.PriceByResources |
| 510 |
} |
| 511 |
return nil |
| 512 |
} |
| 513 |
|
| 514 |
func (x *Offer) GetStartTime() *timestamppb.Timestamp { |
| 515 |
if x != nil { |
| 516 |
return x.StartTime |
| 517 |
} |
| 518 |
return nil |
| 519 |
} |
| 520 |
|
| 521 |
func (x *Offer) GetEndTime() *timestamppb.Timestamp { |
| 522 |
if x != nil { |
| 523 |
return x.EndTime |
| 524 |
} |
| 525 |
return nil |
| 526 |
} |
| 527 |
|
| 528 |
func (x *Offer) GetParameterDefinitions() []*ParameterDefinition { |
| 529 |
if x != nil { |
| 530 |
return x.ParameterDefinitions |
| 531 |
} |
| 532 |
return nil |
| 533 |
} |
| 534 |
|
| 535 |
func (x *Offer) GetDealCode() string { |
| 536 |
if x != nil { |
| 537 |
return x.DealCode |
| 538 |
} |
| 539 |
return "" |
| 540 |
} |
| 541 |
|
| 542 |
// Parameter's definition. Specifies what parameter is required to use the |
| 543 |
// current Offer to purchase. |
| 544 |
type ParameterDefinition struct { |
| 545 |
state protoimpl.MessageState |
| 546 |
sizeCache protoimpl.SizeCache |
| 547 |
unknownFields protoimpl.UnknownFields |
| 548 |
|
| 549 |
// Name of the parameter. |
| 550 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 551 |
// Data type of the parameter. Minimal value, Maximum value and allowed values |
| 552 |
// will use specified data type here. |
| 553 |
ParameterType ParameterDefinition_ParameterType `protobuf:"varint,2,opt,name=parameter_type,json=parameterType,proto3,enum=google.cloud.channel.v1.ParameterDefinition_ParameterType" json:"parameter_type,omitempty"` |
| 554 |
// Minimal value of the parameter, if applicable. Inclusive. For example, |
| 555 |
// minimal commitment when purchasing Anthos is 0.01. |
| 556 |
// Applicable to INT64 and DOUBLE parameter types. |
| 557 |
MinValue *Value `protobuf:"bytes,3,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` |
| 558 |
// Maximum value of the parameter, if applicable. Inclusive. For example, |
| 559 |
// maximum seats when purchasing Google Workspace Business Standard. |
| 560 |
// Applicable to INT64 and DOUBLE parameter types. |
| 561 |
MaxValue *Value `protobuf:"bytes,4,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` |
| 562 |
// If not empty, parameter values must be drawn from this list. |
| 563 |
// For example, [us-west1, us-west2, ...] |
| 564 |
// Applicable to STRING parameter type. |
| 565 |
AllowedValues []*Value `protobuf:"bytes,5,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` |
| 566 |
// If set to true, parameter is optional to purchase this Offer. |
| 567 |
Optional bool `protobuf:"varint,6,opt,name=optional,proto3" json:"optional,omitempty"` |
| 568 |
} |
| 569 |
|
| 570 |
func (x *ParameterDefinition) Reset() { |
| 571 |
*x = ParameterDefinition{} |
| 572 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[1] |
| 573 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 574 |
ms.StoreMessageInfo(mi) |
| 575 |
} |
| 576 |
|
| 577 |
func (x *ParameterDefinition) String() string { |
| 578 |
return protoimpl.X.MessageStringOf(x) |
| 579 |
} |
| 580 |
|
| 581 |
func (*ParameterDefinition) ProtoMessage() {} |
| 582 |
|
| 583 |
func (x *ParameterDefinition) ProtoReflect() protoreflect.Message { |
| 584 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[1] |
| 585 |
if x != nil { |
| 586 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 587 |
if ms.LoadMessageInfo() == nil { |
| 588 |
ms.StoreMessageInfo(mi) |
| 589 |
} |
| 590 |
return ms |
| 591 |
} |
| 592 |
return mi.MessageOf(x) |
| 593 |
} |
| 594 |
|
| 595 |
// Deprecated: Use ParameterDefinition.ProtoReflect.Descriptor instead. |
| 596 |
func (*ParameterDefinition) Descriptor() ([]byte, []int) { |
| 597 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{1} |
| 598 |
} |
| 599 |
|
| 600 |
func (x *ParameterDefinition) GetName() string { |
| 601 |
if x != nil { |
| 602 |
return x.Name |
| 603 |
} |
| 604 |
return "" |
| 605 |
} |
| 606 |
|
| 607 |
func (x *ParameterDefinition) GetParameterType() ParameterDefinition_ParameterType { |
| 608 |
if x != nil { |
| 609 |
return x.ParameterType |
| 610 |
} |
| 611 |
return ParameterDefinition_PARAMETER_TYPE_UNSPECIFIED |
| 612 |
} |
| 613 |
|
| 614 |
func (x *ParameterDefinition) GetMinValue() *Value { |
| 615 |
if x != nil { |
| 616 |
return x.MinValue |
| 617 |
} |
| 618 |
return nil |
| 619 |
} |
| 620 |
|
| 621 |
func (x *ParameterDefinition) GetMaxValue() *Value { |
| 622 |
if x != nil { |
| 623 |
return x.MaxValue |
| 624 |
} |
| 625 |
return nil |
| 626 |
} |
| 627 |
|
| 628 |
func (x *ParameterDefinition) GetAllowedValues() []*Value { |
| 629 |
if x != nil { |
| 630 |
return x.AllowedValues |
| 631 |
} |
| 632 |
return nil |
| 633 |
} |
| 634 |
|
| 635 |
func (x *ParameterDefinition) GetOptional() bool { |
| 636 |
if x != nil { |
| 637 |
return x.Optional |
| 638 |
} |
| 639 |
return false |
| 640 |
} |
| 641 |
|
| 642 |
// Represents the constraints for buying the Offer. |
| 643 |
type Constraints struct { |
| 644 |
state protoimpl.MessageState |
| 645 |
sizeCache protoimpl.SizeCache |
| 646 |
unknownFields protoimpl.UnknownFields |
| 647 |
|
| 648 |
// Represents constraints required to purchase the Offer for a customer. |
| 649 |
CustomerConstraints *CustomerConstraints `protobuf:"bytes,1,opt,name=customer_constraints,json=customerConstraints,proto3" json:"customer_constraints,omitempty"` |
| 650 |
} |
| 651 |
|
| 652 |
func (x *Constraints) Reset() { |
| 653 |
*x = Constraints{} |
| 654 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[2] |
| 655 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 656 |
ms.StoreMessageInfo(mi) |
| 657 |
} |
| 658 |
|
| 659 |
func (x *Constraints) String() string { |
| 660 |
return protoimpl.X.MessageStringOf(x) |
| 661 |
} |
| 662 |
|
| 663 |
func (*Constraints) ProtoMessage() {} |
| 664 |
|
| 665 |
func (x *Constraints) ProtoReflect() protoreflect.Message { |
| 666 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[2] |
| 667 |
if x != nil { |
| 668 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 669 |
if ms.LoadMessageInfo() == nil { |
| 670 |
ms.StoreMessageInfo(mi) |
| 671 |
} |
| 672 |
return ms |
| 673 |
} |
| 674 |
return mi.MessageOf(x) |
| 675 |
} |
| 676 |
|
| 677 |
// Deprecated: Use Constraints.ProtoReflect.Descriptor instead. |
| 678 |
func (*Constraints) Descriptor() ([]byte, []int) { |
| 679 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{2} |
| 680 |
} |
| 681 |
|
| 682 |
func (x *Constraints) GetCustomerConstraints() *CustomerConstraints { |
| 683 |
if x != nil { |
| 684 |
return x.CustomerConstraints |
| 685 |
} |
| 686 |
return nil |
| 687 |
} |
| 688 |
|
| 689 |
// Represents constraints required to purchase the Offer for a customer. |
| 690 |
type CustomerConstraints struct { |
| 691 |
state protoimpl.MessageState |
| 692 |
sizeCache protoimpl.SizeCache |
| 693 |
unknownFields protoimpl.UnknownFields |
| 694 |
|
| 695 |
// Allowed geographical regions of the customer. |
| 696 |
AllowedRegions []string `protobuf:"bytes,1,rep,name=allowed_regions,json=allowedRegions,proto3" json:"allowed_regions,omitempty"` |
| 697 |
// Allowed Customer Type. |
| 698 |
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"` |
| 699 |
// Allowed Promotional Order Type. Present for Promotional offers. |
| 700 |
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"` |
| 701 |
} |
| 702 |
|
| 703 |
func (x *CustomerConstraints) Reset() { |
| 704 |
*x = CustomerConstraints{} |
| 705 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[3] |
| 706 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 707 |
ms.StoreMessageInfo(mi) |
| 708 |
} |
| 709 |
|
| 710 |
func (x *CustomerConstraints) String() string { |
| 711 |
return protoimpl.X.MessageStringOf(x) |
| 712 |
} |
| 713 |
|
| 714 |
func (*CustomerConstraints) ProtoMessage() {} |
| 715 |
|
| 716 |
func (x *CustomerConstraints) ProtoReflect() protoreflect.Message { |
| 717 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[3] |
| 718 |
if x != nil { |
| 719 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 720 |
if ms.LoadMessageInfo() == nil { |
| 721 |
ms.StoreMessageInfo(mi) |
| 722 |
} |
| 723 |
return ms |
| 724 |
} |
| 725 |
return mi.MessageOf(x) |
| 726 |
} |
| 727 |
|
| 728 |
// Deprecated: Use CustomerConstraints.ProtoReflect.Descriptor instead. |
| 729 |
func (*CustomerConstraints) Descriptor() ([]byte, []int) { |
| 730 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{3} |
| 731 |
} |
| 732 |
|
| 733 |
func (x *CustomerConstraints) GetAllowedRegions() []string { |
| 734 |
if x != nil { |
| 735 |
return x.AllowedRegions |
| 736 |
} |
| 737 |
return nil |
| 738 |
} |
| 739 |
|
| 740 |
func (x *CustomerConstraints) GetAllowedCustomerTypes() []CloudIdentityInfo_CustomerType { |
| 741 |
if x != nil { |
| 742 |
return x.AllowedCustomerTypes |
| 743 |
} |
| 744 |
return nil |
| 745 |
} |
| 746 |
|
| 747 |
func (x *CustomerConstraints) GetPromotionalOrderTypes() []PromotionalOrderType { |
| 748 |
if x != nil { |
| 749 |
return x.PromotionalOrderTypes |
| 750 |
} |
| 751 |
return nil |
| 752 |
} |
| 753 |
|
| 754 |
// The payment plan for the Offer. Describes how to make a payment. |
| 755 |
type Plan struct { |
| 756 |
state protoimpl.MessageState |
| 757 |
sizeCache protoimpl.SizeCache |
| 758 |
unknownFields protoimpl.UnknownFields |
| 759 |
|
| 760 |
// Describes how a reseller will be billed. |
| 761 |
PaymentPlan PaymentPlan `protobuf:"varint,1,opt,name=payment_plan,json=paymentPlan,proto3,enum=google.cloud.channel.v1.PaymentPlan" json:"payment_plan,omitempty"` |
| 762 |
// Specifies when the payment needs to happen. |
| 763 |
PaymentType PaymentType `protobuf:"varint,2,opt,name=payment_type,json=paymentType,proto3,enum=google.cloud.channel.v1.PaymentType" json:"payment_type,omitempty"` |
| 764 |
// Describes how frequently the reseller will be billed, such as |
| 765 |
// once per month. |
| 766 |
PaymentCycle *Period `protobuf:"bytes,3,opt,name=payment_cycle,json=paymentCycle,proto3" json:"payment_cycle,omitempty"` |
| 767 |
// Present for Offers with a trial period. |
| 768 |
// For trial-only Offers, a paid service needs to start before the trial |
| 769 |
// period ends for continued service. |
| 770 |
// For Regular Offers with a trial period, the regular pricing goes into |
| 771 |
// effect when trial period ends, or if paid service is started before the end |
| 772 |
// of the trial period. |
| 773 |
TrialPeriod *Period `protobuf:"bytes,4,opt,name=trial_period,json=trialPeriod,proto3" json:"trial_period,omitempty"` |
| 774 |
// Reseller Billing account to charge after an offer transaction. |
| 775 |
// Only present for Google Cloud offers. |
| 776 |
BillingAccount string `protobuf:"bytes,5,opt,name=billing_account,json=billingAccount,proto3" json:"billing_account,omitempty"` |
| 777 |
} |
| 778 |
|
| 779 |
func (x *Plan) Reset() { |
| 780 |
*x = Plan{} |
| 781 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[4] |
| 782 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 783 |
ms.StoreMessageInfo(mi) |
| 784 |
} |
| 785 |
|
| 786 |
func (x *Plan) String() string { |
| 787 |
return protoimpl.X.MessageStringOf(x) |
| 788 |
} |
| 789 |
|
| 790 |
func (*Plan) ProtoMessage() {} |
| 791 |
|
| 792 |
func (x *Plan) ProtoReflect() protoreflect.Message { |
| 793 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[4] |
| 794 |
if x != nil { |
| 795 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 796 |
if ms.LoadMessageInfo() == nil { |
| 797 |
ms.StoreMessageInfo(mi) |
| 798 |
} |
| 799 |
return ms |
| 800 |
} |
| 801 |
return mi.MessageOf(x) |
| 802 |
} |
| 803 |
|
| 804 |
// Deprecated: Use Plan.ProtoReflect.Descriptor instead. |
| 805 |
func (*Plan) Descriptor() ([]byte, []int) { |
| 806 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{4} |
| 807 |
} |
| 808 |
|
| 809 |
func (x *Plan) GetPaymentPlan() PaymentPlan { |
| 810 |
if x != nil { |
| 811 |
return x.PaymentPlan |
| 812 |
} |
| 813 |
return PaymentPlan_PAYMENT_PLAN_UNSPECIFIED |
| 814 |
} |
| 815 |
|
| 816 |
func (x *Plan) GetPaymentType() PaymentType { |
| 817 |
if x != nil { |
| 818 |
return x.PaymentType |
| 819 |
} |
| 820 |
return PaymentType_PAYMENT_TYPE_UNSPECIFIED |
| 821 |
} |
| 822 |
|
| 823 |
func (x *Plan) GetPaymentCycle() *Period { |
| 824 |
if x != nil { |
| 825 |
return x.PaymentCycle |
| 826 |
} |
| 827 |
return nil |
| 828 |
} |
| 829 |
|
| 830 |
func (x *Plan) GetTrialPeriod() *Period { |
| 831 |
if x != nil { |
| 832 |
return x.TrialPeriod |
| 833 |
} |
| 834 |
return nil |
| 835 |
} |
| 836 |
|
| 837 |
func (x *Plan) GetBillingAccount() string { |
| 838 |
if x != nil { |
| 839 |
return x.BillingAccount |
| 840 |
} |
| 841 |
return "" |
| 842 |
} |
| 843 |
|
| 844 |
// Represents price by resource type. |
| 845 |
type PriceByResource struct { |
| 846 |
state protoimpl.MessageState |
| 847 |
sizeCache protoimpl.SizeCache |
| 848 |
unknownFields protoimpl.UnknownFields |
| 849 |
|
| 850 |
// Resource Type. Example: SEAT |
| 851 |
ResourceType ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=google.cloud.channel.v1.ResourceType" json:"resource_type,omitempty"` |
| 852 |
// Price of the Offer. Present if there are no price phases. |
| 853 |
Price *Price `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` |
| 854 |
// Specifies the price by time range. |
| 855 |
PricePhases []*PricePhase `protobuf:"bytes,3,rep,name=price_phases,json=pricePhases,proto3" json:"price_phases,omitempty"` |
| 856 |
} |
| 857 |
|
| 858 |
func (x *PriceByResource) Reset() { |
| 859 |
*x = PriceByResource{} |
| 860 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[5] |
| 861 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 862 |
ms.StoreMessageInfo(mi) |
| 863 |
} |
| 864 |
|
| 865 |
func (x *PriceByResource) String() string { |
| 866 |
return protoimpl.X.MessageStringOf(x) |
| 867 |
} |
| 868 |
|
| 869 |
func (*PriceByResource) ProtoMessage() {} |
| 870 |
|
| 871 |
func (x *PriceByResource) ProtoReflect() protoreflect.Message { |
| 872 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[5] |
| 873 |
if x != nil { |
| 874 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 875 |
if ms.LoadMessageInfo() == nil { |
| 876 |
ms.StoreMessageInfo(mi) |
| 877 |
} |
| 878 |
return ms |
| 879 |
} |
| 880 |
return mi.MessageOf(x) |
| 881 |
} |
| 882 |
|
| 883 |
// Deprecated: Use PriceByResource.ProtoReflect.Descriptor instead. |
| 884 |
func (*PriceByResource) Descriptor() ([]byte, []int) { |
| 885 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{5} |
| 886 |
} |
| 887 |
|
| 888 |
func (x *PriceByResource) GetResourceType() ResourceType { |
| 889 |
if x != nil { |
| 890 |
return x.ResourceType |
| 891 |
} |
| 892 |
return ResourceType_RESOURCE_TYPE_UNSPECIFIED |
| 893 |
} |
| 894 |
|
| 895 |
func (x *PriceByResource) GetPrice() *Price { |
| 896 |
if x != nil { |
| 897 |
return x.Price |
| 898 |
} |
| 899 |
return nil |
| 900 |
} |
| 901 |
|
| 902 |
func (x *PriceByResource) GetPricePhases() []*PricePhase { |
| 903 |
if x != nil { |
| 904 |
return x.PricePhases |
| 905 |
} |
| 906 |
return nil |
| 907 |
} |
| 908 |
|
| 909 |
// Represents the price of the Offer. |
| 910 |
type Price struct { |
| 911 |
state protoimpl.MessageState |
| 912 |
sizeCache protoimpl.SizeCache |
| 913 |
unknownFields protoimpl.UnknownFields |
| 914 |
|
| 915 |
// Base price. |
| 916 |
BasePrice *money.Money `protobuf:"bytes,1,opt,name=base_price,json=basePrice,proto3" json:"base_price,omitempty"` |
| 917 |
// Discount percentage, represented as decimal. |
| 918 |
// For example, a 20% discount will be represent as 0.2. |
| 919 |
Discount float64 `protobuf:"fixed64,2,opt,name=discount,proto3" json:"discount,omitempty"` |
| 920 |
// Effective Price after applying the discounts. |
| 921 |
EffectivePrice *money.Money `protobuf:"bytes,3,opt,name=effective_price,json=effectivePrice,proto3" json:"effective_price,omitempty"` |
| 922 |
// Link to external price list, such as link to Google Voice rate card. |
| 923 |
ExternalPriceUri string `protobuf:"bytes,4,opt,name=external_price_uri,json=externalPriceUri,proto3" json:"external_price_uri,omitempty"` |
| 924 |
} |
| 925 |
|
| 926 |
func (x *Price) Reset() { |
| 927 |
*x = Price{} |
| 928 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[6] |
| 929 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 930 |
ms.StoreMessageInfo(mi) |
| 931 |
} |
| 932 |
|
| 933 |
func (x *Price) String() string { |
| 934 |
return protoimpl.X.MessageStringOf(x) |
| 935 |
} |
| 936 |
|
| 937 |
func (*Price) ProtoMessage() {} |
| 938 |
|
| 939 |
func (x *Price) ProtoReflect() protoreflect.Message { |
| 940 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[6] |
| 941 |
if x != nil { |
| 942 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 943 |
if ms.LoadMessageInfo() == nil { |
| 944 |
ms.StoreMessageInfo(mi) |
| 945 |
} |
| 946 |
return ms |
| 947 |
} |
| 948 |
return mi.MessageOf(x) |
| 949 |
} |
| 950 |
|
| 951 |
// Deprecated: Use Price.ProtoReflect.Descriptor instead. |
| 952 |
func (*Price) Descriptor() ([]byte, []int) { |
| 953 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{6} |
| 954 |
} |
| 955 |
|
| 956 |
func (x *Price) GetBasePrice() *money.Money { |
| 957 |
if x != nil { |
| 958 |
return x.BasePrice |
| 959 |
} |
| 960 |
return nil |
| 961 |
} |
| 962 |
|
| 963 |
func (x *Price) GetDiscount() float64 { |
| 964 |
if x != nil { |
| 965 |
return x.Discount |
| 966 |
} |
| 967 |
return 0 |
| 968 |
} |
| 969 |
|
| 970 |
func (x *Price) GetEffectivePrice() *money.Money { |
| 971 |
if x != nil { |
| 972 |
return x.EffectivePrice |
| 973 |
} |
| 974 |
return nil |
| 975 |
} |
| 976 |
|
| 977 |
func (x *Price) GetExternalPriceUri() string { |
| 978 |
if x != nil { |
| 979 |
return x.ExternalPriceUri |
| 980 |
} |
| 981 |
return "" |
| 982 |
} |
| 983 |
|
| 984 |
// Specifies the price by the duration of months. |
| 985 |
// For example, a 20% discount for the first six months, then a 10% discount |
| 986 |
// starting on the seventh month. |
| 987 |
type PricePhase struct { |
| 988 |
state protoimpl.MessageState |
| 989 |
sizeCache protoimpl.SizeCache |
| 990 |
unknownFields protoimpl.UnknownFields |
| 991 |
|
| 992 |
// Defines the phase period type. |
| 993 |
PeriodType PeriodType `protobuf:"varint,1,opt,name=period_type,json=periodType,proto3,enum=google.cloud.channel.v1.PeriodType" json:"period_type,omitempty"` |
| 994 |
// Defines first period for the phase. |
| 995 |
FirstPeriod int32 `protobuf:"varint,2,opt,name=first_period,json=firstPeriod,proto3" json:"first_period,omitempty"` |
| 996 |
// Defines first period for the phase. |
| 997 |
LastPeriod int32 `protobuf:"varint,3,opt,name=last_period,json=lastPeriod,proto3" json:"last_period,omitempty"` |
| 998 |
// Price of the phase. Present if there are no price tiers. |
| 999 |
Price *Price `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` |
| 1000 |
// Price by the resource tiers. |
| 1001 |
PriceTiers []*PriceTier `protobuf:"bytes,5,rep,name=price_tiers,json=priceTiers,proto3" json:"price_tiers,omitempty"` |
| 1002 |
} |
| 1003 |
|
| 1004 |
func (x *PricePhase) Reset() { |
| 1005 |
*x = PricePhase{} |
| 1006 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[7] |
| 1007 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1008 |
ms.StoreMessageInfo(mi) |
| 1009 |
} |
| 1010 |
|
| 1011 |
func (x *PricePhase) String() string { |
| 1012 |
return protoimpl.X.MessageStringOf(x) |
| 1013 |
} |
| 1014 |
|
| 1015 |
func (*PricePhase) ProtoMessage() {} |
| 1016 |
|
| 1017 |
func (x *PricePhase) ProtoReflect() protoreflect.Message { |
| 1018 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[7] |
| 1019 |
if x != nil { |
| 1020 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1021 |
if ms.LoadMessageInfo() == nil { |
| 1022 |
ms.StoreMessageInfo(mi) |
| 1023 |
} |
| 1024 |
return ms |
| 1025 |
} |
| 1026 |
return mi.MessageOf(x) |
| 1027 |
} |
| 1028 |
|
| 1029 |
// Deprecated: Use PricePhase.ProtoReflect.Descriptor instead. |
| 1030 |
func (*PricePhase) Descriptor() ([]byte, []int) { |
| 1031 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{7} |
| 1032 |
} |
| 1033 |
|
| 1034 |
func (x *PricePhase) GetPeriodType() PeriodType { |
| 1035 |
if x != nil { |
| 1036 |
return x.PeriodType |
| 1037 |
} |
| 1038 |
return PeriodType_PERIOD_TYPE_UNSPECIFIED |
| 1039 |
} |
| 1040 |
|
| 1041 |
func (x *PricePhase) GetFirstPeriod() int32 { |
| 1042 |
if x != nil { |
| 1043 |
return x.FirstPeriod |
| 1044 |
} |
| 1045 |
return 0 |
| 1046 |
} |
| 1047 |
|
| 1048 |
func (x *PricePhase) GetLastPeriod() int32 { |
| 1049 |
if x != nil { |
| 1050 |
return x.LastPeriod |
| 1051 |
} |
| 1052 |
return 0 |
| 1053 |
} |
| 1054 |
|
| 1055 |
func (x *PricePhase) GetPrice() *Price { |
| 1056 |
if x != nil { |
| 1057 |
return x.Price |
| 1058 |
} |
| 1059 |
return nil |
| 1060 |
} |
| 1061 |
|
| 1062 |
func (x *PricePhase) GetPriceTiers() []*PriceTier { |
| 1063 |
if x != nil { |
| 1064 |
return x.PriceTiers |
| 1065 |
} |
| 1066 |
return nil |
| 1067 |
} |
| 1068 |
|
| 1069 |
// Defines price at resource tier level. |
| 1070 |
// For example, an offer with following definition : |
| 1071 |
// |
| 1072 |
// * Tier 1: Provide 25% discount for all seats between 1 and 25. |
| 1073 |
// * Tier 2: Provide 10% discount for all seats between 26 and 100. |
| 1074 |
// * Tier 3: Provide flat 15% discount for all seats above 100. |
| 1075 |
// |
| 1076 |
// Each of these tiers is represented as a PriceTier. |
| 1077 |
type PriceTier struct { |
| 1078 |
state protoimpl.MessageState |
| 1079 |
sizeCache protoimpl.SizeCache |
| 1080 |
unknownFields protoimpl.UnknownFields |
| 1081 |
|
| 1082 |
// First resource for which the tier price applies. |
| 1083 |
FirstResource int32 `protobuf:"varint,1,opt,name=first_resource,json=firstResource,proto3" json:"first_resource,omitempty"` |
| 1084 |
// Last resource for which the tier price applies. |
| 1085 |
LastResource int32 `protobuf:"varint,2,opt,name=last_resource,json=lastResource,proto3" json:"last_resource,omitempty"` |
| 1086 |
// Price of the tier. |
| 1087 |
Price *Price `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` |
| 1088 |
} |
| 1089 |
|
| 1090 |
func (x *PriceTier) Reset() { |
| 1091 |
*x = PriceTier{} |
| 1092 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[8] |
| 1093 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1094 |
ms.StoreMessageInfo(mi) |
| 1095 |
} |
| 1096 |
|
| 1097 |
func (x *PriceTier) String() string { |
| 1098 |
return protoimpl.X.MessageStringOf(x) |
| 1099 |
} |
| 1100 |
|
| 1101 |
func (*PriceTier) ProtoMessage() {} |
| 1102 |
|
| 1103 |
func (x *PriceTier) ProtoReflect() protoreflect.Message { |
| 1104 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[8] |
| 1105 |
if x != nil { |
| 1106 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1107 |
if ms.LoadMessageInfo() == nil { |
| 1108 |
ms.StoreMessageInfo(mi) |
| 1109 |
} |
| 1110 |
return ms |
| 1111 |
} |
| 1112 |
return mi.MessageOf(x) |
| 1113 |
} |
| 1114 |
|
| 1115 |
// Deprecated: Use PriceTier.ProtoReflect.Descriptor instead. |
| 1116 |
func (*PriceTier) Descriptor() ([]byte, []int) { |
| 1117 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{8} |
| 1118 |
} |
| 1119 |
|
| 1120 |
func (x *PriceTier) GetFirstResource() int32 { |
| 1121 |
if x != nil { |
| 1122 |
return x.FirstResource |
| 1123 |
} |
| 1124 |
return 0 |
| 1125 |
} |
| 1126 |
|
| 1127 |
func (x *PriceTier) GetLastResource() int32 { |
| 1128 |
if x != nil { |
| 1129 |
return x.LastResource |
| 1130 |
} |
| 1131 |
return 0 |
| 1132 |
} |
| 1133 |
|
| 1134 |
func (x *PriceTier) GetPrice() *Price { |
| 1135 |
if x != nil { |
| 1136 |
return x.Price |
| 1137 |
} |
| 1138 |
return nil |
| 1139 |
} |
| 1140 |
|
| 1141 |
// Represents period in days/months/years. |
| 1142 |
type Period struct { |
| 1143 |
state protoimpl.MessageState |
| 1144 |
sizeCache protoimpl.SizeCache |
| 1145 |
unknownFields protoimpl.UnknownFields |
| 1146 |
|
| 1147 |
// Total duration of Period Type defined. |
| 1148 |
Duration int32 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"` |
| 1149 |
// Period Type. |
| 1150 |
PeriodType PeriodType `protobuf:"varint,2,opt,name=period_type,json=periodType,proto3,enum=google.cloud.channel.v1.PeriodType" json:"period_type,omitempty"` |
| 1151 |
} |
| 1152 |
|
| 1153 |
func (x *Period) Reset() { |
| 1154 |
*x = Period{} |
| 1155 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[9] |
| 1156 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1157 |
ms.StoreMessageInfo(mi) |
| 1158 |
} |
| 1159 |
|
| 1160 |
func (x *Period) String() string { |
| 1161 |
return protoimpl.X.MessageStringOf(x) |
| 1162 |
} |
| 1163 |
|
| 1164 |
func (*Period) ProtoMessage() {} |
| 1165 |
|
| 1166 |
func (x *Period) ProtoReflect() protoreflect.Message { |
| 1167 |
mi := &file_google_cloud_channel_v1_offers_proto_msgTypes[9] |
| 1168 |
if x != nil { |
| 1169 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1170 |
if ms.LoadMessageInfo() == nil { |
| 1171 |
ms.StoreMessageInfo(mi) |
| 1172 |
} |
| 1173 |
return ms |
| 1174 |
} |
| 1175 |
return mi.MessageOf(x) |
| 1176 |
} |
| 1177 |
|
| 1178 |
// Deprecated: Use Period.ProtoReflect.Descriptor instead. |
| 1179 |
func (*Period) Descriptor() ([]byte, []int) { |
| 1180 |
return file_google_cloud_channel_v1_offers_proto_rawDescGZIP(), []int{9} |
| 1181 |
} |
| 1182 |
|
| 1183 |
func (x *Period) GetDuration() int32 { |
| 1184 |
if x != nil { |
| 1185 |
return x.Duration |
| 1186 |
} |
| 1187 |
return 0 |
| 1188 |
} |
| 1189 |
|
| 1190 |
func (x *Period) GetPeriodType() PeriodType { |
| 1191 |
if x != nil { |
| 1192 |
return x.PeriodType |
| 1193 |
} |
| 1194 |
return PeriodType_PERIOD_TYPE_UNSPECIFIED |
| 1195 |
} |
| 1196 |
|
| 1197 |
var File_google_cloud_channel_v1_offers_proto protoreflect.FileDescriptor |
| 1198 |
|
| 1199 |
var file_google_cloud_channel_v1_offers_proto_rawDesc = []byte{ |
| 1200 |
0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, |
| 1201 |
0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x73, |
| 1202 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1203 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x1a, |
| 1204 |
0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, |
| 1205 |
0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 1206 |
0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, |
| 1207 |
0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x6f, |
| 1208 |
0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, |
| 1209 |
0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 1210 |
0x6f, 0x1a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, |
| 1211 |
0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, |
| 1212 |
0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1213 |
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, |
| 1214 |
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, |
| 1215 |
0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x65, 0x79, 0x2e, 0x70, 0x72, |
| 1216 |
0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x05, 0x0a, 0x05, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x12, 0x12, 0x0a, |
| 1217 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, |
| 1218 |
0x65, 0x12, 0x4d, 0x0a, 0x0e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x69, |
| 1219 |
0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1220 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, |
| 1221 |
0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, |
| 1222 |
0x6f, 0x52, 0x0d, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, |
| 1223 |
0x12, 0x2e, 0x0a, 0x03, 0x73, 0x6b, 0x75, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, |
| 1224 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, |
| 1225 |
0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6b, 0x75, 0x52, 0x03, 0x73, 0x6b, 0x75, |
| 1226 |
0x12, 0x31, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, |
| 1227 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, |
| 1228 |
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, |
| 1229 |
0x6c, 0x61, 0x6e, 0x12, 0x46, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, |
| 1230 |
0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1231 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, |
| 1232 |
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x0b, |
| 1233 |
0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x56, 0x0a, 0x12, 0x70, |
| 1234 |
0x72, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 1235 |
0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1236 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, |
| 1237 |
0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, |
| 1238 |
0x65, 0x52, 0x10, 0x70, 0x72, 0x69, 0x63, 0x65, 0x42, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, |
| 1239 |
0x63, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, |
| 1240 |
0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1241 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, |
| 1242 |
0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, |
| 1243 |
0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, |
| 1244 |
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 1245 |
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, |
| 1246 |
0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x61, 0x0a, 0x15, 0x70, 0x61, |
| 1247 |
0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, |
| 1248 |
0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1249 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, |
| 1250 |
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x44, 0x65, 0x66, |
| 1251 |
0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, |
| 1252 |
0x65, 0x72, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, |
| 1253 |
0x09, 0x64, 0x65, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, |
| 1254 |
0x52, 0x08, 0x64, 0x65, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x3a, 0x49, 0xea, 0x41, 0x46, 0x0a, |
| 1255 |
0x21, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x67, 0x6f, |
| 1256 |
0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4f, 0x66, 0x66, |
| 1257 |
0x65, 0x72, 0x12, 0x21, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, |
| 1258 |
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x6f, |
| 1259 |
0x66, 0x66, 0x65, 0x72, 0x7d, 0x22, 0xca, 0x03, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, |
| 1260 |
0x74, 0x65, 0x72, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, |
| 1261 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, |
| 1262 |
0x65, 0x12, 0x61, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x74, |
| 1263 |
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1264 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, |
| 1265 |
0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x44, 0x65, 0x66, |
| 1266 |
0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, |
| 1267 |
0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, |
| 1268 |
0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, |
| 1269 |
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1270 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, |
| 1271 |
0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x75, |
| 1272 |
0x65, 0x12, 0x3b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, |
| 1273 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 1274 |
0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x56, |
| 1275 |
0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, |
| 1276 |
0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, |
| 1277 |
0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1278 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, |
| 1279 |
0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, |
| 1280 |
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, |
| 1281 |
0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, |
| 1282 |
0x6c, 0x22, 0x5f, 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x54, 0x79, |
| 1283 |
0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x5f, |
| 1284 |
0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, |
| 1285 |
0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x01, 0x12, 0x0a, 0x0a, |
| 1286 |
0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, 0x55, |
| 1287 |
0x42, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, |
| 1288 |
0x10, 0x04, 0x22, 0x6e, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, |
| 1289 |
0x73, 0x12, 0x5f, 0x0a, 0x14, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x63, 0x6f, |
| 1290 |
0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 1291 |
0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, |
| 1292 |
0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, |
| 1293 |
0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x13, 0x63, |
| 1294 |
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, |
| 1295 |
0x74, 0x73, 0x22, 0x94, 0x02, 0x0a, 0x13, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x43, |
| 1296 |
0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x6c, |
| 1297 |
0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, |
| 1298 |
0x03, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, |
| 1299 |
0x6f, 0x6e, 0x73, 0x12, 0x6d, 0x0a, 0x16, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x63, |
| 1300 |
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, |
| 1301 |
0x03, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 1302 |
0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, |
| 1303 |
0x6f, 0x75, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x2e, |
| 1304 |
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x14, 0x61, 0x6c, |
| 1305 |
0x6c, 0x6f, 0x77, 0x65, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x54, 0x79, 0x70, |
| 1306 |
0x65, 0x73, 0x12, 0x65, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x61, |
| 1307 |
0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, |
| 1308 |
0x03, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 1309 |
0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, |
| 1310 |
0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x79, |
| 1311 |
0x70, 0x65, 0x52, 0x15, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4f, |
| 1312 |
0x72, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0xcb, 0x02, 0x0a, 0x04, 0x50, 0x6c, |
| 1313 |
0x61, 0x6e, 0x12, 0x47, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x6c, |
| 1314 |
0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1315 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, |
| 1316 |
0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0b, |
| 1317 |
0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x47, 0x0a, 0x0c, 0x70, |
| 1318 |
0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 1319 |
0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1320 |
0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6d, |
| 1321 |
0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, |
| 1322 |
0x54, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, |
| 1323 |
0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, |
| 1324 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, |
| 1325 |
0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x0c, 0x70, 0x61, |
| 1326 |
0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x74, 0x72, |
| 1327 |
0x69, 0x61, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, |
| 1328 |
0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1329 |
0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x6f, |
| 1330 |
0x64, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x27, |
| 1331 |
0x0a, 0x0f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, |
| 1332 |
0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, |
| 1333 |
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xdb, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x69, 0x63, |
| 1334 |
0x65, 0x42, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x72, |
| 1335 |
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 1336 |
0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 1337 |
0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, |
| 1338 |
0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, |
| 1339 |
0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, |
| 1340 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1341 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, |
| 1342 |
0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, |
| 1343 |
0x0c, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x68, 0x61, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, |
| 1344 |
0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 1345 |
0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, |
| 1346 |
0x69, 0x63, 0x65, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x63, 0x65, 0x50, |
| 1347 |
0x68, 0x61, 0x73, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, |
| 1348 |
0x31, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, |
| 1349 |
0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, |
| 1350 |
0x65, 0x2e, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x50, 0x72, 0x69, |
| 1351 |
0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, |
| 1352 |
0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, |
| 1353 |
0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, |
| 1354 |
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1355 |
0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x52, 0x0e, 0x65, 0x66, 0x66, |
| 1356 |
0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x65, |
| 1357 |
0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x72, |
| 1358 |
0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, |
| 1359 |
0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x55, 0x72, 0x69, 0x22, 0x91, 0x02, 0x0a, 0x0a, 0x50, 0x72, |
| 1360 |
0x69, 0x63, 0x65, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x69, |
| 1361 |
0x6f, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, |
| 1362 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, |
| 1363 |
0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x54, 0x79, |
| 1364 |
0x70, 0x65, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, |
| 1365 |
0x0a, 0x0c, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x02, |
| 1366 |
0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x66, 0x69, 0x72, 0x73, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, |
| 1367 |
0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, |
| 1368 |
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x65, 0x72, 0x69, |
| 1369 |
0x6f, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 1370 |
0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 1371 |
0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, |
| 1372 |
0x65, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x63, |
| 1373 |
0x65, 0x5f, 0x74, 0x69, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, |
| 1374 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, |
| 1375 |
0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x54, 0x69, 0x65, |
| 1376 |
0x72, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x63, 0x65, 0x54, 0x69, 0x65, 0x72, 0x73, 0x22, 0x8d, 0x01, |
| 1377 |
0x0a, 0x09, 0x50, 0x72, 0x69, 0x63, 0x65, 0x54, 0x69, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x66, |
| 1378 |
0x69, 0x72, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, |
| 1379 |
0x01, 0x28, 0x05, 0x52, 0x0d, 0x66, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, |
| 1380 |
0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, |
| 1381 |
0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x52, |
| 1382 |
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, |
| 1383 |
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1384 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, |
| 1385 |
0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x6a, 0x0a, |
| 1386 |
0x06, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, |
| 1387 |
0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, |
| 1388 |
0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x74, 0x79, |
| 1389 |
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1390 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, |
| 1391 |
0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x70, |
| 1392 |
0x65, 0x72, 0x69, 0x6f, 0x64, 0x54, 0x79, 0x70, 0x65, 0x2a, 0x6d, 0x0a, 0x14, 0x50, 0x72, 0x6f, |
| 1393 |
0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, |
| 1394 |
0x65, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x52, 0x4f, 0x4d, 0x4f, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, |
| 1395 |
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, |
| 1396 |
0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x45, 0x57, 0x5f, 0x55, 0x50, 0x47, 0x52, 0x41, |
| 1397 |
0x44, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, |
| 1398 |
0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x52, 0x4f, 0x4d, 0x4f, 0x54, 0x49, 0x4f, 0x4e, 0x5f, |
| 1399 |
0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x10, 0x03, 0x2a, 0x6b, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x6d, |
| 1400 |
0x65, 0x6e, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x41, 0x59, 0x4d, 0x45, |
| 1401 |
0x4e, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, |
| 1402 |
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x4d, |
| 1403 |
0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4c, 0x45, 0x58, 0x49, 0x42, 0x4c, |
| 1404 |
0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x52, 0x45, 0x45, 0x10, 0x03, 0x12, 0x09, 0x0a, |
| 1405 |
0x05, 0x54, 0x52, 0x49, 0x41, 0x4c, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x46, 0x46, 0x4c, |
| 1406 |
0x49, 0x4e, 0x45, 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, |
| 1407 |
0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, |
| 1408 |
0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, |
| 1409 |
0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x52, 0x45, 0x50, 0x41, 0x59, 0x10, 0x01, 0x12, 0x0b, |
| 1410 |
0x0a, 0x07, 0x50, 0x4f, 0x53, 0x54, 0x50, 0x41, 0x59, 0x10, 0x02, 0x2a, 0x8a, 0x01, 0x0a, 0x0c, |
| 1411 |
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, |
| 1412 |
0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, |
| 1413 |
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, |
| 1414 |
0x45, 0x41, 0x54, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x55, 0x10, 0x02, 0x12, 0x06, |
| 1415 |
0x0a, 0x02, 0x47, 0x42, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, |
| 1416 |
0x45, 0x44, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x4e, |
| 1417 |
0x55, 0x54, 0x45, 0x53, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x41, 0x41, 0x53, 0x5f, 0x55, |
| 1418 |
0x53, 0x41, 0x47, 0x45, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, |
| 1419 |
0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x07, 0x2a, 0x47, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x69, |
| 1420 |
0x6f, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44, |
| 1421 |
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, |
| 1422 |
0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x41, 0x59, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, |
| 1423 |
0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x59, 0x45, 0x41, 0x52, 0x10, |
| 1424 |
0x03, 0x42, 0x63, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1425 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, |
| 1426 |
0x42, 0x0b, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, |
| 1427 |
0x35, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, |
| 1428 |
0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x61, 0x70, 0x69, |
| 1429 |
0x76, 0x31, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x70, 0x62, 0x3b, 0x63, 0x68, 0x61, |
| 1430 |
0x6e, 0x6e, 0x65, 0x6c, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1431 |
} |
| 1432 |
|
| 1433 |
var ( |
| 1434 |
file_google_cloud_channel_v1_offers_proto_rawDescOnce sync.Once |
| 1435 |
file_google_cloud_channel_v1_offers_proto_rawDescData = file_google_cloud_channel_v1_offers_proto_rawDesc |
| 1436 |
) |
| 1437 |
|
| 1438 |
func file_google_cloud_channel_v1_offers_proto_rawDescGZIP() []byte { |
| 1439 |
file_google_cloud_channel_v1_offers_proto_rawDescOnce.Do(func() { |
| 1440 |
file_google_cloud_channel_v1_offers_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_channel_v1_offers_proto_rawDescData) |
| 1441 |
}) |
| 1442 |
return file_google_cloud_channel_v1_offers_proto_rawDescData |
| 1443 |
} |
| 1444 |
|
| 1445 |
var file_google_cloud_channel_v1_offers_proto_enumTypes = make([]protoimpl.EnumInfo, 6) |
| 1446 |
var file_google_cloud_channel_v1_offers_proto_msgTypes = make([]protoimpl.MessageInfo, 10) |
| 1447 |
var file_google_cloud_channel_v1_offers_proto_goTypes = []any{ |
| 1448 |
(PromotionalOrderType)(0), // 0: google.cloud.channel.v1.PromotionalOrderType |
| 1449 |
(PaymentPlan)(0), // 1: google.cloud.channel.v1.PaymentPlan |
| 1450 |
(PaymentType)(0), // 2: google.cloud.channel.v1.PaymentType |
| 1451 |
(ResourceType)(0), // 3: google.cloud.channel.v1.ResourceType |
| 1452 |
(PeriodType)(0), // 4: google.cloud.channel.v1.PeriodType |
| 1453 |
(ParameterDefinition_ParameterType)(0), // 5: google.cloud.channel.v1.ParameterDefinition.ParameterType |
| 1454 |
(*Offer)(nil), // 6: google.cloud.channel.v1.Offer |
| 1455 |
(*ParameterDefinition)(nil), // 7: google.cloud.channel.v1.ParameterDefinition |
| 1456 |
(*Constraints)(nil), // 8: google.cloud.channel.v1.Constraints |
| 1457 |
(*CustomerConstraints)(nil), // 9: google.cloud.channel.v1.CustomerConstraints |
| 1458 |
(*Plan)(nil), // 10: google.cloud.channel.v1.Plan |
| 1459 |
(*PriceByResource)(nil), // 11: google.cloud.channel.v1.PriceByResource |
| 1460 |
(*Price)(nil), // 12: google.cloud.channel.v1.Price |
| 1461 |
(*PricePhase)(nil), // 13: google.cloud.channel.v1.PricePhase |
| 1462 |
(*PriceTier)(nil), // 14: google.cloud.channel.v1.PriceTier |
| 1463 |
(*Period)(nil), // 15: google.cloud.channel.v1.Period |
| 1464 |
(*MarketingInfo)(nil), // 16: google.cloud.channel.v1.MarketingInfo |
| 1465 |
(*Sku)(nil), // 17: google.cloud.channel.v1.Sku |
| 1466 |
(*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp |
| 1467 |
(*Value)(nil), // 19: google.cloud.channel.v1.Value |
| 1468 |
(CloudIdentityInfo_CustomerType)(0), // 20: google.cloud.channel.v1.CloudIdentityInfo.CustomerType |
| 1469 |
(*money.Money)(nil), // 21: google.type.Money |
| 1470 |
} |
| 1471 |
var file_google_cloud_channel_v1_offers_proto_depIdxs = []int32{ |
| 1472 |
16, // 0: google.cloud.channel.v1.Offer.marketing_info:type_name -> google.cloud.channel.v1.MarketingInfo |
| 1473 |
17, // 1: google.cloud.channel.v1.Offer.sku:type_name -> google.cloud.channel.v1.Sku |
| 1474 |
10, // 2: google.cloud.channel.v1.Offer.plan:type_name -> google.cloud.channel.v1.Plan |
| 1475 |
8, // 3: google.cloud.channel.v1.Offer.constraints:type_name -> google.cloud.channel.v1.Constraints |
| 1476 |
11, // 4: google.cloud.channel.v1.Offer.price_by_resources:type_name -> google.cloud.channel.v1.PriceByResource |
| 1477 |
18, // 5: google.cloud.channel.v1.Offer.start_time:type_name -> google.protobuf.Timestamp |
| 1478 |
18, // 6: google.cloud.channel.v1.Offer.end_time:type_name -> google.protobuf.Timestamp |
| 1479 |
7, // 7: google.cloud.channel.v1.Offer.parameter_definitions:type_name -> google.cloud.channel.v1.ParameterDefinition |
| 1480 |
5, // 8: google.cloud.channel.v1.ParameterDefinition.parameter_type:type_name -> google.cloud.channel.v1.ParameterDefinition.ParameterType |
| 1481 |
19, // 9: google.cloud.channel.v1.ParameterDefinition.min_value:type_name -> google.cloud.channel.v1.Value |
| 1482 |
19, // 10: google.cloud.channel.v1.ParameterDefinition.max_value:type_name -> google.cloud.channel.v1.Value |
| 1483 |
19, // 11: google.cloud.channel.v1.ParameterDefinition.allowed_values:type_name -> google.cloud.channel.v1.Value |
| 1484 |
9, // 12: google.cloud.channel.v1.Constraints.customer_constraints:type_name -> google.cloud.channel.v1.CustomerConstraints |
| 1485 |
20, // 13: google.cloud.channel.v1.CustomerConstraints.allowed_customer_types:type_name -> google.cloud.channel.v1.CloudIdentityInfo.CustomerType |
| 1486 |
0, // 14: google.cloud.channel.v1.CustomerConstraints.promotional_order_types:type_name -> google.cloud.channel.v1.PromotionalOrderType |
| 1487 |
1, // 15: google.cloud.channel.v1.Plan.payment_plan:type_name -> google.cloud.channel.v1.PaymentPlan |
| 1488 |
2, // 16: google.cloud.channel.v1.Plan.payment_type:type_name -> google.cloud.channel.v1.PaymentType |
| 1489 |
15, // 17: google.cloud.channel.v1.Plan.payment_cycle:type_name -> google.cloud.channel.v1.Period |
| 1490 |
15, // 18: google.cloud.channel.v1.Plan.trial_period:type_name -> google.cloud.channel.v1.Period |
| 1491 |
3, // 19: google.cloud.channel.v1.PriceByResource.resource_type:type_name -> google.cloud.channel.v1.ResourceType |
| 1492 |
12, // 20: google.cloud.channel.v1.PriceByResource.price:type_name -> google.cloud.channel.v1.Price |
| 1493 |
13, // 21: google.cloud.channel.v1.PriceByResource.price_phases:type_name -> google.cloud.channel.v1.PricePhase |
| 1494 |
21, // 22: google.cloud.channel.v1.Price.base_price:type_name -> google.type.Money |
| 1495 |
21, // 23: google.cloud.channel.v1.Price.effective_price:type_name -> google.type.Money |
| 1496 |
4, // 24: google.cloud.channel.v1.PricePhase.period_type:type_name -> google.cloud.channel.v1.PeriodType |
| 1497 |
12, // 25: google.cloud.channel.v1.PricePhase.price:type_name -> google.cloud.channel.v1.Price |
| 1498 |
14, // 26: google.cloud.channel.v1.PricePhase.price_tiers:type_name -> google.cloud.channel.v1.PriceTier |
| 1499 |
12, // 27: google.cloud.channel.v1.PriceTier.price:type_name -> google.cloud.channel.v1.Price |
| 1500 |
4, // 28: google.cloud.channel.v1.Period.period_type:type_name -> google.cloud.channel.v1.PeriodType |
| 1501 |
29, // [29:29] is the sub-list for method output_type |
| 1502 |
29, // [29:29] is the sub-list for method input_type |
| 1503 |
29, // [29:29] is the sub-list for extension type_name |
| 1504 |
29, // [29:29] is the sub-list for extension extendee |
| 1505 |
0, // [0:29] is the sub-list for field type_name |
| 1506 |
} |
| 1507 |
|
| 1508 |
func init() { file_google_cloud_channel_v1_offers_proto_init() } |
| 1509 |
func file_google_cloud_channel_v1_offers_proto_init() { |
| 1510 |
if File_google_cloud_channel_v1_offers_proto != nil { |
| 1511 |
return |
| 1512 |
} |
| 1513 |
file_google_cloud_channel_v1_common_proto_init() |
| 1514 |
file_google_cloud_channel_v1_products_proto_init() |
| 1515 |
type x struct{} |
| 1516 |
out := protoimpl.TypeBuilder{ |
| 1517 |
File: protoimpl.DescBuilder{ |
| 1518 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1519 |
RawDescriptor: file_google_cloud_channel_v1_offers_proto_rawDesc, |
| 1520 |
NumEnums: 6, |
| 1521 |
NumMessages: 10, |
| 1522 |
NumExtensions: 0, |
| 1523 |
NumServices: 0, |
| 1524 |
}, |
| 1525 |
GoTypes: file_google_cloud_channel_v1_offers_proto_goTypes, |
| 1526 |
DependencyIndexes: file_google_cloud_channel_v1_offers_proto_depIdxs, |
| 1527 |
EnumInfos: file_google_cloud_channel_v1_offers_proto_enumTypes, |
| 1528 |
MessageInfos: file_google_cloud_channel_v1_offers_proto_msgTypes, |
| 1529 |
}.Build() |
| 1530 |
File_google_cloud_channel_v1_offers_proto = out.File |
| 1531 |
file_google_cloud_channel_v1_offers_proto_rawDesc = nil |
| 1532 |
file_google_cloud_channel_v1_offers_proto_goTypes = nil |
| 1533 |
file_google_cloud_channel_v1_offers_proto_depIdxs = nil |
| 1534 |
} |