Skip to main content

Class: NamespaceUnavailableFailure

errordetails.v1.NamespaceUnavailableFailure

NamespaceUnavailableFailure is returned by the service when a request addresses a namespace that is unavailable. For example, when a namespace is in the process of failing over between clusters. This is a transient error that should be automatically retried by clients.

Implements

Constructors

constructor

new NamespaceUnavailableFailure(properties?): NamespaceUnavailableFailure

Constructs a new NamespaceUnavailableFailure.

Parameters

NameTypeDescription
properties?INamespaceUnavailableFailureProperties to set

Returns

NamespaceUnavailableFailure

Properties

namespace

namespace: string

NamespaceUnavailableFailure namespace.

Implementation of

INamespaceUnavailableFailure.namespace

Methods

toJSON

toJSON(): Object

Converts this NamespaceUnavailableFailure to JSON.

Returns

Object

JSON object


create

create(properties?): NamespaceUnavailableFailure

Creates a new NamespaceUnavailableFailure instance using the specified properties.

Parameters

NameTypeDescription
properties?INamespaceUnavailableFailureProperties to set

Returns

NamespaceUnavailableFailure

NamespaceUnavailableFailure instance


decode

decode(reader, length?): NamespaceUnavailableFailure

Decodes a NamespaceUnavailableFailure message from the specified reader or buffer.

Parameters

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

Returns

NamespaceUnavailableFailure

NamespaceUnavailableFailure

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): NamespaceUnavailableFailure

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

NamespaceUnavailableFailure

NamespaceUnavailableFailure

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): NamespaceUnavailableFailure

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

NamespaceUnavailableFailure

NamespaceUnavailableFailure


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for NamespaceUnavailableFailure

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

Parameters

NameTypeDescription
messageNamespaceUnavailableFailureNamespaceUnavailableFailure
options?IConversionOptionsConversion options

Returns

Object

Plain object