# Google Cloud Notebooks V1 Client - Class ReportInstanceInfoRequest (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 V1 Client class ReportInstanceInfoRequest.

Request for notebook instances to report information to Notebooks API.

Generated from protobuf message `google.cloud.notebooks.v1.ReportInstanceInfoRequest`

## Namespace

Google \\ Cloud \\ Notebooks \\ V1

## 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}` |
| `↳ vm_id` | `string` Required. The VM hardware token for authenticating the VM. <https://cloud.google.com/compute/docs/instances/verifying-instance-identity> |
| `↳ metadata` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The metadata reported to Notebooks API. This will be merged to the instance metadata store |

### 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` |   |

### getVmId

Required. The VM hardware token for authenticating the VM.

<https://cloud.google.com/compute/docs/instances/verifying-instance-identity>

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

### setVmId

Required. The VM hardware token for authenticating the VM.

<https://cloud.google.com/compute/docs/instances/verifying-instance-identity>

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

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

### getMetadata

The metadata reported to Notebooks API. This will be merged to the instance
metadata store

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setMetadata

The metadata reported to Notebooks API. This will be merged to the instance
metadata store

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

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