Class Event (1.4.1)

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

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.

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

NameDescription
name str
The resource name of the event, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The creation time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The update time.
labels MutableMapping[str, str]
User-defined key/value metadata.
input_switch google.cloud.video.live_stream_v1.types.Event.InputSwitchTask
Required. Switches to another input stream. This field is a member of oneof_ task.
ad_break google.cloud.video.live_stream_v1.types.Event.AdBreakTask
Required. Inserts a new ad opportunity. This field is a member of oneof_ task.
return_to_program google.cloud.video.live_stream_v1.types.Event.ReturnToProgramTask
Required. Stops any running ad break. This field is a member of oneof_ task.
mute google.cloud.video.live_stream_v1.types.Event.MuteTask
Required. Mutes the stream. This field is a member of oneof_ task.
unmute google.cloud.video.live_stream_v1.types.Event.UnmuteTask
Required. Unmutes the stream. This field is a member of oneof_ task.
execute_now bool
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 google.protobuf.timestamp_pb2.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.
state google.cloud.video.live_stream_v1.types.Event.State
Output only. The state of the event.
error google.rpc.status_pb2.Status
Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

Classes

AdBreakTask

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

Inserts a new ad opportunity.

InputSwitchTask

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

Switches to another input stream. Automatic failover is then disabled.

LabelsEntry

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

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

MuteTask

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

Mutes the stream.

ReturnToProgramTask

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

Stops any events which are currently running. This only applies to events with a duration.

State

State(value)

State of the event

Values: STATE_UNSPECIFIED (0): Event state is not specified. SCHEDULED (1): Event is scheduled but not executed yet. RUNNING (2): Event is being executed. SUCCEEDED (3): Event has been successfully executed. FAILED (4): Event fails to be executed. PENDING (5): Event has been created but not scheduled yet. STOPPED (6): Event was stopped before running for its full duration.

UnmuteTask

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

Unmutes the stream. The task will fail if the stream is not currently muted.