Skip to main content

Class: QueryWorkflowResponse

workflowservice.v1.QueryWorkflowResponse

Represents a QueryWorkflowResponse.

Implements#

Constructors#

constructor#

new QueryWorkflowResponse(properties?)

Constructs a new QueryWorkflowResponse.

Parameters#

NameType
properties?IQueryWorkflowResponse

Properties#

queryRejected#

Optional queryRejected: null | IQueryRejected

QueryWorkflowResponse queryRejected.

Implementation of#

IQueryWorkflowResponse.queryRejected


queryResult#

Optional queryResult: null | IPayloads

QueryWorkflowResponse queryResult.

Implementation of#

IQueryWorkflowResponse.queryResult

Methods#

toJSON#

toJSON(): Object

Converts this QueryWorkflowResponse to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): QueryWorkflowResponse

Decodes a QueryWorkflowResponse message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

QueryWorkflowResponse

QueryWorkflowResponse


decodeDelimited#

Static decodeDelimited(reader): QueryWorkflowResponse

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

QueryWorkflowResponse

QueryWorkflowResponse


encode#

Static encode(message, writer?): Writer

Encodes the specified QueryWorkflowResponse message. Does not implicitly {@link temporal.api.workflowservice.v1.QueryWorkflowResponse.verify|verify} messages.

Parameters#

NameTypeDescription
messageIQueryWorkflowResponseQueryWorkflowResponse message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified QueryWorkflowResponse message, length delimited. Does not implicitly {@link temporal.api.workflowservice.v1.QueryWorkflowResponse.verify|verify} messages.

Parameters#

NameTypeDescription
messageIQueryWorkflowResponseQueryWorkflowResponse message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): QueryWorkflowResponse

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

QueryWorkflowResponse

QueryWorkflowResponse


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageQueryWorkflowResponseQueryWorkflowResponse
options?IConversionOptions-

Returns#

Object

Plain object