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

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

Message in response to ResolveAmendmentTarget.

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

Namespace

Google \ Cloud \ CommerceProducer \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ required_private_offer string

The resource name of an existing private offer that MUST be amended. If this is set, the new private offer the client creates must populate the single_product_offer.amended_private_offer field with this value.

↳ required_standard_offer string

The resource name of an existing standard offer that MUST be amended. If this is set, the new private offer the client creates must populate the single_product_offer.amended_standard_offer field with this value.

↳ optional_offers ResolveAmendmentTargetResponse\OptionalOffers

A list of existing offers that may optionally be amended.

getRequiredPrivateOffer

The resource name of an existing private offer that MUST be amended.

If this is set, the new private offer the client creates must populate the single_product_offer.amended_private_offer field with this value.

Returns
Type Description
string

hasRequiredPrivateOffer

setRequiredPrivateOffer

The resource name of an existing private offer that MUST be amended.

If this is set, the new private offer the client creates must populate the single_product_offer.amended_private_offer field with this value.

Parameter
Name Description
var string
Returns
Type Description
$this

getRequiredStandardOffer

The resource name of an existing standard offer that MUST be amended.

If this is set, the new private offer the client creates must populate the single_product_offer.amended_standard_offer field with this value.

Returns
Type Description
string

hasRequiredStandardOffer

setRequiredStandardOffer

The resource name of an existing standard offer that MUST be amended.

If this is set, the new private offer the client creates must populate the single_product_offer.amended_standard_offer field with this value.

Parameter
Name Description
var string
Returns
Type Description
$this

getOptionalOffers

A list of existing offers that may optionally be amended.

Returns
Type Description
ResolveAmendmentTargetResponse\OptionalOffers|null

hasOptionalOffers

setOptionalOffers

A list of existing offers that may optionally be amended.

Parameter
Name Description
var ResolveAmendmentTargetResponse\OptionalOffers
Returns
Type Description
$this

getAmendmentRequirement

Returns
Type Description
string