# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/channel/v1/offers.proto require 'google/protobuf' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/channel/v1/common_pb' require 'google/cloud/channel/v1/products_pb' require 'google/protobuf/timestamp_pb' require 'google/type/money_pb' require 'google/api/annotations_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/channel/v1/offers.proto", :syntax => :proto3) do add_message "google.cloud.channel.v1.Offer" do optional :name, :string, 1 optional :marketing_info, :message, 2, "google.cloud.channel.v1.MarketingInfo" optional :sku, :message, 3, "google.cloud.channel.v1.Sku" optional :plan, :message, 4, "google.cloud.channel.v1.Plan" optional :constraints, :message, 5, "google.cloud.channel.v1.Constraints" repeated :price_by_resources, :message, 6, "google.cloud.channel.v1.PriceByResource" optional :start_time, :message, 7, "google.protobuf.Timestamp" optional :end_time, :message, 8, "google.protobuf.Timestamp" repeated :parameter_definitions, :message, 9, "google.cloud.channel.v1.ParameterDefinition" end add_message "google.cloud.channel.v1.ParameterDefinition" do optional :name, :string, 1 optional :parameter_type, :enum, 2, "google.cloud.channel.v1.ParameterDefinition.ParameterType" optional :min_value, :message, 3, "google.cloud.channel.v1.Value" optional :max_value, :message, 4, "google.cloud.channel.v1.Value" repeated :allowed_values, :message, 5, "google.cloud.channel.v1.Value" optional :optional, :bool, 6 end add_enum "google.cloud.channel.v1.ParameterDefinition.ParameterType" do value :PARAMETER_TYPE_UNSPECIFIED, 0 value :INT64, 1 value :STRING, 2 value :DOUBLE, 3 end add_message "google.cloud.channel.v1.Constraints" do optional :customer_constraints, :message, 1, "google.cloud.channel.v1.CustomerConstraints" end add_message "google.cloud.channel.v1.CustomerConstraints" do repeated :allowed_regions, :string, 1 repeated :allowed_customer_types, :enum, 2, "google.cloud.channel.v1.CloudIdentityInfo.CustomerType" repeated :promotional_order_types, :enum, 3, "google.cloud.channel.v1.PromotionalOrderType" end add_message "google.cloud.channel.v1.Plan" do optional :payment_plan, :enum, 1, "google.cloud.channel.v1.PaymentPlan" optional :payment_type, :enum, 2, "google.cloud.channel.v1.PaymentType" optional :payment_cycle, :message, 3, "google.cloud.channel.v1.Period" optional :trial_period, :message, 4, "google.cloud.channel.v1.Period" end add_message "google.cloud.channel.v1.PriceByResource" do optional :resource_type, :enum, 1, "google.cloud.channel.v1.ResourceType" optional :price, :message, 2, "google.cloud.channel.v1.Price" repeated :price_phases, :message, 3, "google.cloud.channel.v1.PricePhase" end add_message "google.cloud.channel.v1.Price" do optional :base_price, :message, 1, "google.type.Money" optional :discount, :double, 2 optional :effective_price, :message, 3, "google.type.Money" optional :external_price_uri, :string, 4 end add_message "google.cloud.channel.v1.PricePhase" do optional :period_type, :enum, 1, "google.cloud.channel.v1.PeriodType" optional :first_period, :int32, 2 optional :last_period, :int32, 3 optional :price, :message, 4, "google.cloud.channel.v1.Price" repeated :price_tiers, :message, 5, "google.cloud.channel.v1.PriceTier" end add_message "google.cloud.channel.v1.PriceTier" do optional :first_resource, :int32, 1 optional :last_resource, :int32, 2 optional :price, :message, 3, "google.cloud.channel.v1.Price" end add_message "google.cloud.channel.v1.Period" do optional :duration, :int32, 1 optional :period_type, :enum, 2, "google.cloud.channel.v1.PeriodType" end add_enum "google.cloud.channel.v1.PromotionalOrderType" do value :PROMOTIONAL_TYPE_UNSPECIFIED, 0 value :NEW_UPGRADE, 1 value :TRANSFER, 2 value :PROMOTION_SWITCH, 3 end add_enum "google.cloud.channel.v1.PaymentPlan" do value :PAYMENT_PLAN_UNSPECIFIED, 0 value :COMMITMENT, 1 value :FLEXIBLE, 2 value :FREE, 3 value :TRIAL, 4 value :OFFLINE, 5 end add_enum "google.cloud.channel.v1.PaymentType" do value :PAYMENT_TYPE_UNSPECIFIED, 0 value :PREPAY, 1 value :POSTPAY, 2 end add_enum "google.cloud.channel.v1.ResourceType" do value :RESOURCE_TYPE_UNSPECIFIED, 0 value :SEAT, 1 value :MAU, 2 value :GB, 3 value :LICENSED_USER, 4 value :MINUTES, 5 value :IAAS_USAGE, 6 value :SUBSCRIPTION, 7 end add_enum "google.cloud.channel.v1.PeriodType" do value :PERIOD_TYPE_UNSPECIFIED, 0 value :DAY, 1 value :MONTH, 2 value :YEAR, 3 end end end module Google module Cloud module Channel module V1 Offer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Offer").msgclass ParameterDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ParameterDefinition").msgclass ParameterDefinition::ParameterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ParameterDefinition.ParameterType").enummodule Constraints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Constraints").msgclass CustomerConstraints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CustomerConstraints").msgclass Plan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Plan").msgclass PriceByResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PriceByResource").msgclass Price = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Price").msgclass PricePhase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PricePhase").msgclass PriceTier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PriceTier").msgclass Period = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Period").msgclass PromotionalOrderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PromotionalOrderType").enummodule PaymentPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PaymentPlan").enummodule PaymentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PaymentType").enummodule ResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ResourceType").enummodule PeriodType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PeriodType").enummodule end end end end