Google Cloud Commerce Producer V1beta Client - Class OptionalOffers (0.2.0)

Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class OptionalOffers.

A wrapper message containing offers that can optionally be amended.

Generated from protobuf message google.cloud.commerceproducer.v1beta.ResolveAmendmentTargetResponse.OptionalOffers

Namespace

Google \ Cloud \ CommerceProducer \ V1beta \ ResolveAmendmentTargetResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ private_offers string[]

A list of existing private offers that are eligible to be amended. When creating a new private offer, the client may choose to populate the single_product_offer.amended_private_offer field with one of these resource names. Alternatively, the client may leave the field unset to create a brand new offer.

getPrivateOffers

A list of existing private offers that are eligible to be amended.

When creating a new private offer, the client may choose to populate the single_product_offer.amended_private_offer field with one of these resource names. Alternatively, the client may leave the field unset to create a brand new offer.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setPrivateOffers

A list of existing private offers that are eligible to be amended.

When creating a new private offer, the client may choose to populate the single_product_offer.amended_private_offer field with one of these resource names. Alternatively, the client may leave the field unset to create a brand new offer.

Parameter
Name Description
var string[]
Returns
Type Description
$this