# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::DvrSession (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::DvrSession.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation time.

### #dvr_manifests

    def dvr_manifests() -> ::Array<::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrManifest>

**Returns**

- (::Array\<[::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrManifest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DvrSession-DvrManifest)\>) --- Required. A list of DVR manifests. Currently only one DVR manifest is allowed.

### #dvr_manifests=

    def dvr_manifests=(value) -> ::Array<::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrManifest>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrManifest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DvrSession-DvrManifest)\>) --- Required. A list of DVR manifests. Currently only one DVR manifest is allowed.
**Returns**

- (::Array\<[::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrManifest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DvrSession-DvrManifest)\>) --- Required. A list of DVR manifests. Currently only one DVR manifest is allowed.

### #dvr_windows

    def dvr_windows() -> ::Array<::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrWindow>

**Returns**

- (::Array\<[::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DvrSession-DvrWindow)\>) --- Required. The specified ranges of segments to generate a DVR recording.

### #dvr_windows=

    def dvr_windows=(value) -> ::Array<::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrWindow>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DvrSession-DvrWindow)\>) --- Required. The specified ranges of segments to generate a DVR recording.
**Returns**

- (::Array\<[::Google::Cloud::Video::LiveStream::V1::DvrSession::DvrWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DvrSession-DvrWindow)\>) --- Required. The specified ranges of segments to generate a DVR recording.

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Rpc-Status)) --- Output only. An error object that describes the reason for the failure. This property only presents when `state` is `FAILED`.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined key/value metadata.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined key/value metadata.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. User-defined key/value metadata.

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) ---

  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
**Returns**

- (::String) --- 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

### #state

    def state() -> ::Google::Cloud::Video::LiveStream::V1::DvrSession::State

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::DvrSession::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DvrSession-State)) --- Output only. The state of the clip.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The update time.