NAME

Google::Cloud::Commerceproducer::V1beta::StandardOffer - Compiled Protocol Buffers messages for google/cloud/commerceproducer/v1beta/standard_offer.proto

SYNOPSIS

use Google::Cloud::Commerceproducer::V1beta::StandardOffer;

my $msg = Google::Cloud::Commerceproducer::V1beta::StandardOffer::StandardOffer->new({
    term_duration_months => $term_duration_months,
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
});

# Read or update a field
my $val = $msg->term_duration_months();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Commerceproducer::V1beta::StandardOffer::StandardOffer->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/commerceproducer/v1beta/standard_offer.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::Commerceproducer::V1beta::StandardOffer::StandardOffer

Message describing the StandardOffer resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Output only. Term duration of the offer in months. Applicable only to offers with a subscription price model. Additional forms of offer term may be added in the future.

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

    Type: String

    Identifier. Name of resource.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Creation time of the offer.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Last update time of the offer.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Effective time of the offer. Prior to this time, the offer cannot be purchased or used as the base standard offer of a private offer.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Expire time of the offer. An offer is expired if its expire time is in the past. An expired standard offer cannot be purchased or used as the base standard offer of a private offer.

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

    Type: String

    Output only. Identifier that distinguishes between different service levels of the same product that constitute distinct offerings to customers with different pricing.

    The service levels of a product are also referred to in some cases as the product's 'plans', and the `service_level` value is referred to in some cases as the "plan ID".

    Multiple non-expired standard offers can share the same service level when they are subscription offers for different term durations.

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

    Type: String

    Output only. Title of the service level.

    Not included for `STANDARD_OFFER_VIEW_BASIC`.

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

    Type: Message (Google::Cloud::Commerceproducer::V1beta::StandardOffer::StandardOffer::PriceModel)

    Output only. Price model of the offer.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Commerceproducer::V1beta::StandardOffer::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.