Skip to main content

Class: Input

update.v1.Input

Represents an Input.

Properties​

args​

• Optional args: null | $Properties

The arguments to pass to the named Update handler.


• Optional header: null | $Properties

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


name​

• name: string

The name of the Update handler to invoke on the target Workflow.

Methods​

toJSON​

▸ toJSON(): Object

Converts this Input to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): Input & $Properties

Creates a new Input instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

Input & $Properties

Input instance

▸ create(properties?): Input

Parameters​

NameType
properties?$Properties

Returns​

Input


decode​

▸ decode(reader, length?): Input & $Properties

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 & $Properties

Input

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): Input & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

Input & $Properties

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
message$PropertiesInput 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
message$PropertiesInput 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


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