# Interface StrategyOrBuilder (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.StrategyOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.deploy.v1.StrategyOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.deploy.v1.StrategyOrBuilder)

    public interface StrategyOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCanary()

    public abstract Canary getCanary()

Canary deployment strategy provides progressive percentage based
deployments to a Target.

`.google.events.cloud.deploy.v1.Canary canary = 2;`

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

### getCanaryOrBuilder()

    public abstract CanaryOrBuilder getCanaryOrBuilder()

Canary deployment strategy provides progressive percentage based
deployments to a Target.

`.google.events.cloud.deploy.v1.Canary canary = 2;`

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

### getDeploymentStrategyCase()

    public abstract Strategy.DeploymentStrategyCase getDeploymentStrategyCase()

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

### getStandard()

    public abstract Standard getStandard()

Standard deployment strategy executes a single deploy and allows
verifying the deployment.

`.google.events.cloud.deploy.v1.Standard standard = 1;`

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

### getStandardOrBuilder()

    public abstract StandardOrBuilder getStandardOrBuilder()

Standard deployment strategy executes a single deploy and allows
verifying the deployment.

`.google.events.cloud.deploy.v1.Standard standard = 1;`

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

### hasCanary()

    public abstract boolean hasCanary()

Canary deployment strategy provides progressive percentage based
deployments to a Target.

`.google.events.cloud.deploy.v1.Canary canary = 2;`

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

### hasStandard()

    public abstract boolean hasStandard()

Standard deployment strategy executes a single deploy and allows
verifying the deployment.

`.google.events.cloud.deploy.v1.Standard standard = 1;`

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