Google Cloud Channel V1 Client - Class Product (1.0.1)

Reference documentation and code samples for the Google Cloud Channel V1 Client class Product.

A Product is the entity a customer uses when placing an order. For example, Google Workspace, Google Voice, etc.

Generated from protobuf message google.cloud.channel.v1.Product

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Resource Name of the Product. Format: products/{product_id}

↳ marketing_info Google\Cloud\Channel\V1\MarketingInfo

Marketing information for the product.

getName

Resource Name of the Product.

Format: products/{product_id}

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

Resource Name of the Product.

Format: products/{product_id}

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMarketingInfo

Marketing information for the product.

Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Returns
TypeDescription
Google\Cloud\Channel\V1\MarketingInfo|null

hasMarketingInfo

clearMarketingInfo

setMarketingInfo

Marketing information for the product.

Generated from protobuf field .google.cloud.channel.v1.MarketingInfo marketing_info = 2;

Parameter
NameDescription
var Google\Cloud\Channel\V1\MarketingInfo
Returns
TypeDescription
$this