Skip to main content

Class: InboundUpdate

v1.EventGroupMarker.InboundUpdate

The identifier of an inbound Update (request.meta.update_id) whose handler triggered implicit creation of this group Marker.

Used in place of inbound_event_id for Updates because the event ID of the UpdateAccepted history event is not known until the Workflow Task is completed and recorded by the server, which may be too late.

Implements

Constructors

constructor

new InboundUpdate(properties?): InboundUpdate

Constructs a new InboundUpdate.

Parameters

NameTypeDescription
properties?IInboundUpdateProperties to set

Returns

InboundUpdate

Properties

inboundUpdateId

inboundUpdateId: string

InboundUpdate inboundUpdateId.

Implementation of

IInboundUpdate.inboundUpdateId

Methods

toJSON

toJSON(): Object

Converts this InboundUpdate to JSON.

Returns

Object

JSON object


create

create(properties?): InboundUpdate

Creates a new InboundUpdate instance using the specified properties.

Parameters

NameTypeDescription
properties?IInboundUpdateProperties to set

Returns

InboundUpdate

InboundUpdate instance


decode

decode(reader, length?): InboundUpdate

Decodes an InboundUpdate message from the specified reader or buffer.

Parameters

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

Returns

InboundUpdate

InboundUpdate

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): InboundUpdate

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

InboundUpdate

InboundUpdate

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 InboundUpdate message. Does not implicitly temporal.api.sdk.v1.EventGroupMarker.InboundUpdate.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified InboundUpdate message, length delimited. Does not implicitly temporal.api.sdk.v1.EventGroupMarker.InboundUpdate.verify|verify messages.

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): InboundUpdate

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

InboundUpdate

InboundUpdate


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for InboundUpdate

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 InboundUpdate message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageInboundUpdateInboundUpdate
options?IConversionOptionsConversion options

Returns

Object

Plain object