Skip to main content

Class: CreateNamespaceResponse

cloudservice.v1.CreateNamespaceResponse

Represents a CreateNamespaceResponse.

Implements

Constructors

constructor

new CreateNamespaceResponse(properties?): CreateNamespaceResponse

Constructs a new CreateNamespaceResponse.

Parameters

NameTypeDescription
properties?ICreateNamespaceResponseProperties to set

Returns

CreateNamespaceResponse

Properties

asyncOperation

Optional asyncOperation: null | IAsyncOperation

The async operation.

Implementation of

ICreateNamespaceResponse.asyncOperation


namespace

namespace: string

The namespace that was created.

Implementation of

ICreateNamespaceResponse.namespace

Methods

toJSON

toJSON(): Object

Converts this CreateNamespaceResponse to JSON.

Returns

Object

JSON object


create

create(properties?): CreateNamespaceResponse

Creates a new CreateNamespaceResponse instance using the specified properties.

Parameters

NameTypeDescription
properties?ICreateNamespaceResponseProperties to set

Returns

CreateNamespaceResponse

CreateNamespaceResponse instance


decode

decode(reader, length?): CreateNamespaceResponse

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

CreateNamespaceResponse

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): CreateNamespaceResponse

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

CreateNamespaceResponse

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
messageICreateNamespaceResponseCreateNamespaceResponse 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
messageICreateNamespaceResponseCreateNamespaceResponse 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for CreateNamespaceResponse

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

Parameters

NameTypeDescription
messageCreateNamespaceResponseCreateNamespaceResponse
options?IConversionOptionsConversion options

Returns

Object

Plain object