# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::Distribution (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::Distribution.

Distribution configuration.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #distribution_stream

    def distribution_stream() -> ::String

**Returns**

- (::String) --- Required. `DistributionStream`
  [key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DistributionStream#Google__Cloud__Video__LiveStream__V1__DistributionStream_key_instance_ "Google::Cloud::Video::LiveStream::V1::DistributionStream#key (method)")s that should
  appear in this distribution output.

  - For SRT protocol, only `ts` distribution streams can be specified.
  - For RTMP protocol, only `flv` distribution streams can be specified.

### #distribution_stream=

    def distribution_stream=(value) -> ::String

**Parameter**

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

  Required. `DistributionStream`
  [key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DistributionStream#Google__Cloud__Video__LiveStream__V1__DistributionStream_key_instance_ "Google::Cloud::Video::LiveStream::V1::DistributionStream#key (method)")s that should
  appear in this distribution output.
  - For SRT protocol, only `ts` distribution streams can be specified.
  - For RTMP protocol, only `flv` distribution streams can be specified.
**Returns**

- (::String) --- Required. `DistributionStream`
  [key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-DistributionStream#Google__Cloud__Video__LiveStream__V1__DistributionStream_key_instance_ "Google::Cloud::Video::LiveStream::V1::DistributionStream#key (method)")s that should
  appear in this distribution output.

  - For SRT protocol, only `ts` distribution streams can be specified.
  - For RTMP protocol, only `flv` distribution streams can be specified.

### #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. Only present when the `state` is `ERROR`. The reason for the error state of the distribution.

### #key

    def key() -> ::String

**Returns**

- (::String) --- Required. A unique key for this distribution. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

### #key=

    def key=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. A unique key for this distribution. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.
**Returns**

- (::String) --- Required. A unique key for this distribution. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

### #rtmp_push

    def rtmp_push() -> ::Google::Cloud::Video::LiveStream::V1::RtmpPushOutputEndpoint

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::RtmpPushOutputEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-RtmpPushOutputEndpoint)) --- Output endpoint using RTMP_PUSH.


  Note: The following fields are mutually exclusive: `rtmp_push`, `srt_push`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #rtmp_push=

    def rtmp_push=(value) -> ::Google::Cloud::Video::LiveStream::V1::RtmpPushOutputEndpoint

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::RtmpPushOutputEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-RtmpPushOutputEndpoint)) --- Output endpoint using RTMP_PUSH.


  Note: The following fields are mutually exclusive: `rtmp_push`, `srt_push`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::RtmpPushOutputEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-RtmpPushOutputEndpoint)) --- Output endpoint using RTMP_PUSH.


  Note: The following fields are mutually exclusive: `rtmp_push`, `srt_push`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #srt_push

    def srt_push() -> ::Google::Cloud::Video::LiveStream::V1::SrtPushOutputEndpoint

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::SrtPushOutputEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-SrtPushOutputEndpoint)) --- Output endpoint using SRT_PUSH.


  Note: The following fields are mutually exclusive: `srt_push`, `rtmp_push`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #srt_push=

    def srt_push=(value) -> ::Google::Cloud::Video::LiveStream::V1::SrtPushOutputEndpoint

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::SrtPushOutputEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-SrtPushOutputEndpoint)) --- Output endpoint using SRT_PUSH.


  Note: The following fields are mutually exclusive: `srt_push`, `rtmp_push`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::SrtPushOutputEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-SrtPushOutputEndpoint)) --- Output endpoint using SRT_PUSH.


  Note: The following fields are mutually exclusive: `srt_push`, `rtmp_push`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #state

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

**Returns**

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