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
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
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
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
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
Auto Trait Implementations
impl RefUnwindSafe for Channel
impl UnwindSafe for Channel
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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