NAME
Google::Cloud::Channel::V1::Offers - Compiled Protocol Buffers messages for google/cloud/channel/v1/offers.proto
SYNOPSIS
use Google::Cloud::Channel::V1::Offers;
my $msg = Google::Cloud::Channel::V1::Offers::Offer->new({
name => $name,
marketing_info => $marketing_info,
sku => $sku,
plan => $plan,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Channel::V1::Offers::Offer->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/channel/v1/offers.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Channel::V1::Offers::Offer
Represents an offer made to resellers for purchase. An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan for payment, a price, and defines the constraints for buying.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringResource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
$msg->marketing_info()/$msg->marketing_info($value)Type:
Message(Google::Cloud::Channel::V1::Products::MarketingInfo)Marketing information for the Offer.
$msg->sku()/$msg->sku($value)Type:
Message(Google::Cloud::Channel::V1::Products::Sku)SKU the offer is associated with.
$msg->plan()/$msg->plan($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Plan)Describes the payment plan for the Offer.
$msg->constraints()/$msg->constraints($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Constraints)Constraints on transacting the Offer.
$msg->price_by_resources()/$msg->price_by_resources($value)Type:
Message(Google::Cloud::Channel::V1::Offers::PriceByResource)Price for each monetizable resource type.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start of the Offer validity time.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. End of the Offer validity time.
$msg->parameter_definitions()/$msg->parameter_definitions($value)Type:
Message(Google::Cloud::Channel::V1::Offers::ParameterDefinition)Parameters required to use current Offer to purchase.
$msg->deal_code()/$msg->deal_code($value)Type:
StringThe deal code of the offer to get a special promotion or discount.
Google::Cloud::Channel::V1::Offers::ParameterDefinition
Parameter's definition. Specifies what parameter is required to use the current Offer to purchase.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the parameter.
$msg->parameter_type()/$msg->parameter_type($value)Type:
Enum(Google::Cloud::Channel::V1::ParameterDefinition::ParameterType)Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.
$msg->min_value()/$msg->min_value($value)Type:
Message(Google::Cloud::Channel::V1::Common::Value)Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.
$msg->max_value()/$msg->max_value($value)Type:
Message(Google::Cloud::Channel::V1::Common::Value)Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.
$msg->allowed_values()/$msg->allowed_values($value)Type:
Message(Google::Cloud::Channel::V1::Common::Value)If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.
$msg->optional()/$msg->optional($value)Type:
BoolIf set to true, parameter is optional to purchase this Offer.
Enum: ParameterDefinition::ParameterType
PARAMETER_TYPE_UNSPECIFIED=>0INT64=>1STRING=>2DOUBLE=>3BOOLEAN=>4
Google::Cloud::Channel::V1::Offers::Constraints
Represents the constraints for buying the Offer.
Inherits from Protobuf::Message.
Accessors
$msg->customer_constraints()/$msg->customer_constraints($value)Type:
Message(Google::Cloud::Channel::V1::Offers::CustomerConstraints)Represents constraints required to purchase the Offer for a customer.
Google::Cloud::Channel::V1::Offers::CustomerConstraints
Represents constraints required to purchase the Offer for a customer.
Inherits from Protobuf::Message.
Accessors
$msg->allowed_regions()/$msg->allowed_regions($value)Type:
StringAllowed geographical regions of the customer.
$msg->allowed_customer_types()/$msg->allowed_customer_types($value)Type:
Enum(Google::Cloud::Channel::V1::CloudIdentityInfo::CustomerType)Allowed Customer Type.
$msg->promotional_order_types()/$msg->promotional_order_types($value)Type:
Enum(Google::Cloud::Channel::V1::PromotionalOrderType)Allowed Promotional Order Type. Present for Promotional offers.
Google::Cloud::Channel::V1::Offers::Plan
The payment plan for the Offer. Describes how to make a payment.
Inherits from Protobuf::Message.
Accessors
$msg->payment_plan()/$msg->payment_plan($value)Type:
Enum(Google::Cloud::Channel::V1::PaymentPlan)Describes how a reseller will be billed.
$msg->payment_type()/$msg->payment_type($value)Type:
Enum(Google::Cloud::Channel::V1::PaymentType)Specifies when the payment needs to happen.
$msg->payment_cycle()/$msg->payment_cycle($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Period)Describes how frequently the reseller will be billed, such as once per month.
$msg->trial_period()/$msg->trial_period($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Period)Present for Offers with a trial period. For trial-only Offers, a paid service needs to start before the trial period ends for continued service. For Regular Offers with a trial period, the regular pricing goes into effect when trial period ends, or if paid service is started before the end of the trial period.
$msg->billing_account()/$msg->billing_account($value)Type:
StringReseller Billing account to charge after an offer transaction. Only present for Google Cloud offers.
Google::Cloud::Channel::V1::Offers::PriceByResource
Represents price by resource type.
Inherits from Protobuf::Message.
Accessors
$msg->resource_type()/$msg->resource_type($value)Type:
Enum(Google::Cloud::Channel::V1::ResourceType)Resource Type. Example: SEAT
$msg->price()/$msg->price($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Price)Price of the Offer. Present if there are no price phases.
$msg->price_phases()/$msg->price_phases($value)Type:
Message(Google::Cloud::Channel::V1::Offers::PricePhase)Specifies the price by time range.
Google::Cloud::Channel::V1::Offers::Price
Represents the price of the Offer.
Inherits from Protobuf::Message.
Accessors
$msg->base_price()/$msg->base_price($value)Type:
Message(Google::Type::Money::Money)Base price.
$msg->discount()/$msg->discount($value)Type:
DoubleDiscount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
$msg->effective_price()/$msg->effective_price($value)Type:
Message(Google::Type::Money::Money)Effective Price after applying the discounts.
$msg->price_period()/$msg->price_period($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Period)The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
$msg->external_price_uri()/$msg->external_price_uri($value)Type:
StringLink to external price list, such as link to Google Voice rate card.
$msg->discount_components()/$msg->discount_components($value)Type:
Message(Google::Cloud::Channel::V1::Offers::DiscountComponent)Breakdown of the discount into its components. This will be empty if there is no discount present.
Google::Cloud::Channel::V1::Offers::PricePhase
Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.
Inherits from Protobuf::Message.
Accessors
$msg->period_type()/$msg->period_type($value)Type:
Enum(Google::Cloud::Channel::V1::PeriodType)Defines the phase period type.
$msg->first_period()/$msg->first_period($value)Type:
Int32Defines first period for the phase.
$msg->last_period()/$msg->last_period($value)Type:
Int32Defines first period for the phase.
$msg->price()/$msg->price($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Price)Price of the phase. Present if there are no price tiers.
$msg->price_tiers()/$msg->price_tiers($value)Type:
Message(Google::Cloud::Channel::V1::Offers::PriceTier)Price by the resource tiers.
Google::Cloud::Channel::V1::Offers::PriceTier
Defines price at resource tier level. For example, an offer with following definition :
* Tier 1: Provide 25% discount for all seats between 1 and 25. * Tier 2: Provide 10% discount for all seats between 26 and 100. * Tier 3: Provide flat 15% discount for all seats above 100.
Each of these tiers is represented as a PriceTier.
Inherits from Protobuf::Message.
Accessors
$msg->first_resource()/$msg->first_resource($value)Type:
Int32First resource for which the tier price applies.
$msg->last_resource()/$msg->last_resource($value)Type:
Int32Last resource for which the tier price applies.
$msg->price()/$msg->price($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Price)Price of the tier.
Google::Cloud::Channel::V1::Offers::Period
Represents period in days/months/years.
Inherits from Protobuf::Message.
Accessors
$msg->duration()/$msg->duration($value)Type:
Int32Total duration of Period Type defined.
$msg->period_type()/$msg->period_type($value)Type:
Enum(Google::Cloud::Channel::V1::PeriodType)Period Type.
Google::Cloud::Channel::V1::Offers::DiscountComponent
Represents a single component of the total discount applicable on a Price.
Inherits from Protobuf::Message.
Accessors
$msg->discount_percentage()/$msg->discount_percentage($value)Type:
DoubleDiscount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
$msg->discount_absolute()/$msg->discount_absolute($value)Type:
Message(Google::Type::Money::Money)Fixed value discount.
$msg->discount_type()/$msg->discount_type($value)Type:
Enum(Google::Cloud::Channel::V1::DiscountType)Type of the discount.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Channel::V1::Offers::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.