0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class RuntimeConfig.

RuntimeConfig represents the runtimes where the application is
deployed.

Generated from protobuf message `google.cloud.developerconnect.v1.RuntimeConfig`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gke_workload` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GKEWorkload` Output only. Google Kubernetes Engine runtime. |
| `↳ google_cloud_run` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GoogleCloudRun` Output only. Cloud Run runtime. |
| `↳ app_hub_workload` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.AppHubWorkload` Output only. App Hub Workload. |
| `↳ app_hub_service` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.AppHubService` Output only. App Hub Service. |
| `↳ uri` | `string` Required. Immutable. The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name. |
| `↳ state` | `int` Output only. The state of the Runtime. |

### getGkeWorkload

Output only. Google Kubernetes Engine runtime.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GKEWorkload|null` |   |

### hasGkeWorkload

### setGkeWorkload

Output only. Google Kubernetes Engine runtime.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GKEWorkload` |

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

### getGoogleCloudRun

Output only. Cloud Run runtime.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GoogleCloudRun|null` |   |

### hasGoogleCloudRun

### setGoogleCloudRun

Output only. Cloud Run runtime.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.GoogleCloudRun` |

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

### getAppHubWorkload

Output only. App Hub Workload.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.AppHubWorkload|null` |   |

### hasAppHubWorkload

### setAppHubWorkload

Output only. App Hub Workload.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.AppHubWorkload` |

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

### getAppHubService

Output only. App Hub Service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.AppHubService|null` |   |

### hasAppHubService

### setAppHubService

Output only. App Hub Service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.AppHubService` |

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

### getUri

Required. Immutable. The URI of the runtime configuration.

For GKE, this is the cluster name.
For Cloud Run, this is the service name.

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

### setUri

Required. Immutable. The URI of the runtime configuration.

For GKE, this is the cluster name.
For Cloud Run, this is the service name.

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

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

### getState

Output only. The state of the Runtime.

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

### setState

Output only. The state of the Runtime.

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

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

### getRuntime

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

### getDerivedFrom

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