# Google Cloud Lustre V1 Client - Class GetInstanceRequest (0.4.0)

0.4.0 (latest) 0.3.2 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Lustre V1 Client class GetInstanceRequest.

Message for getting a Instance

Generated from protobuf message `google.cloud.lustre.v1.GetInstanceRequest`

## Namespace

Google \\ Cloud \\ Lustre \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The instance resource name, in the format `projects/{projectId}/locations/{location}/instances/{instanceId}`. |

### getName

Required. The instance resource name, in the format
`projects/{projectId}/locations/{location}/instances/{instanceId}`.

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

### setName

Required. The instance resource name, in the format
`projects/{projectId}/locations/{location}/instances/{instanceId}`.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The instance resource name, in the format `projects/{projectId}/locations/{location}/instances/{instanceId}`. Please see LustreClient::instanceName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-lustre/latest/V1.GetInstanceRequest` |   |