# Google Cloud Notebooks V2 Client - Class DiagnoseInstanceRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V2 Client class DiagnoseInstanceRequest.

Request for creating a notebook instance diagnostic file.

Generated from protobuf message `google.cloud.notebooks.v2.DiagnoseInstanceRequest`

## Namespace

Google \\ Cloud \\ Notebooks \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` |
| `↳ diagnostic_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.DiagnosticConfig` Required. Defines flags that are used to run the diagnostic tool |
| `↳ timeout_minutes` | `int` Optional. Maxmium amount of time in minutes before the operation times out. |

### getName

Required. Format:
`projects/{project_id}/locations/{location}/instances/{instance_id}`

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

### setName

Required. Format:
`projects/{project_id}/locations/{location}/instances/{instance_id}`

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

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

### getDiagnosticConfig

Required. Defines flags that are used to run the diagnostic tool

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

### hasDiagnosticConfig

### clearDiagnosticConfig

### setDiagnosticConfig

Required. Defines flags that are used to run the diagnostic tool

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

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

### getTimeoutMinutes

Optional. Maxmium amount of time in minutes before the operation times out.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setTimeoutMinutes

Optional. Maxmium amount of time in minutes before the operation times out.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` Please see NotebookServiceClient::instanceName() for help formatting this field. |
| `diagnosticConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.DiagnosticConfig` Required. Defines flags that are used to run the diagnostic tool |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V2.DiagnoseInstanceRequest` |   |