Skip to main content

Class: CreateNamespaceResponse

cloudservice.v1.CreateNamespaceResponse

Represents a CreateNamespaceResponse.

Properties​

asyncOperation​

• Optional asyncOperation: null | $Properties

The async operation.


namespace​

• namespace: string

The namespace that was created.

Methods​

toJSON​

▸ toJSON(): Object

Converts this CreateNamespaceResponse to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): CreateNamespaceResponse & $Properties

Creates a new CreateNamespaceResponse instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

CreateNamespaceResponse & $Properties

CreateNamespaceResponse instance

▸ create(properties?): CreateNamespaceResponse

Parameters​

NameType
properties?$Properties

Returns​

CreateNamespaceResponse


decode​

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

Decodes a CreateNamespaceResponse message from the specified reader or buffer.

Parameters​

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

Returns​

CreateNamespaceResponse & $Properties

CreateNamespaceResponse

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): CreateNamespaceResponse & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

CreateNamespaceResponse & $Properties

CreateNamespaceResponse

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 CreateNamespaceResponse message. Does not implicitly temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified CreateNamespaceResponse message, length delimited. Does not implicitly temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): CreateNamespaceResponse

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

CreateNamespaceResponse

CreateNamespaceResponse


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageCreateNamespaceResponseCreateNamespaceResponse
options?IConversionOptionsConversion options

Returns​

Object

Plain object