Google Shopping Css V1 Client - Class AccountLabel (0.2.0)

Reference documentation and code samples for the Google Shopping Css V1 Client class AccountLabel.

Label assigned by CSS domain or CSS group to one of its sub-accounts.

Generated from protobuf message google.shopping.css.v1.AccountLabel

Namespace

Google \ Shopping \ Css \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the label. Format: accounts/{account}/labels/{label}

↳ label_id int|string

Output only. The ID of the label.

↳ account_id int|string

Output only. The ID of account this label belongs to.

↳ display_name string

The display name of this label.

↳ description string

The description of this label.

↳ label_type int

Output only. The type of this label.

getName

The resource name of the label.

Format: accounts/{account}/labels/{label}

Returns
TypeDescription
string

setName

The resource name of the label.

Format: accounts/{account}/labels/{label}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabelId

Output only. The ID of the label.

Returns
TypeDescription
int|string

setLabelId

Output only. The ID of the label.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getAccountId

Output only. The ID of account this label belongs to.

Returns
TypeDescription
int|string

setAccountId

Output only. The ID of account this label belongs to.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDisplayName

The display name of this label.

Returns
TypeDescription
string

hasDisplayName

clearDisplayName

setDisplayName

The display name of this label.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The description of this label.

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

The description of this label.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabelType

Output only. The type of this label.

Returns
TypeDescription
int

setLabelType

Output only. The type of this label.

Parameter
NameDescription
var int
Returns
TypeDescription
$this