# Interface ClipOrBuilder (0.95.0)

0.95.0 (latest) 0.93.0 0.90.0 0.89.0 0.87.0 0.85.0 0.84.0 0.82.0 0.80.0 0.78.0 0.77.0 0.76.0 0.75.0 0.74.0 0.72.0 0.70.0 0.69.0 0.66.0 0.65.0 0.64.0 0.62.0 0.61.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.53.0 0.51.0 0.50.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.8 0.3.0

    public interface ClipOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

The labels associated with this resource. Each label is a key-value pair.

`map<string, string> labels = 5;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getClipManifests(int index)

    public abstract Clip.ClipManifest getClipManifests(int index)

Required. A list of clip manifests. Currently only one clip manifest is
allowed.

`
repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.ClipManifest` |   |

### getClipManifestsCount()

    public abstract int getClipManifestsCount()

Required. A list of clip manifests. Currently only one clip manifest is
allowed.

`
repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED];
`

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

### getClipManifestsList()

    public abstract List<Clip.ClipManifest> getClipManifestsList()

Required. A list of clip manifests. Currently only one clip manifest is
allowed.

`
repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.ClipManifest>` |   |

### getClipManifestsOrBuilder(int index)

    public abstract Clip.ClipManifestOrBuilder getClipManifestsOrBuilder(int index)

Required. A list of clip manifests. Currently only one clip manifest is
allowed.

`
repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder` |   |

### getClipManifestsOrBuilderList()

    public abstract List<? extends Clip.ClipManifestOrBuilder> getClipManifestsOrBuilderList()

Required. A list of clip manifests. Currently only one clip manifest is
allowed.

`
repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder>` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The creation timestamp of the clip resource.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of the clip resource.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getError()

    public abstract Status getError()

Output only. An error object that describes the reason for the failure.
This property only presents when `state` is `FAILED`.

`.google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.Status` | The error. |

### getErrorOrBuilder()

    public abstract StatusOrBuilder getErrorOrBuilder()

Output only. An error object that describes the reason for the failure.
This property only presents when `state` is `FAILED`.

`.google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.StatusOrBuilder` |   |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.ClipOrBuilder#com_google_cloud_video_livestream_v1_ClipOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

The labels associated with this resource. Each label is a key-value pair.

`map<string, string> labels = 5;`

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

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

The labels associated with this resource. Each label is a key-value pair.

`map<string, string> labels = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

The labels associated with this resource. Each label is a key-value pair.

`map<string, string> labels = 5;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

The labels associated with this resource. Each label is a key-value pair.

`map<string, string> labels = 5;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getName()

    public abstract String getName()

The resource name of the clip, in the following format:
`projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
`{clipId}` is a user-specified resource id that conforms to the following
criteria:

1. 1 character minimum, 63 characters maximum
2. Only contains letters, digits, underscores, and hyphens

`string name = 1;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

The resource name of the clip, in the following format:
`projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`.
`{clipId}` is a user-specified resource id that conforms to the following
criteria:

1. 1 character minimum, 63 characters maximum
2. Only contains letters, digits, underscores, and hyphens

`string name = 1;`

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

### getOutputType()

    public abstract Clip.OutputType getOutputType()

Optional. OutputType of the clip. If not specified, the default value is
MANIFEST.

`
.google.cloud.video.livestream.v1.Clip.OutputType output_type = 13 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.OutputType` | The outputType. |

### getOutputTypeValue()

    public abstract int getOutputTypeValue()

Optional. OutputType of the clip. If not specified, the default value is
MANIFEST.

`
.google.cloud.video.livestream.v1.Clip.OutputType output_type = 13 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for outputType. |

### getOutputUri()

    public abstract String getOutputUri()

Specify the `output_uri` to determine where to place the clip segments and
clip manifest files in Cloud Storage. The manifests specified in
`clip_manifests` fields will be placed under this URI. The exact URI of the
generated manifests will be provided in `clip_manifests.output_uri` for
each manifest.
Example:
"output_uri": "gs://my-bucket/clip-outputs"
"clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"

`string output_uri = 7;`

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

### getOutputUriBytes()

    public abstract ByteString getOutputUriBytes()

Specify the `output_uri` to determine where to place the clip segments and
clip manifest files in Cloud Storage. The manifests specified in
`clip_manifests` fields will be placed under this URI. The exact URI of the
generated manifests will be provided in `clip_manifests.output_uri` for
each manifest.
Example:
"output_uri": "gs://my-bucket/clip-outputs"
"clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"

`string output_uri = 7;`

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

### getSlices(int index)

    public abstract Clip.Slice getSlices(int index)

The specified ranges of segments to generate a clip.

`repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.Slice` |   |

### getSlicesCount()

    public abstract int getSlicesCount()

The specified ranges of segments to generate a clip.

`repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10;`

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

### getSlicesList()

    public abstract List<Clip.Slice> getSlicesList()

The specified ranges of segments to generate a clip.

`repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.Slice>` |   |

### getSlicesOrBuilder(int index)

    public abstract Clip.SliceOrBuilder getSlicesOrBuilder(int index)

The specified ranges of segments to generate a clip.

`repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder` |   |

### getSlicesOrBuilderList()

    public abstract List<? extends Clip.SliceOrBuilder> getSlicesOrBuilderList()

The specified ranges of segments to generate a clip.

`repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder>` |   |

### getStartTime()

    public abstract Timestamp getStartTime()

Output only. The timestamp when the clip request starts to be processed.

`.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

Output only. The timestamp when the clip request starts to be processed.

`.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getState()

    public abstract Clip.State getState()

Output only. The state of the clip.

`
.google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/com.google.cloud.video.livestream.v1.Clip.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The state of the clip.

`
.google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The update timestamp of the clip resource.

`.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp of the clip resource.

`.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The creation timestamp of the clip resource.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasError()

    public abstract boolean hasError()

Output only. An error object that describes the reason for the failure.
This property only presents when `state` is `FAILED`.

`.google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### hasStartTime()

    public abstract boolean hasStartTime()

Output only. The timestamp when the clip request starts to be processed.

`.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The update timestamp of the clip resource.

`.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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