Skip to main content

Class: UpdateNamespaceInfo

namespace.v1.UpdateNamespaceInfo

Represents an UpdateNamespaceInfo.

Properties​

data​

• data: Object

A key-value map for any customized purpose. If data already exists on the namespace, this will merge with the existing key values.

Index signature​

▪ [k: string]: string


description​

• description: string

UpdateNamespaceInfo description.


ownerEmail​

• ownerEmail: string

UpdateNamespaceInfo ownerEmail.


state​

• state: NamespaceState

New namespace state, server will reject if transition is not allowed. Allowed transitions are: Registered -> [ Deleted | Deprecated | Handover ] Handover -> [ Registered ] Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.

Methods​

toJSON​

▸ toJSON(): Object

Converts this UpdateNamespaceInfo to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): UpdateNamespaceInfo & $Properties

Creates a new UpdateNamespaceInfo instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

UpdateNamespaceInfo & $Properties

UpdateNamespaceInfo instance

▸ create(properties?): UpdateNamespaceInfo

Parameters​

NameType
properties?$Properties

Returns​

UpdateNamespaceInfo


decode​

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

Decodes an UpdateNamespaceInfo message from the specified reader or buffer.

Parameters​

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

Returns​

UpdateNamespaceInfo & $Properties

UpdateNamespaceInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): UpdateNamespaceInfo & $Properties

Decodes an UpdateNamespaceInfo message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

UpdateNamespaceInfo & $Properties

UpdateNamespaceInfo

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): UpdateNamespaceInfo

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

UpdateNamespaceInfo

UpdateNamespaceInfo


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageUpdateNamespaceInfoUpdateNamespaceInfo
options?IConversionOptionsConversion options

Returns​

Object

Plain object