Skip to main content

Class: GetNamespacesRequest

cloudservice.v1.GetNamespacesRequest

Represents a GetNamespacesRequest.

Implements

Constructors

constructor

new GetNamespacesRequest(properties?): GetNamespacesRequest

Constructs a new GetNamespacesRequest.

Parameters

NameTypeDescription
properties?IGetNamespacesRequestProperties to set

Returns

GetNamespacesRequest

Properties

name

name: string

Filter namespaces by their name. Optional, defaults to empty.

Implementation of

IGetNamespacesRequest.name


pageSize

pageSize: number

The requested size of the page to retrieve. Cannot exceed 1000. Optional, defaults to 100.

Implementation of

IGetNamespacesRequest.pageSize


pageToken

pageToken: string

The page token if this is continuing from another response. Optional, defaults to empty.

Implementation of

IGetNamespacesRequest.pageToken

Methods

toJSON

toJSON(): Object

Converts this GetNamespacesRequest to JSON.

Returns

Object

JSON object


create

create(properties?): GetNamespacesRequest

Creates a new GetNamespacesRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IGetNamespacesRequestProperties to set

Returns

GetNamespacesRequest

GetNamespacesRequest instance


decode

decode(reader, length?): GetNamespacesRequest

Decodes a GetNamespacesRequest message from the specified reader or buffer.

Parameters

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

Returns

GetNamespacesRequest

GetNamespacesRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): GetNamespacesRequest

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

GetNamespacesRequest

GetNamespacesRequest

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): GetNamespacesRequest

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

GetNamespacesRequest

GetNamespacesRequest


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for GetNamespacesRequest

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

Parameters

NameTypeDescription
messageGetNamespacesRequestGetNamespacesRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object