Google Cloud Channel V1 Client - Class Sku (1.7.0)

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

Represents a product's purchasable Stock Keeping Unit (SKU).

SKUs represent the different variations of the product. For example, Google Workspace Business Standard and Google Workspace Business Plus are Google Workspace product SKUs.

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

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}

↳ marketing_info
Google\Cloud\Channel\V1\MarketingInfo

Marketing information for the SKU.

↳ product
Google\Cloud\Channel\V1\Product

Product the SKU is associated with.

getName

Resource Name of the SKU.

Format: products/{product_id}/skus/{sku_id}

Returns
Type
Description
string

setName

Resource Name of the SKU.

Format: products/{product_id}/skus/{sku_id}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getMarketingInfo

Marketing information for the SKU.

Returns
Type
Description

hasMarketingInfo

clearMarketingInfo

setMarketingInfo

Marketing information for the SKU.

Parameter
Name
Description
Returns
Type
Description
$this

getProduct

Product the SKU is associated with.

Returns
Type
Description

hasProduct

clearProduct

setProduct

Product the SKU is associated with.

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: