# Google Cloud Tpu V2 Client - Class GuestAttributes (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 GuestAttributes.

A guest attributes.

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

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ query_path` | `string` The path to be queried. This can be the default namespace ('/') or a nested namespace ('/\<namespace\>/') or a specified key ('/\<namespace\>/\<key\>') |
| `↳ query_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.GuestAttributesValue` The value of the requested queried path. |

### getQueryPath

The path to be queried. This can be the default namespace ('/') or a
nested namespace ('/\<namespace\>/') or a specified key
('/\<namespace\>/\<key\>')

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

### setQueryPath

The path to be queried. This can be the default namespace ('/') or a
nested namespace ('/\<namespace\>/') or a specified key
('/\<namespace\>/\<key\>')

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

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

### getQueryValue

The value of the requested queried path.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.GuestAttributesValue|null` |   |

### hasQueryValue

### clearQueryValue

### setQueryValue

The value of the requested queried path.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.GuestAttributesValue` |

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