Skip to main content

Class: Input

update.v1.Input

Represents an Input.

Implements

Constructors

constructor

new Input(properties?): Input

Constructs a new Input.

Parameters

NameTypeDescription
properties?IInputProperties to set

Returns

Input

Properties

args

Optional args: null | IPayloads

The arguments to pass to the named handler.

Implementation of

IInput.args


Optional header: null | IHeader

Headers that are passed with the update from the requesting entity. These can include things like auth or tracing tokens.

Implementation of

IInput.header


name

name: string

The name of the input handler to invoke on the target workflow

Implementation of

IInput.name

Methods

toJSON

toJSON(): Object

Converts this Input to JSON.

Returns

Object

JSON object


create

create(properties?): Input

Creates a new Input instance using the specified properties.

Parameters

NameTypeDescription
properties?IInputProperties to set

Returns

Input

Input instance


decode

decode(reader, length?): Input

Decodes an Input message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

Input

Input

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Input

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Input

Input

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified Input message. Does not implicitly temporal.api.update.v1.Input.verify|verify messages.

Parameters

NameTypeDescription
messageIInputInput message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified Input message, length delimited. Does not implicitly temporal.api.update.v1.Input.verify|verify messages.

Parameters

NameTypeDescription
messageIInputInput message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): Input

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

Input

Input


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for Input

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageInputInput
options?IConversionOptionsConversion options

Returns

Object

Plain object