# Class DvrSession (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

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

DvrSession is a sub-resource under channel. Each DvrSession
represents a DVR recording of the live stream for a specific
time range.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The resource name of the DVR session, in the following format: `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`. `{dvrSessionId}` 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 time. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The update time. |
| `labels` | `MutableMapping[str, str]` Optional. User-defined key/value metadata. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.DvrSession.State` Output only. The state of the clip. |
| `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`. |
| `dvr_manifests` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.DvrSession.DvrManifest]` Required. A list of DVR manifests. Currently only one DVR manifest is allowed. |
| `dvr_windows` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.DvrSession.DvrWindow]` Required. The specified ranges of segments to generate a DVR recording. |

## Classes

### DvrManifest

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

DvrManifest identifies a source manifest and specifies a file
name for the generated DVR manifest.

### DvrWindow

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

DvrWindow represents a DVR window.

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

### 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. |

### State

    State(value)

State of the DVR session.