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

    public interface CanaryDeploymentOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getPercentages(int index)

    public abstract int getPercentages(int index)

Required. The percentage based deployments that will occur as a part of a
`Rollout`. List is expected in ascending order and each integer n is
0 \<= n \< 100.

`repeated int32 percentages = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The percentages at the given index. |

### getPercentagesCount()

    public abstract int getPercentagesCount()

Required. The percentage based deployments that will occur as a part of a
`Rollout`. List is expected in ascending order and each integer n is
0 \<= n \< 100.

`repeated int32 percentages = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of percentages. |

### getPercentagesList()

    public abstract List<Integer> getPercentagesList()

Required. The percentage based deployments that will occur as a part of a
`Rollout`. List is expected in ascending order and each integer n is
0 \<= n \< 100.

`repeated int32 percentages = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html>` | A list containing the percentages. |

### getPostdeploy()

    public abstract Postdeploy getPostdeploy()

Optional. Configuration for the postdeploy job of the last phase. If this
is not configured, there will be no postdeploy job for this phase.

`.google.events.cloud.deploy.v1.Postdeploy postdeploy = 4;`

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

### getPostdeployOrBuilder()

    public abstract PostdeployOrBuilder getPostdeployOrBuilder()

Optional. Configuration for the postdeploy job of the last phase. If this
is not configured, there will be no postdeploy job for this phase.

`.google.events.cloud.deploy.v1.Postdeploy postdeploy = 4;`

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

### getPredeploy()

    public abstract Predeploy getPredeploy()

Optional. Configuration for the predeploy job of the first phase. If this
is not configured, there will be no predeploy job for this phase.

`.google.events.cloud.deploy.v1.Predeploy predeploy = 3;`

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

### getPredeployOrBuilder()

    public abstract PredeployOrBuilder getPredeployOrBuilder()

Optional. Configuration for the predeploy job of the first phase. If this
is not configured, there will be no predeploy job for this phase.

`.google.events.cloud.deploy.v1.Predeploy predeploy = 3;`

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

### getVerify()

    public abstract boolean getVerify()

Whether to run verify tests after each percentage deployment.

`bool verify = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The verify. |

### hasPostdeploy()

    public abstract boolean hasPostdeploy()

Optional. Configuration for the postdeploy job of the last phase. If this
is not configured, there will be no postdeploy job for this phase.

`.google.events.cloud.deploy.v1.Postdeploy postdeploy = 4;`

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

### hasPredeploy()

    public abstract boolean hasPredeploy()

Optional. Configuration for the predeploy job of the first phase. If this
is not configured, there will be no predeploy job for this phase.

`.google.events.cloud.deploy.v1.Predeploy predeploy = 3;`

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