1.1.6 (latest) 1.1.4 1.0.4 0.5.5 0.4.2 0.3.2 0.2.7 Reference documentation and code samples for the Google Cloud Apigee Registry V1 Client class Instance.

An Instance represents the instance resources of the Registry.

Currently, only one instance is allowed for each project.

Generated from protobuf message `google.cloud.apigeeregistry.v1.Instance`

## Namespace

Google \\ Cloud \\ ApigeeRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Format: `projects/*/locations/*/instance`.

Currently only `locations/global` is supported.

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

### setName

Format: `projects/*/locations/*/instance`.

Currently only `locations/global` is supported.

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

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

### getCreateTime

Output only. Creation timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Creation timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUpdateTime

Output only. Last update timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Last update timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getState

Output only. The current state of the Instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Instance.State). |

### setState

Output only. The current state of the Instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Instance.State). |

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

### getStateMessage

Output only. Extra information of Instance.State if the state is `FAILED`.

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

### setStateMessage

Output only. Extra information of Instance.State if the state is `FAILED`.

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

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

### getConfig

Required. Config of the Instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Instance.Config|null` |   |

### hasConfig

### clearConfig

### setConfig

Required. Config of the Instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-registry/latest/V1.Instance.Config` |

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