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.

Implements

Constructors

constructor

new ExternalStorageReference(properties?): ExternalStorageReference

Constructs a new ExternalStorageReference.

Parameters

NameTypeDescription
properties?IExternalStorageReferenceProperties to set

Returns

ExternalStorageReference

Properties

claimData

claimData: Object

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

Index signature

▪ [k: string]: string

Implementation of

IExternalStorageReference.claimData


driverName

driverName: string

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

Implementation of

IExternalStorageReference.driverName

Methods

toJSON

toJSON(): Object

Converts this ExternalStorageReference to JSON.

Returns

Object

JSON object


create

create(properties?): ExternalStorageReference

Creates a new ExternalStorageReference instance using the specified properties.

Parameters

NameTypeDescription
properties?IExternalStorageReferenceProperties to set

Returns

ExternalStorageReference

ExternalStorageReference instance


decode

decode(reader, length?): ExternalStorageReference

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

ExternalStorageReference

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): ExternalStorageReference

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

ExternalStorageReference

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
messageIExternalStorageReferenceExternalStorageReference 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
messageIExternalStorageReferenceExternalStorageReference 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for ExternalStorageReference

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

Parameters

NameTypeDescription
messageExternalStorageReferenceExternalStorageReference
options?IConversionOptionsConversion options

Returns

Object

Plain object