# Interface CanaryOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.CanaryOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.deploy.v1.CanaryOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.deploy.v1.CanaryOrBuilder)

    public interface CanaryOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCanaryDeployment()

    public abstract CanaryDeployment getCanaryDeployment()

Configures the progressive based deployment for a Target.

`.google.events.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.CanaryDeployment` | The canaryDeployment. |

### getCanaryDeploymentOrBuilder()

    public abstract CanaryDeploymentOrBuilder getCanaryDeploymentOrBuilder()

Configures the progressive based deployment for a Target.

`.google.events.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.CanaryDeploymentOrBuilder` |   |

### getCustomCanaryDeployment()

    public abstract CustomCanaryDeployment getCustomCanaryDeployment()

Configures the progressive based deployment for a Target, but allows
customizing at the phase level where a phase represents each of the
percentage deployments.

`.google.events.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.CustomCanaryDeployment` | The customCanaryDeployment. |

### getCustomCanaryDeploymentOrBuilder()

    public abstract CustomCanaryDeploymentOrBuilder getCustomCanaryDeploymentOrBuilder()

Configures the progressive based deployment for a Target, but allows
customizing at the phase level where a phase represents each of the
percentage deployments.

`.google.events.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.CustomCanaryDeploymentOrBuilder` |   |

### getModeCase()

    public abstract Canary.ModeCase getModeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.Canary.ModeCase` |   |

### getRuntimeConfig()

    public abstract RuntimeConfig getRuntimeConfig()

Optional. Runtime specific configurations for the deployment strategy. The
runtime configuration is used to determine how Cloud Deploy will split
traffic to enable a progressive deployment.

`.google.events.cloud.deploy.v1.RuntimeConfig runtime_config = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.RuntimeConfig` | The runtimeConfig. |

### getRuntimeConfigOrBuilder()

    public abstract RuntimeConfigOrBuilder getRuntimeConfigOrBuilder()

Optional. Runtime specific configurations for the deployment strategy. The
runtime configuration is used to determine how Cloud Deploy will split
traffic to enable a progressive deployment.

`.google.events.cloud.deploy.v1.RuntimeConfig runtime_config = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.deploy.v1.RuntimeConfigOrBuilder` |   |

### hasCanaryDeployment()

    public abstract boolean hasCanaryDeployment()

Configures the progressive based deployment for a Target.

`.google.events.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the canaryDeployment field is set. |

### hasCustomCanaryDeployment()

    public abstract boolean hasCustomCanaryDeployment()

Configures the progressive based deployment for a Target, but allows
customizing at the phase level where a phase represents each of the
percentage deployments.

`.google.events.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the customCanaryDeployment field is set. |

### hasRuntimeConfig()

    public abstract boolean hasRuntimeConfig()

Optional. Runtime specific configurations for the deployment strategy. The
runtime configuration is used to determine how Cloud Deploy will split
traffic to enable a progressive deployment.

`.google.events.cloud.deploy.v1.RuntimeConfig runtime_config = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the runtimeConfig field is set. |