Struct googapis::google::cloud::video::livestream::v1::Channel[][src]

pub struct Channel {
Show 13 fields pub name: String, pub create_time: Option<Timestamp>, pub update_time: Option<Timestamp>, pub labels: HashMap<String, String>, pub input_attachments: Vec<InputAttachment>, pub active_input: String, pub output: Option<Output>, pub elementary_streams: Vec<ElementaryStream>, pub mux_streams: Vec<MuxStream>, pub manifests: Vec<Manifest>, pub sprite_sheets: Vec<SpriteSheet>, pub streaming_state: i32, pub streaming_error: Option<Status>,
}
Expand description

Channel resource represents the processor that does a user-defined “streaming” operation, which includes getting an input stream through an input, transcoding it to multiple renditions, and publishing output live streams in certain formats (for example, HLS or DASH) to the specified location.

Fields

name: String

The resource name of the channel, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

create_time: Option<Timestamp>

Output only. The creation time.

update_time: Option<Timestamp>

Output only. The update time.

labels: HashMap<String, String>

User-defined key/value metadata.

input_attachments: Vec<InputAttachment>

A list of input attachments that this channel uses. One channel can have multiple inputs as the input sources. Only one input can be selected as the input source at one time.

active_input: String

Output only. The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that serves as the current input source. The first input in the [input_attachments][google.cloud.video.livestream.v1.Channel.input_attachments] is the initial input source.

output: Option<Output>

Required. Information about the output (that is, the Cloud Storage bucket to store the generated live stream).

elementary_streams: Vec<ElementaryStream>

List of elementary streams.

mux_streams: Vec<MuxStream>

List of multiplexing settings for output streams.

manifests: Vec<Manifest>

List of output manifests.

sprite_sheets: Vec<SpriteSheet>

List of output sprite sheets.

streaming_state: i32

Output only. State of the streaming operation.

streaming_error: Option<Status>

Output only. A description of the reason for the streaming error. This property is always present when [streaming_state][google.cloud.video.livestream.v1.Channel.streaming_state] is [STREAMING_ERROR][google.cloud.video.livestream.v1.Channel.StreamingState.STREAMING_ERROR].

Implementations

Returns the enum value of streaming_state, or the default if the field is set to an invalid enum value.

Sets streaming_state to the provided enum value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more