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

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

Message for publishing a PrivateOffer

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

Namespace

Google \ Cloud \ CommerceProducer \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. Name of the resource

↳ validate_only bool

Optional. If set to true, validates the request but does not execute it.

getName

Required. Name of the resource

Returns
Type Description
string

setName

Required. Name of the resource

Parameter
Name Description
var string
Returns
Type Description
$this

getValidateOnly

Optional. If set to true, validates the request but does not execute it.

Returns
Type Description
bool

setValidateOnly

Optional. If set to true, validates the request but does not execute it.

Parameter
Name Description
var bool
Returns
Type Description
$this

static::build

Parameter
Name Description
name string

Required. Name of the resource Please see CommerceTransactionClient::privateOfferName() for help formatting this field.

Returns
Type Description
PublishPrivateOfferRequest