1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/channel/v1/offers.proto 18 19 package com.google.cloud.channel.v1; 20 21 public final class OffersProto { OffersProto()22 private OffersProto() {} 23 registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)24 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} 25 registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)26 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { 27 registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); 28 } 29 30 static final com.google.protobuf.Descriptors.Descriptor 31 internal_static_google_cloud_channel_v1_Offer_descriptor; 32 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 33 internal_static_google_cloud_channel_v1_Offer_fieldAccessorTable; 34 static final com.google.protobuf.Descriptors.Descriptor 35 internal_static_google_cloud_channel_v1_ParameterDefinition_descriptor; 36 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 37 internal_static_google_cloud_channel_v1_ParameterDefinition_fieldAccessorTable; 38 static final com.google.protobuf.Descriptors.Descriptor 39 internal_static_google_cloud_channel_v1_Constraints_descriptor; 40 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 41 internal_static_google_cloud_channel_v1_Constraints_fieldAccessorTable; 42 static final com.google.protobuf.Descriptors.Descriptor 43 internal_static_google_cloud_channel_v1_CustomerConstraints_descriptor; 44 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 45 internal_static_google_cloud_channel_v1_CustomerConstraints_fieldAccessorTable; 46 static final com.google.protobuf.Descriptors.Descriptor 47 internal_static_google_cloud_channel_v1_Plan_descriptor; 48 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 49 internal_static_google_cloud_channel_v1_Plan_fieldAccessorTable; 50 static final com.google.protobuf.Descriptors.Descriptor 51 internal_static_google_cloud_channel_v1_PriceByResource_descriptor; 52 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 53 internal_static_google_cloud_channel_v1_PriceByResource_fieldAccessorTable; 54 static final com.google.protobuf.Descriptors.Descriptor 55 internal_static_google_cloud_channel_v1_Price_descriptor; 56 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 57 internal_static_google_cloud_channel_v1_Price_fieldAccessorTable; 58 static final com.google.protobuf.Descriptors.Descriptor 59 internal_static_google_cloud_channel_v1_PricePhase_descriptor; 60 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 61 internal_static_google_cloud_channel_v1_PricePhase_fieldAccessorTable; 62 static final com.google.protobuf.Descriptors.Descriptor 63 internal_static_google_cloud_channel_v1_PriceTier_descriptor; 64 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 65 internal_static_google_cloud_channel_v1_PriceTier_fieldAccessorTable; 66 static final com.google.protobuf.Descriptors.Descriptor 67 internal_static_google_cloud_channel_v1_Period_descriptor; 68 static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 69 internal_static_google_cloud_channel_v1_Period_fieldAccessorTable; 70 getDescriptor()71 public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 72 return descriptor; 73 } 74 75 private static com.google.protobuf.Descriptors.FileDescriptor descriptor; 76 77 static { 78 java.lang.String[] descriptorData = { 79 "\n$google/cloud/channel/v1/offers.proto\022\027" 80 + "google.cloud.channel.v1\032\037google/api/fiel" 81 + "d_behavior.proto\032\031google/api/resource.pr" 82 + "oto\032$google/cloud/channel/v1/common.prot" 83 + "o\032&google/cloud/channel/v1/products.prot" 84 + "o\032\037google/protobuf/timestamp.proto\032\027goog" 85 + "le/type/money.proto\"\274\004\n\005Offer\022\014\n\004name\030\001 " 86 + "\001(\t\022>\n\016marketing_info\030\002 \001(\0132&.google.clo" 87 + "ud.channel.v1.MarketingInfo\022)\n\003sku\030\003 \001(\013" 88 + "2\034.google.cloud.channel.v1.Sku\022+\n\004plan\030\004" 89 + " \001(\0132\035.google.cloud.channel.v1.Plan\0229\n\013c" 90 + "onstraints\030\005 \001(\0132$.google.cloud.channel." 91 + "v1.Constraints\022D\n\022price_by_resources\030\006 \003" 92 + "(\0132(.google.cloud.channel.v1.PriceByReso" 93 + "urce\022.\n\nstart_time\030\007 \001(\0132\032.google.protob" 94 + "uf.Timestamp\0221\n\010end_time\030\010 \001(\0132\032.google." 95 + "protobuf.TimestampB\003\340A\003\022K\n\025parameter_def" 96 + "initions\030\t \003(\0132,.google.cloud.channel.v1" 97 + ".ParameterDefinition\022\021\n\tdeal_code\030\014 \001(\t:" 98 + "I\352AF\n!cloudchannel.googleapis.com/Offer\022" 99 + "!accounts/{account}/offers/{offer}\"\373\002\n\023P" 100 + "arameterDefinition\022\014\n\004name\030\001 \001(\t\022R\n\016para" 101 + "meter_type\030\002 \001(\0162:.google.cloud.channel." 102 + "v1.ParameterDefinition.ParameterType\0221\n\t" 103 + "min_value\030\003 \001(\0132\036.google.cloud.channel.v" 104 + "1.Value\0221\n\tmax_value\030\004 \001(\0132\036.google.clou" 105 + "d.channel.v1.Value\0226\n\016allowed_values\030\005 \003" 106 + "(\0132\036.google.cloud.channel.v1.Value\022\020\n\010op" 107 + "tional\030\006 \001(\010\"R\n\rParameterType\022\036\n\032PARAMET" 108 + "ER_TYPE_UNSPECIFIED\020\000\022\t\n\005INT64\020\001\022\n\n\006STRI" 109 + "NG\020\002\022\n\n\006DOUBLE\020\003\"Y\n\013Constraints\022J\n\024custo" 110 + "mer_constraints\030\001 \001(\0132,.google.cloud.cha" 111 + "nnel.v1.CustomerConstraints\"\327\001\n\023Customer" 112 + "Constraints\022\027\n\017allowed_regions\030\001 \003(\t\022W\n\026" 113 + "allowed_customer_types\030\002 \003(\01627.google.cl" 114 + "oud.channel.v1.CloudIdentityInfo.Custome" 115 + "rType\022N\n\027promotional_order_types\030\003 \003(\0162-" 116 + ".google.cloud.channel.v1.PromotionalOrde" 117 + "rType\"\206\002\n\004Plan\022:\n\014payment_plan\030\001 \001(\0162$.g" 118 + "oogle.cloud.channel.v1.PaymentPlan\022:\n\014pa" 119 + "yment_type\030\002 \001(\0162$.google.cloud.channel." 120 + "v1.PaymentType\0226\n\rpayment_cycle\030\003 \001(\0132\037." 121 + "google.cloud.channel.v1.Period\0225\n\014trial_" 122 + "period\030\004 \001(\0132\037.google.cloud.channel.v1.P" 123 + "eriod\022\027\n\017billing_account\030\005 \001(\t\"\271\001\n\017Price" 124 + "ByResource\022<\n\rresource_type\030\001 \001(\0162%.goog" 125 + "le.cloud.channel.v1.ResourceType\022-\n\005pric" 126 + "e\030\002 \001(\0132\036.google.cloud.channel.v1.Price\022" 127 + "9\n\014price_phases\030\003 \003(\0132#.google.cloud.cha" 128 + "nnel.v1.PricePhase\"\212\001\n\005Price\022&\n\nbase_pri" 129 + "ce\030\001 \001(\0132\022.google.type.Money\022\020\n\010discount" 130 + "\030\002 \001(\001\022+\n\017effective_price\030\003 \001(\0132\022.google" 131 + ".type.Money\022\032\n\022external_price_uri\030\004 \001(\t\"" 132 + "\331\001\n\nPricePhase\0228\n\013period_type\030\001 \001(\0162#.go" 133 + "ogle.cloud.channel.v1.PeriodType\022\024\n\014firs" 134 + "t_period\030\002 \001(\005\022\023\n\013last_period\030\003 \001(\005\022-\n\005p" 135 + "rice\030\004 \001(\0132\036.google.cloud.channel.v1.Pri" 136 + "ce\0227\n\013price_tiers\030\005 \003(\0132\".google.cloud.c" 137 + "hannel.v1.PriceTier\"i\n\tPriceTier\022\026\n\016firs" 138 + "t_resource\030\001 \001(\005\022\025\n\rlast_resource\030\002 \001(\005\022" 139 + "-\n\005price\030\003 \001(\0132\036.google.cloud.channel.v1" 140 + ".Price\"T\n\006Period\022\020\n\010duration\030\001 \001(\005\0228\n\013pe" 141 + "riod_type\030\002 \001(\0162#.google.cloud.channel.v" 142 + "1.PeriodType*m\n\024PromotionalOrderType\022 \n\034" 143 + "PROMOTIONAL_TYPE_UNSPECIFIED\020\000\022\017\n\013NEW_UP" 144 + "GRADE\020\001\022\014\n\010TRANSFER\020\002\022\024\n\020PROMOTION_SWITC" 145 + "H\020\003*k\n\013PaymentPlan\022\034\n\030PAYMENT_PLAN_UNSPE" 146 + "CIFIED\020\000\022\016\n\nCOMMITMENT\020\001\022\014\n\010FLEXIBLE\020\002\022\010" 147 + "\n\004FREE\020\003\022\t\n\005TRIAL\020\004\022\013\n\007OFFLINE\020\005*D\n\013Paym" 148 + "entType\022\034\n\030PAYMENT_TYPE_UNSPECIFIED\020\000\022\n\n" 149 + "\006PREPAY\020\001\022\013\n\007POSTPAY\020\002*\212\001\n\014ResourceType\022" 150 + "\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\010\n\004SEAT\020\001" 151 + "\022\007\n\003MAU\020\002\022\006\n\002GB\020\003\022\021\n\rLICENSED_USER\020\004\022\013\n\007" 152 + "MINUTES\020\005\022\016\n\nIAAS_USAGE\020\006\022\020\n\014SUBSCRIPTIO" 153 + "N\020\007*G\n\nPeriodType\022\033\n\027PERIOD_TYPE_UNSPECI" 154 + "FIED\020\000\022\007\n\003DAY\020\001\022\t\n\005MONTH\020\002\022\010\n\004YEAR\020\003Bc\n\033" 155 + "com.google.cloud.channel.v1B\013OffersProto" 156 + "P\001Z5cloud.google.com/go/channel/apiv1/ch" 157 + "annelpb;channelpbb\006proto3" 158 }; 159 descriptor = 160 com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( 161 descriptorData, 162 new com.google.protobuf.Descriptors.FileDescriptor[] { 163 com.google.api.FieldBehaviorProto.getDescriptor(), 164 com.google.api.ResourceProto.getDescriptor(), 165 com.google.cloud.channel.v1.CommonProto.getDescriptor(), 166 com.google.cloud.channel.v1.ProductsProto.getDescriptor(), 167 com.google.protobuf.TimestampProto.getDescriptor(), 168 com.google.type.MoneyProto.getDescriptor(), 169 }); 170 internal_static_google_cloud_channel_v1_Offer_descriptor = 171 getDescriptor().getMessageTypes().get(0); 172 internal_static_google_cloud_channel_v1_Offer_fieldAccessorTable = 173 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 174 internal_static_google_cloud_channel_v1_Offer_descriptor, 175 new java.lang.String[] { 176 "Name", 177 "MarketingInfo", 178 "Sku", 179 "Plan", 180 "Constraints", 181 "PriceByResources", 182 "StartTime", 183 "EndTime", 184 "ParameterDefinitions", 185 "DealCode", 186 }); 187 internal_static_google_cloud_channel_v1_ParameterDefinition_descriptor = 188 getDescriptor().getMessageTypes().get(1); 189 internal_static_google_cloud_channel_v1_ParameterDefinition_fieldAccessorTable = 190 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 191 internal_static_google_cloud_channel_v1_ParameterDefinition_descriptor, 192 new java.lang.String[] { 193 "Name", "ParameterType", "MinValue", "MaxValue", "AllowedValues", "Optional", 194 }); 195 internal_static_google_cloud_channel_v1_Constraints_descriptor = 196 getDescriptor().getMessageTypes().get(2); 197 internal_static_google_cloud_channel_v1_Constraints_fieldAccessorTable = 198 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 199 internal_static_google_cloud_channel_v1_Constraints_descriptor, 200 new java.lang.String[] { 201 "CustomerConstraints", 202 }); 203 internal_static_google_cloud_channel_v1_CustomerConstraints_descriptor = 204 getDescriptor().getMessageTypes().get(3); 205 internal_static_google_cloud_channel_v1_CustomerConstraints_fieldAccessorTable = 206 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 207 internal_static_google_cloud_channel_v1_CustomerConstraints_descriptor, 208 new java.lang.String[] { 209 "AllowedRegions", "AllowedCustomerTypes", "PromotionalOrderTypes", 210 }); 211 internal_static_google_cloud_channel_v1_Plan_descriptor = 212 getDescriptor().getMessageTypes().get(4); 213 internal_static_google_cloud_channel_v1_Plan_fieldAccessorTable = 214 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 215 internal_static_google_cloud_channel_v1_Plan_descriptor, 216 new java.lang.String[] { 217 "PaymentPlan", "PaymentType", "PaymentCycle", "TrialPeriod", "BillingAccount", 218 }); 219 internal_static_google_cloud_channel_v1_PriceByResource_descriptor = 220 getDescriptor().getMessageTypes().get(5); 221 internal_static_google_cloud_channel_v1_PriceByResource_fieldAccessorTable = 222 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 223 internal_static_google_cloud_channel_v1_PriceByResource_descriptor, 224 new java.lang.String[] { 225 "ResourceType", "Price", "PricePhases", 226 }); 227 internal_static_google_cloud_channel_v1_Price_descriptor = 228 getDescriptor().getMessageTypes().get(6); 229 internal_static_google_cloud_channel_v1_Price_fieldAccessorTable = 230 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 231 internal_static_google_cloud_channel_v1_Price_descriptor, 232 new java.lang.String[] { 233 "BasePrice", "Discount", "EffectivePrice", "ExternalPriceUri", 234 }); 235 internal_static_google_cloud_channel_v1_PricePhase_descriptor = 236 getDescriptor().getMessageTypes().get(7); 237 internal_static_google_cloud_channel_v1_PricePhase_fieldAccessorTable = 238 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 239 internal_static_google_cloud_channel_v1_PricePhase_descriptor, 240 new java.lang.String[] { 241 "PeriodType", "FirstPeriod", "LastPeriod", "Price", "PriceTiers", 242 }); 243 internal_static_google_cloud_channel_v1_PriceTier_descriptor = 244 getDescriptor().getMessageTypes().get(8); 245 internal_static_google_cloud_channel_v1_PriceTier_fieldAccessorTable = 246 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 247 internal_static_google_cloud_channel_v1_PriceTier_descriptor, 248 new java.lang.String[] { 249 "FirstResource", "LastResource", "Price", 250 }); 251 internal_static_google_cloud_channel_v1_Period_descriptor = 252 getDescriptor().getMessageTypes().get(9); 253 internal_static_google_cloud_channel_v1_Period_fieldAccessorTable = 254 new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 255 internal_static_google_cloud_channel_v1_Period_descriptor, 256 new java.lang.String[] { 257 "Duration", "PeriodType", 258 }); 259 com.google.protobuf.ExtensionRegistry registry = 260 com.google.protobuf.ExtensionRegistry.newInstance(); 261 registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); 262 registry.add(com.google.api.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry)263 com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( 264 descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor()265 com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor()266 com.google.api.ResourceProto.getDescriptor(); com.google.cloud.channel.v1.CommonProto.getDescriptor()267 com.google.cloud.channel.v1.CommonProto.getDescriptor(); com.google.cloud.channel.v1.ProductsProto.getDescriptor()268 com.google.cloud.channel.v1.ProductsProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor()269 com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.MoneyProto.getDescriptor()270 com.google.type.MoneyProto.getDescriptor(); 271 } 272 273 // @@protoc_insertion_point(outer_class_scope) 274 } 275