Skip to main content

Class: ServerFailureInfo

failure.v1.ServerFailureInfo

Represents a ServerFailureInfo.

Properties​

nonRetryable​

• nonRetryable: boolean

ServerFailureInfo nonRetryable.

Methods​

toJSON​

▸ toJSON(): Object

Converts this ServerFailureInfo to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ServerFailureInfo & $Properties

Creates a new ServerFailureInfo instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

ServerFailureInfo & $Properties

ServerFailureInfo instance

▸ create(properties?): ServerFailureInfo

Parameters​

NameType
properties?$Properties

Returns​

ServerFailureInfo


decode​

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

Decodes a ServerFailureInfo message from the specified reader or buffer.

Parameters​

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

Returns​

ServerFailureInfo & $Properties

ServerFailureInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ServerFailureInfo & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ServerFailureInfo & $Properties

ServerFailureInfo

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

Parameters​

NameTypeDescription
message$PropertiesServerFailureInfo message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesServerFailureInfo message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ 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​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageServerFailureInfoServerFailureInfo
options?IConversionOptionsConversion options

Returns​

Object

Plain object