Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::Event (v1.1.0)

Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::Event.

Event is a sub-resource of a channel, which can be scheduled by the user to execute operations on a channel resource without having to stop the channel.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#ad_break

def ad_break() -> ::Google::Cloud::Video::LiveStream::V1::Event::AdBreakTask
Returns

#ad_break=

def ad_break=(value) -> ::Google::Cloud::Video::LiveStream::V1::Event::AdBreakTask
Parameter
Returns

#create_time

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

#error

def error() -> ::Google::Rpc::Status
Returns
  • (::Google::Rpc::Status) — Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

#execute_now

def execute_now() -> ::Boolean
Returns
  • (::Boolean) — When this field is set to true, the event will be executed at the earliest time that the server can schedule the event and execution_time will be populated with the time that the server actually schedules the event.

#execute_now=

def execute_now=(value) -> ::Boolean
Parameter
  • value (::Boolean) — When this field is set to true, the event will be executed at the earliest time that the server can schedule the event and execution_time will be populated with the time that the server actually schedules the event.
Returns
  • (::Boolean) — When this field is set to true, the event will be executed at the earliest time that the server can schedule the event and execution_time will be populated with the time that the server actually schedules the event.

#execution_time

def execution_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::Google::Protobuf::Timestamp) — The time to execute the event. If you set execute_now to true, then do not set this field in the CreateEvent request. In this case, the server schedules the event and populates this field. If you set execute_now to false, then you must set this field to at least 10 seconds in the future or else the event can't be created.

#execution_time=

def execution_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • value (::Google::Protobuf::Timestamp) — The time to execute the event. If you set execute_now to true, then do not set this field in the CreateEvent request. In this case, the server schedules the event and populates this field. If you set execute_now to false, then you must set this field to at least 10 seconds in the future or else the event can't be created.
Returns
  • (::Google::Protobuf::Timestamp) — The time to execute the event. If you set execute_now to true, then do not set this field in the CreateEvent request. In this case, the server schedules the event and populates this field. If you set execute_now to false, then you must set this field to at least 10 seconds in the future or else the event can't be created.

#input_switch

def input_switch() -> ::Google::Cloud::Video::LiveStream::V1::Event::InputSwitchTask
Returns

#input_switch=

def input_switch=(value) -> ::Google::Cloud::Video::LiveStream::V1::Event::InputSwitchTask
Parameter
Returns

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.

#mute

def mute() -> ::Google::Cloud::Video::LiveStream::V1::Event::MuteTask

#mute=

def mute=(value) -> ::Google::Cloud::Video::LiveStream::V1::Event::MuteTask
Parameter

#name

def name() -> ::String
Returns
  • (::String) — The resource name of the event, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The resource name of the event, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.
Returns
  • (::String) — The resource name of the event, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

#return_to_program

def return_to_program() -> ::Google::Cloud::Video::LiveStream::V1::Event::ReturnToProgramTask
Returns

#return_to_program=

def return_to_program=(value) -> ::Google::Cloud::Video::LiveStream::V1::Event::ReturnToProgramTask
Parameter
Returns

#slate

def slate() -> ::Google::Cloud::Video::LiveStream::V1::Event::SlateTask

#slate=

def slate=(value) -> ::Google::Cloud::Video::LiveStream::V1::Event::SlateTask
Parameter

#state

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

#unmute

def unmute() -> ::Google::Cloud::Video::LiveStream::V1::Event::UnmuteTask

#unmute=

def unmute=(value) -> ::Google::Cloud::Video::LiveStream::V1::Event::UnmuteTask
Parameter

#update_time

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