Skip to main content

Class: ServerFailureInfo

failure.v1.ServerFailureInfo

Represents a ServerFailureInfo.

Implements#

Constructors#

constructor#

new ServerFailureInfo(properties?)

Constructs a new ServerFailureInfo.

Parameters#

NameType
properties?IServerFailureInfo

Properties#

nonRetryable#

nonRetryable: boolean

ServerFailureInfo nonRetryable.

Implementation of#

IServerFailureInfo.nonRetryable

Methods#

toJSON#

toJSON(): Object

Converts this ServerFailureInfo to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ServerFailureInfo

Decodes a ServerFailureInfo 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#

ServerFailureInfo

ServerFailureInfo


decodeDelimited#

Static decodeDelimited(reader): ServerFailureInfo

Decodes a ServerFailureInfo 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#

ServerFailureInfo

ServerFailureInfo


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): ServerFailureInfo

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

ServerFailureInfo

ServerFailureInfo


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageServerFailureInfoServerFailureInfo
options?IConversionOptions-

Returns#

Object

Plain object