Skip to main content

Class: NamespaceInvalidStateFailure

errordetails.v1.NamespaceInvalidStateFailure

Represents a NamespaceInvalidStateFailure.

Implements

Constructors

constructor

new NamespaceInvalidStateFailure(properties?): NamespaceInvalidStateFailure

Constructs a new NamespaceInvalidStateFailure.

Parameters

NameTypeDescription
properties?INamespaceInvalidStateFailureProperties to set

Returns

NamespaceInvalidStateFailure

Properties

allowedStates

allowedStates: NamespaceState[]

Allowed namespace states for requested operation. For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.

Implementation of

INamespaceInvalidStateFailure.allowedStates


namespace

namespace: string

NamespaceInvalidStateFailure namespace.

Implementation of

INamespaceInvalidStateFailure.namespace


state

state: NamespaceState

Current state of the requested namespace.

Implementation of

INamespaceInvalidStateFailure.state

Methods

toJSON

toJSON(): Object

Converts this NamespaceInvalidStateFailure to JSON.

Returns

Object

JSON object


create

create(properties?): NamespaceInvalidStateFailure

Creates a new NamespaceInvalidStateFailure instance using the specified properties.

Parameters

NameTypeDescription
properties?INamespaceInvalidStateFailureProperties to set

Returns

NamespaceInvalidStateFailure

NamespaceInvalidStateFailure instance


decode

decode(reader, length?): NamespaceInvalidStateFailure

Decodes a NamespaceInvalidStateFailure message from the specified reader or buffer.

Parameters

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

Returns

NamespaceInvalidStateFailure

NamespaceInvalidStateFailure

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): NamespaceInvalidStateFailure

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

NamespaceInvalidStateFailure

NamespaceInvalidStateFailure

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): NamespaceInvalidStateFailure

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

NamespaceInvalidStateFailure

NamespaceInvalidStateFailure


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for NamespaceInvalidStateFailure

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

Parameters

NameTypeDescription
messageNamespaceInvalidStateFailureNamespaceInvalidStateFailure
options?IConversionOptionsConversion options

Returns

Object

Plain object