Skip to main content

Class: RequestIdInfo

workflow.v1.RequestIdInfo

RequestIdInfo contains details of a request ID.

Implements

Constructors

constructor

new RequestIdInfo(properties?): RequestIdInfo

Constructs a new RequestIdInfo.

Parameters

NameTypeDescription
properties?IRequestIdInfoProperties to set

Returns

RequestIdInfo

Properties

buffered

buffered: boolean

Indicate if the request is still buffered. If so, the event ID is not known and its value will be an invalid event ID.

Implementation of

IRequestIdInfo.buffered


eventId

eventId: Long

The event id of the history event generated by the request. It's possible the event ID is not known (unflushed buffered event). In this case, the value will be zero or a negative value, representing an invalid ID.

Implementation of

IRequestIdInfo.eventId


eventType

eventType: EventType

The event type of the history event generated by the request.

Implementation of

IRequestIdInfo.eventType

Methods

toJSON

toJSON(): Object

Converts this RequestIdInfo to JSON.

Returns

Object

JSON object


create

create(properties?): RequestIdInfo

Creates a new RequestIdInfo instance using the specified properties.

Parameters

NameTypeDescription
properties?IRequestIdInfoProperties to set

Returns

RequestIdInfo

RequestIdInfo instance


decode

decode(reader, length?): RequestIdInfo

Decodes a RequestIdInfo message from the specified reader or buffer.

Parameters

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

Returns

RequestIdInfo

RequestIdInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): RequestIdInfo

Decodes a RequestIdInfo message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

RequestIdInfo

RequestIdInfo

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 RequestIdInfo message. Does not implicitly temporal.api.workflow.v1.RequestIdInfo.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): RequestIdInfo

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

RequestIdInfo

RequestIdInfo


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for RequestIdInfo

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

Parameters

NameTypeDescription
messageRequestIdInfoRequestIdInfo
options?IConversionOptionsConversion options

Returns

Object

Plain object