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

    public interface MetadataOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAutomation()

    public abstract AutomationRolloutMetadata getAutomation()

Output only. AutomationRolloutMetadata contains the information about the
interactions between Automation service and this rollout.

`.google.events.cloud.deploy.v1.AutomationRolloutMetadata automation = 2;`

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

### getAutomationOrBuilder()

    public abstract AutomationRolloutMetadataOrBuilder getAutomationOrBuilder()

Output only. AutomationRolloutMetadata contains the information about the
interactions between Automation service and this rollout.

`.google.events.cloud.deploy.v1.AutomationRolloutMetadata automation = 2;`

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

### getCloudRun()

    public abstract CloudRunMetadata getCloudRun()

Output only. The name of the Cloud Run Service that is associated with a
`Rollout`.

`.google.events.cloud.deploy.v1.CloudRunMetadata cloud_run = 1;`

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

### getCloudRunOrBuilder()

    public abstract CloudRunMetadataOrBuilder getCloudRunOrBuilder()

Output only. The name of the Cloud Run Service that is associated with a
`Rollout`.

`.google.events.cloud.deploy.v1.CloudRunMetadata cloud_run = 1;`

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

### getCustom()

    public abstract CustomMetadata getCustom()

Output only. Custom metadata provided by user-defined `Rollout` operations.

`.google.events.cloud.deploy.v1.CustomMetadata custom = 3;`

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

### getCustomOrBuilder()

    public abstract CustomMetadataOrBuilder getCustomOrBuilder()

Output only. Custom metadata provided by user-defined `Rollout` operations.

`.google.events.cloud.deploy.v1.CustomMetadata custom = 3;`

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

### hasAutomation()

    public abstract boolean hasAutomation()

Output only. AutomationRolloutMetadata contains the information about the
interactions between Automation service and this rollout.

`.google.events.cloud.deploy.v1.AutomationRolloutMetadata automation = 2;`

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

### hasCloudRun()

    public abstract boolean hasCloudRun()

Output only. The name of the Cloud Run Service that is associated with a
`Rollout`.

`.google.events.cloud.deploy.v1.CloudRunMetadata cloud_run = 1;`

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

### hasCustom()

    public abstract boolean hasCustom()

Output only. Custom metadata provided by user-defined `Rollout` operations.

`.google.events.cloud.deploy.v1.CustomMetadata custom = 3;`

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