Skip to main content

Class: GetNamespaceCapacityInfoResponse

cloudservice.v1.GetNamespaceCapacityInfoResponse

Represents a GetNamespaceCapacityInfoResponse.

Properties​

capacityInfo​

• Optional capacityInfo: null | $Properties

Capacity information for the namespace.

Methods​

toJSON​

▸ toJSON(): Object

Converts this GetNamespaceCapacityInfoResponse to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): GetNamespaceCapacityInfoResponse & $Shape

Creates a new GetNamespaceCapacityInfoResponse instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

GetNamespaceCapacityInfoResponse & $Shape

GetNamespaceCapacityInfoResponse instance

▸ create(properties?): GetNamespaceCapacityInfoResponse

Parameters​

NameType
properties?$Properties

Returns​

GetNamespaceCapacityInfoResponse


decode​

▸ decode(reader, length?): GetNamespaceCapacityInfoResponse & $Shape

Decodes a GetNamespaceCapacityInfoResponse message from the specified reader or buffer.

Parameters​

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

Returns​

GetNamespaceCapacityInfoResponse & $Shape

GetNamespaceCapacityInfoResponse

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): GetNamespaceCapacityInfoResponse & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

GetNamespaceCapacityInfoResponse & $Shape

GetNamespaceCapacityInfoResponse

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): GetNamespaceCapacityInfoResponse

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

GetNamespaceCapacityInfoResponse

GetNamespaceCapacityInfoResponse


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageGetNamespaceCapacityInfoResponseGetNamespaceCapacityInfoResponse
options?IConversionOptionsConversion options

Returns​

Object

Plain object