Skip to main content

Class: ExportSinkSpec

namespace.v1.ExportSinkSpec

Represents an ExportSinkSpec.

Properties​

enabled​

• enabled: boolean

A flag indicating whether the export sink is enabled or not.


gcs​

• Optional gcs: null | $Properties

This is a feature under development. We will allow GCS sink support for GCP Namespaces. The GCS configuration details when destination_type is GCS.


name​

• name: string

The unique name of the export sink, it can't be changed once set.


s3​

• Optional s3: null | $Properties

The S3 configuration details when destination_type is S3.

Methods​

toJSON​

▸ toJSON(): Object

Converts this ExportSinkSpec to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ExportSinkSpec & $Properties

Creates a new ExportSinkSpec instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

ExportSinkSpec & $Properties

ExportSinkSpec instance

▸ create(properties?): ExportSinkSpec

Parameters​

NameType
properties?$Properties

Returns​

ExportSinkSpec


decode​

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

Decodes an ExportSinkSpec message from the specified reader or buffer.

Parameters​

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

Returns​

ExportSinkSpec & $Properties

ExportSinkSpec

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ExportSinkSpec & $Properties

Decodes an ExportSinkSpec message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ExportSinkSpec & $Properties

ExportSinkSpec

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ExportSinkSpec

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ExportSinkSpec

ExportSinkSpec


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageExportSinkSpecExportSinkSpec
options?IConversionOptionsConversion options

Returns​

Object

Plain object