Skip to main content

Class: NamespaceReplicationConfig

replication.v1.NamespaceReplicationConfig

Represents a NamespaceReplicationConfig.

Implements#

Constructors#

constructor#

new NamespaceReplicationConfig(properties?)

Constructs a new NamespaceReplicationConfig.

Parameters#

NameType
properties?INamespaceReplicationConfig

Properties#

activeClusterName#

activeClusterName: string

NamespaceReplicationConfig activeClusterName.

Implementation of#

INamespaceReplicationConfig.activeClusterName


clusters#

clusters: IClusterReplicationConfig[]

NamespaceReplicationConfig clusters.

Implementation of#

INamespaceReplicationConfig.clusters

Methods#

toJSON#

toJSON(): Object

Converts this NamespaceReplicationConfig to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): NamespaceReplicationConfig

Decodes a NamespaceReplicationConfig message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

NamespaceReplicationConfig

NamespaceReplicationConfig


decodeDelimited#

Static decodeDelimited(reader): NamespaceReplicationConfig

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

NamespaceReplicationConfig

NamespaceReplicationConfig


encode#

Static encode(message, writer?): Writer

Encodes the specified NamespaceReplicationConfig message. Does not implicitly {@link temporal.api.replication.v1.NamespaceReplicationConfig.verify|verify} messages.

Parameters#

NameTypeDescription
messageINamespaceReplicationConfigNamespaceReplicationConfig message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified NamespaceReplicationConfig message, length delimited. Does not implicitly {@link temporal.api.replication.v1.NamespaceReplicationConfig.verify|verify} messages.

Parameters#

NameTypeDescription
messageINamespaceReplicationConfigNamespaceReplicationConfig message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): NamespaceReplicationConfig

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

NamespaceReplicationConfig

NamespaceReplicationConfig


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageNamespaceReplicationConfigNamespaceReplicationConfig
options?IConversionOptions-

Returns#

Object

Plain object