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

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

Message for getting a PrivateOffer

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

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

↳ view int

Optional. The view of the PrivateOffer to return. If unspecified, the default view is BASIC.

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

getView

Optional. The view of the PrivateOffer to return.

If unspecified, the default view is BASIC.

Returns
Type Description
int Enum of type PrivateOfferView.

setView

Optional. The view of the PrivateOffer to return.

If unspecified, the default view is BASIC.

Parameter
Name Description
var int

Enum of type PrivateOfferView.

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
GetPrivateOfferRequest