# Google Cloud Tpu V2 Client - Class GetGuestAttributesRequest (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.0 1.4.7 1.3.2 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Tpu V2 Client class GetGuestAttributesRequest.

Request for [GetGuestAttributes](https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.Client.TpuClient#_Google_Cloud_Tpu_V2_Client_TpuClient__getGuestAttributes__).

Generated from protobuf message `google.cloud.tpu.v2.GetGuestAttributesRequest`

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name. |
| `↳ query_path` | `string` The guest attributes path to be queried. |
| `↳ worker_ids` | `string[]` The 0-based worker ID. If it is empty, all workers' GuestAttributes will be returned. |

### getName

Required. The resource name.

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

### setName

Required. The resource name.

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

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

### getQueryPath

The guest attributes path to be queried.

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

### setQueryPath

The guest attributes path to be queried.

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

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

### getWorkerIds

The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setWorkerIds

The 0-based worker ID. If it is empty, all workers' GuestAttributes will be
returned.

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

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