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

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: String

    Name 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: Bool

    If set to true, parameter is optional to purchase this Offer.

Enum: ParameterDefinition::ParameterType

  • PARAMETER_TYPE_UNSPECIFIED => 0

  • INT64 => 1

  • STRING => 2

  • DOUBLE => 3

  • BOOLEAN => 4

Google::Cloud::Channel::V1::Offers::Constraints

Represents the constraints for buying the Offer.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Channel::V1::Offers::CustomerConstraints

Represents constraints required to purchase the Offer for a customer.

Inherits from Protobuf::Message.

Accessors

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: String

    Reseller 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

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: Double

    Discount 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: String

    Link 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

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: Int32

    First resource for which the tier price applies.

  • $msg->last_resource() / $msg->last_resource($value)

    Type: Int32

    Last 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: Int32

    Total 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: Double

    Discount 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.