NAME

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

SYNOPSIS

use Google::Cloud::Commerceproducer::V1beta::PrivateOffer;

my $msg = Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer->new({
    single_product_offer => $single_product_offer,
    name => $name,
    state => $state,
    publish_requirement_google_review => $publish_requirement_google_review,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/commerceproducer/v1beta/private_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::PrivateOffer::PrivateOffer

Message describing PrivateOffer resource.

Note on OPTIONAL fields: To facilitate saving incomplete draft offers, most fields are categorized as OPTIONAL irrespective of whether they are necessary for a private offer to be valid. Many fields labeled OPTIONAL must be set to publish the offer.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::SingleProductOffer)

    Optional. Configurations for the offer that is associated with a single product.

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

    Type: String

    Identifier. Name of the resource.

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

    Type: Enum (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::State)

    Output only. The state of the private offer.

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

    Type: Message (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PublishRequirementGoogleReview)

    Output only. Information about the Google review process. Present only when the offer is determined to require review by Google.

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

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

    Output only. The creation time.

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

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

    Output only. The last update time.

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

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

    Output only. The time the offer transitioned to PUBLISHED state.

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

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

    Output only. The time the offer transitioned to ACCEPTED state.

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

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

    Output only. The time the offer transited to CANCELLED state.

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

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

    Output only. The time when the offer ended. This can only be set for offers with `ENDED` state.

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

    Type: String

    Output only. Internal note supplied when the offer was cancelled. Present only for cancelled offers and only if a note was supplied.

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

    Type: Message (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::ResellerContact)

    Output only. Information about the reseller contact. Present only for offers created by a reseller.

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

    Type: String

    Optional. Unstructured text content that is not visible to the customer. Intended to be used by partners for storing notes about the private offer. Maximum length: 1500 characters.

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

    Type: Enum (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::OfferDealType)

    Optional. The type of the deal transacted with the offer.

    The deal type is not visible to customers.

    Must be present to publish the offer.

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

    Type: String

    Optional. A title that describes the offer and helps your customers identify it. This title will be visible to the customer. Maximum length: 256 characters. Must be present to publish the offer.

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

    Type: String

    Optional. Unstructured text content that is visible to the customer. Maximum length: 120 characters.

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

    Type: Message (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::PartnerContact)

    Optional. Information about the partner contact. Must be provided when publishing the offer.

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

    Type: Message (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Customer)

    Optional. Information identifying the intended recipient of the offer. Must be provided when publishing the offer.

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

    Type: Message (Google::Type::Datetime::DateTime)

    Optional. Deadline for acceptance of published offers. A published offer not accepted by this time will expire. Only day boundaries in the America/Los_Angeles time zone are supported. Must be present to publish the offer.

    When publishing an offer the deadline must be set to a time in the future not more than 3 months from the time of publishing. For example, if the offer is published on 03/05 at 1PM, then the deadline must be at or before 06/05 12AM America/Los_Angeles time.

    The deadline must also be:

    * Before or equal to the scheduled start time of this offer (if `term.scheduled_start_time` is set and the term's start policy is `SCHEDULED_START_TIME`). * Before or equal to the scheduled end time of this offer, if `term.scheduled_end_time` is set and the term's end policy is `SCHEDULED_END_TIME`. * Before or equal to the upcoming installment start times on this offer. * Before or equal to the amended offer's end time, if the offer amends another private or standard offer. * Before or equal to the start time of the next pending installment of the amended offer, if amending a private offer with custom installments. For example, if the amended offer has installments on 01/01, 02/01, 03/01, 04/01, and today is 02/15, then this offer's `accept_deadline_time` must be at or before 03/01.

    In addition, if the offer amends another private offer, but there is already an accepted upcoming amendment against that private offer, then this deadline must be before or equal to the start time of the accepted upcoming offer. For example, today is 02/15, and this offer (offer C) amends private offer A, and private offer B has already been accepted which also amends private offer A. Private offer B has a start time of 03/01. Then this deadline must be at or before 03/01. Otherwise, on 03/01, private offer B would take effect, superseding offer A. This would mean offer C is no longer amending the currently active offer (Offer A), which is required for valid amendments.

    Once the offer is published, this field is still updatable to extend the deadline of the offer. However, the extension is still limited to be at most 3 months from the time of publishing.

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

    Type: Message (Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOffer::Term)

    Optional. Configuration for the offer term. Must be set when publishing the offer.

Enum: PrivateOffer::State

  • STATE_UNSPECIFIED => 0

  • DRAFT => 1

  • PUBLISHING => 2

  • PUBLISHED => 3

  • ACCEPTED => 4

  • CANCELLED => 5

  • EXPIRED => 6

  • ENDED => 7

Enum: PrivateOffer::OfferDealType

  • OFFER_DEAL_TYPE_UNSPECIFIED => 0

  • CHANNEL_SHIFT => 1

  • MIGRATION => 2

  • NATIVE_RENEWAL => 3

  • NEW => 4

Google::Cloud::Commerceproducer::V1beta::PrivateOffer::PrivateOfferDocument

Message describing the PrivateOfferDocument resource. Used to attach documents to a private offer in state DRAFT. Once a private offer is no longer in state DRAFT, the set of child documents is immutable. Existing documents cannot be updated or deleted, and new documents cannot be added.

A private offer may have at most one document of each type, and may not have both a standard EULA and a custom EULA.

Which document types are required, optional, or not permitted depends on the service the offer is for, and is returned in `Service.document_requirement`.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    Optional. Byte content of an unstructured document. Max size: 4MB

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

    Type: String

    Identifier. Name of the resource.

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

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

    Output only. The creation time of the resource.

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

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

    Output only. The last update time of the resource.

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

    Type: Enum (Google::Cloud::Commerceproducer::V1beta::PrivateOfferDocument::DocumentType)

    Required. The classification type of the document. Used to distinguish between different types of documents that may be attached to a private offer for different business purposes.

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

    Type: String

    Optional. The MIME type of the document. Used to distinguish between different document formats. Supported formats (which may be expanded in the future)

    - 'application/pdf'

Enum: PrivateOfferDocument::DocumentType

  • DOCUMENT_TYPE_UNSPECIFIED => 0

  • CUSTOM_END_USER_LICENSE_AGREEMENT => 1

  • STATEMENT_OF_WORK => 2

  • STANDARD_END_USER_LICENSE_AGREEMENT_V1 => 3

  • STANDARD_END_USER_LICENSE_AGREEMENT_V2 => 4

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.