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

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

Distribution configuration.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `key` | `str` 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. |
| `distribution_stream` | `str` Required. `DistributionStream` keys 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. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.Distribution.State` Output only. State of the distribution. |
| `error` | `google.rpc.status_pb2.Status` Output only. Only present when the `state` is `ERROR`. The reason for the error state of the distribution. |
| `srt_push` | `https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.SrtPushOutputEndpoint` Output endpoint using SRT_PUSH. This field is a member of `oneof`_ `endpoint`. |
| `rtmp_push` | `https://docs.cloud.google.com/python/docs/reference/livestream/latest/google.cloud.video.live_stream_v1.types.RtmpPushOutputEndpoint` Output endpoint using RTMP_PUSH. This field is a member of `oneof`_ `endpoint`. |

## Classes

### State

    State(value)

State of this distribution.