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

    public interface PromoteReleaseRuleOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCondition()

    public abstract AutomationRuleCondition getCondition()

Output only. Information around the state of the Automation rule.

`.google.events.cloud.deploy.v1.AutomationRuleCondition condition = 5;`

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

### getConditionOrBuilder()

    public abstract AutomationRuleConditionOrBuilder getConditionOrBuilder()

Output only. Information around the state of the Automation rule.

`.google.events.cloud.deploy.v1.AutomationRuleCondition condition = 5;`

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

### getDestinationPhase()

    public abstract String getDestinationPhase()

Optional. The starting phase of the rollout created by this operation.
Default to the first phase.

`string destination_phase = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The destinationPhase. |

### getDestinationPhaseBytes()

    public abstract ByteString getDestinationPhaseBytes()

Optional. The starting phase of the rollout created by this operation.
Default to the first phase.

`string destination_phase = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for destinationPhase. |

### getDestinationTargetId()

    public abstract String getDestinationTargetId()

Optional. The ID of the stage in the pipeline to which this `Release` is
deploying. If unspecified, default it to the next stage in the promotion
flow. The value of this field could be one of the following:

- The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline.
- "@next", the next target in the promotion sequence.

`string destination_target_id = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The destinationTargetId. |

### getDestinationTargetIdBytes()

    public abstract ByteString getDestinationTargetIdBytes()

Optional. The ID of the stage in the pipeline to which this `Release` is
deploying. If unspecified, default it to the next stage in the promotion
flow. The value of this field could be one of the following:

- The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline.
- "@next", the next target in the promotion sequence.

`string destination_target_id = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for destinationTargetId. |

### getId()

    public abstract String getId()

Required. ID of the rule. This id must be unique in the `Automation`
resource to which this rule belongs. The format is `a-z{0,62}`.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

Required. ID of the rule. This id must be unique in the `Automation`
resource to which this rule belongs. The format is `a-z{0,62}`.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getWait()

    public abstract Duration getWait()

Optional. How long the release need to be paused until being promoted to
the next target.

`.google.protobuf.Duration wait = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The wait. |

### getWaitOrBuilder()

    public abstract DurationOrBuilder getWaitOrBuilder()

Optional. How long the release need to be paused until being promoted to
the next target.

`.google.protobuf.Duration wait = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### hasCondition()

    public abstract boolean hasCondition()

Output only. Information around the state of the Automation rule.

`.google.events.cloud.deploy.v1.AutomationRuleCondition condition = 5;`

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

### hasWait()

    public abstract boolean hasWait()

Optional. How long the release need to be paused until being promoted to
the next target.

`.google.protobuf.Duration wait = 2;`

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