Google Cloud Retail V2 Client - Class GetDefaultBranchResponse (1.7.0)

Reference documentation and code samples for the Google Cloud Retail V2 Client class GetDefaultBranchResponse.

Response message of CatalogService.GetDefaultBranch.

Generated from protobuf message google.cloud.retail.v2.GetDefaultBranchResponse

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ branch string

Full resource name of the branch id currently set as default branch.

↳ set_time Google\Protobuf\Timestamp

The time when this branch is set to default.

↳ note string

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

getBranch

Full resource name of the branch id currently set as default branch.

Returns
Type Description
string

setBranch

Full resource name of the branch id currently set as default branch.

Parameter
Name Description
var string
Returns
Type Description
$this

getSetTime

The time when this branch is set to default.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasSetTime

clearSetTime

setSetTime

The time when this branch is set to default.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getNote

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

Returns
Type Description
string

setNote

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.

Parameter
Name Description
var string
Returns
Type Description
$this