# Class Clip (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.1 1.7.4 1.6.0 1.5.2 1.4.1 1.3.0 1.2.1 1.1.0 1.0.4 0.2.0 0.1.5

    Clip(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Clip is a sub-resource under channel. Each clip represents a
clipping operation that generates a VOD playlist from its
channel given a set of timestamp ranges.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` 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 |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The creation timestamp of the clip resource. |
| `start_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The timestamp when the clip request starts to be processed. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The update timestamp of the clip resource. |
| `labels` | `MutableMapping[str, str]` The labels associated with this resource. Each label is a key-value pair. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.Clip.State` Output only. The state of the clip. |
| `output_uri` | `str` 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". |
| `error` | `google.rpc.status_pb2.Status` Output only. An error object that describes the reason for the failure. This property only presents when `state` is `FAILED`. |
| `slices` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.Clip.Slice]` The specified ranges of segments to generate a clip. |
| `clip_manifests` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.Clip.ClipManifest]` Required. A list of clip manifests. Currently only one clip manifest is allowed. |
| `output_type` | `https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.Clip.OutputType` Optional. OutputType of the clip. If not specified, the default value is MANIFEST. |

## Classes

### ClipManifest

    ClipManifest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

ClipManifest identifies a source manifest for the generated
clip manifest.

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### OutputType

    OutputType(value)

OutputType represents the output type of the clip.

### Slice

    Slice(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Slice represents a slice of the requested clip.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### State

    State(value)

State of clipping operation.

### TimeSlice

    TimeSlice(mapping=None, *, ignore_unknown_fields=False, **kwargs)

TimeSlice represents a tuple of Unix epoch timestamps that
specifies a time range.