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

    public interface CloudRunMetadataOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getJob()

    public abstract String getJob()

Output only. The name of the Cloud Run job that is associated with a
`Rollout`. Format is
`projects/{project}/locations/{location}/jobs/{job_name}`.

`string job = 4;`

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

### getJobBytes()

    public abstract ByteString getJobBytes()

Output only. The name of the Cloud Run job that is associated with a
`Rollout`. Format is
`projects/{project}/locations/{location}/jobs/{job_name}`.

`string job = 4;`

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

### getRevision()

    public abstract String getRevision()

Output only. The Cloud Run Revision id associated with a `Rollout`.

`string revision = 3;`

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

### getRevisionBytes()

    public abstract ByteString getRevisionBytes()

Output only. The Cloud Run Revision id associated with a `Rollout`.

`string revision = 3;`

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

### getService()

    public abstract String getService()

Output only. The name of the Cloud Run Service that is associated with a
`Rollout`. Format is
`projects/{project}/locations/{location}/services/{service}`.

`string service = 1;`

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

### getServiceBytes()

    public abstract ByteString getServiceBytes()

Output only. The name of the Cloud Run Service that is associated with a
`Rollout`. Format is
`projects/{project}/locations/{location}/services/{service}`.

`string service = 1;`

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

### getServiceUrls(int index)

    public abstract String getServiceUrls(int index)

Output only. The Cloud Run Service urls that are associated with a
`Rollout`.

`repeated string service_urls = 2;`

| **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/8/docs/api/java/lang/String.html` | The serviceUrls at the given index. |

### getServiceUrlsBytes(int index)

    public abstract ByteString getServiceUrlsBytes(int index)

Output only. The Cloud Run Service urls that are associated with a
`Rollout`.

`repeated string service_urls = 2;`

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the serviceUrls at the given index. |

### getServiceUrlsCount()

    public abstract int getServiceUrlsCount()

Output only. The Cloud Run Service urls that are associated with a
`Rollout`.

`repeated string service_urls = 2;`

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

### getServiceUrlsList()

    public abstract List<String> getServiceUrlsList()

Output only. The Cloud Run Service urls that are associated with a
`Rollout`.

`repeated string service_urls = 2;`

| **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/String.html>` | A list containing the serviceUrls. |