Skip to main content

Class: ExternalStorageReference

sdk.v1.ExternalStorageReference

ExternalStorageReference identifies a payload stored in an external storage system. It is used as a claim-check token, allowing the actual payload data to be retrieved from the named driver using the provided claim data.

Properties​

claimData​

• claimData: Object

Driver-specific key-value pairs that identify and provide access to the stored payload.

Index signature​

▪ [k: string]: string


driverName​

• driverName: string

The name of the storage driver responsible for retrieving the payload.

Methods​

toJSON​

▸ toJSON(): Object

Converts this ExternalStorageReference to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ExternalStorageReference & $Properties

Creates a new ExternalStorageReference instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

ExternalStorageReference & $Properties

ExternalStorageReference instance

▸ create(properties?): ExternalStorageReference

Parameters​

NameType
properties?$Properties

Returns​

ExternalStorageReference


decode​

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

Decodes an ExternalStorageReference message from the specified reader or buffer.

Parameters​

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

Returns​

ExternalStorageReference & $Properties

ExternalStorageReference

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ExternalStorageReference & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ExternalStorageReference & $Properties

ExternalStorageReference

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 ExternalStorageReference message. Does not implicitly temporal.api.sdk.v1.ExternalStorageReference.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified ExternalStorageReference message, length delimited. Does not implicitly temporal.api.sdk.v1.ExternalStorageReference.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ExternalStorageReference

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ExternalStorageReference

ExternalStorageReference


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageExternalStorageReferenceExternalStorageReference
options?IConversionOptionsConversion options

Returns​

Object

Plain object