Live Stream v1 API - Class Event (1.5.0)

public sealed class Event : IMessage<Event>, IEquatable<Event>, IDeepCloneable<Event>, IBufferMessage, IMessage

Reference documentation and code samples for the Live Stream v1 API class 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.

Inheritance

object > Event

Namespace

Google.Cloud.Video.LiveStream.V1

Assembly

Google.Cloud.Video.LiveStream.V1.dll

Constructors

Event()

public Event()

Event(Event)

public Event(Event other)
Parameter
NameDescription
otherEvent

Properties

AdBreak

public Event.Types.AdBreakTask AdBreak { get; set; }

Inserts a new ad opportunity.

Property Value
TypeDescription
EventTypesAdBreakTask

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The creation time.

Property Value
TypeDescription
Timestamp

Error

public Status Error { get; set; }

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

Property Value
TypeDescription
Status

EventName

public EventName EventName { get; set; }

EventName-typed view over the Name resource name property.

Property Value
TypeDescription
EventName

ExecuteNow

public bool ExecuteNow { get; set; }

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][google.cloud.video.livestream.v1.Event.execution_time] will be populated with the time that the server actually schedules the event.

Property Value
TypeDescription
bool

ExecutionTime

public Timestamp ExecutionTime { get; set; }

The time to execute the event. If you set [execute_now][google.cloud.video.livestream.v1.Event.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][google.cloud.video.livestream.v1.Event.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.

Property Value
TypeDescription
Timestamp

InputSwitch

public Event.Types.InputSwitchTask InputSwitch { get; set; }

Switches to another input stream.

Property Value
TypeDescription
EventTypesInputSwitchTask

Labels

public MapField<string, string> Labels { get; }

User-defined key/value metadata.

Property Value
TypeDescription
MapFieldstringstring

Mute

public Event.Types.MuteTask Mute { get; set; }

Mutes the stream.

Property Value
TypeDescription
EventTypesMuteTask

Name

public string Name { get; set; }

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

Property Value
TypeDescription
string

ReturnToProgram

public Event.Types.ReturnToProgramTask ReturnToProgram { get; set; }

Stops any running ad break.

Property Value
TypeDescription
EventTypesReturnToProgramTask

Slate

public Event.Types.SlateTask Slate { get; set; }

Inserts a slate.

Property Value
TypeDescription
EventTypesSlateTask

State

public Event.Types.State State { get; set; }

Output only. The state of the event.

Property Value
TypeDescription
EventTypesState

TaskCase

public Event.TaskOneofCase TaskCase { get; }
Property Value
TypeDescription
EventTaskOneofCase

Unmute

public Event.Types.UnmuteTask Unmute { get; set; }

Unmutes the stream.

Property Value
TypeDescription
EventTypesUnmuteTask

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The update time.

Property Value
TypeDescription
Timestamp