Google Cloud Retail V2 Client - Class GetDefaultBranchResponse (1.5.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
NameDescription
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
TypeDescription
string

setBranch

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSetTime

The time when this branch is set to default.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasSetTime

clearSetTime

setSetTime

The time when this branch is set to default.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getNote

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

Returns
TypeDescription
string

setNote

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this