# Google Cloud Retail V2 Client - Class GetDefaultBranchResponse (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class GetDefaultBranchResponse.

Response message of
[CatalogService.GetDefaultBranch](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Client.CatalogServiceClient#_Google_Cloud_Retail_V2_Client_CatalogServiceClient__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` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when this branch is set to default. |
| `↳ note` | `string` This corresponds to [SetDefaultBranchRequest.note](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.SetDefaultBranchRequest#_Google_Cloud_Retail_V2_SetDefaultBranchRequest__getNote__) 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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasSetTime

### clearSetTime

### setSetTime

The time when this branch is set to default.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNote

This corresponds to
[SetDefaultBranchRequest.note](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.SetDefaultBranchRequest#_Google_Cloud_Retail_V2_SetDefaultBranchRequest__getNote__)
field, when this branch was set as default.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNote

This corresponds to
[SetDefaultBranchRequest.note](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.SetDefaultBranchRequest#_Google_Cloud_Retail_V2_SetDefaultBranchRequest__getNote__)
field, when this branch was set as default.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |