Class protos.google.cloud.video.livestream.v1.Event.InputSwitchTask (1.0.2)

Represents an InputSwitchTask.

Package

@google-cloud/livestream

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.video.livestream.v1.Event.IInputSwitchTask);

Constructs a new InputSwitchTask.

Parameter
NameDescription
properties IInputSwitchTask

Properties to set

Properties

inputKey

public inputKey: string;

InputSwitchTask inputKey.

Methods

create(properties)

public static create(properties?: google.cloud.video.livestream.v1.Event.IInputSwitchTask): google.cloud.video.livestream.v1.Event.InputSwitchTask;

Creates a new InputSwitchTask instance using the specified properties.

Parameter
NameDescription
properties IInputSwitchTask

Properties to set

Returns
TypeDescription
InputSwitchTask

InputSwitchTask instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.livestream.v1.Event.InputSwitchTask;

Decodes an InputSwitchTask message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
InputSwitchTask

InputSwitchTask

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.livestream.v1.Event.InputSwitchTask;

Decodes an InputSwitchTask message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
InputSwitchTask

InputSwitchTask

encode(message, writer)

public static encode(message: google.cloud.video.livestream.v1.Event.IInputSwitchTask, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified InputSwitchTask message. Does not implicitly messages.

Parameters
NameDescription
message IInputSwitchTask

InputSwitchTask message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.video.livestream.v1.Event.IInputSwitchTask, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified InputSwitchTask message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IInputSwitchTask

InputSwitchTask message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.video.livestream.v1.Event.InputSwitchTask;

Creates an InputSwitchTask message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
InputSwitchTask

InputSwitchTask

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for InputSwitchTask

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this InputSwitchTask to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.video.livestream.v1.Event.InputSwitchTask, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an InputSwitchTask message. Also converts values to other types if specified.

Parameters
NameDescription
message InputSwitchTask

InputSwitchTask

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an InputSwitchTask message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not