Skip to main content

Class: Payloads

common.v1.Payloads

See Payload

Properties

payloads

payloads: $Properties[]

Payloads payloads.

Methods

toJSON

toJSON(): Object

Converts this Payloads to JSON.

Returns

Object

JSON object


create

create(properties?): Payloads & $Properties

Creates a new Payloads instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

Payloads & $Properties

Payloads instance

create(properties?): Payloads

Parameters

NameType
properties?$Properties

Returns

Payloads


decode

decode(reader, length?): Payloads & $Properties

Decodes a Payloads message from the specified reader or buffer.

Parameters

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

Returns

Payloads & $Properties

Payloads

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Payloads & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Payloads & $Properties

Payloads

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): Payloads

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

Payloads

Payloads


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messagePayloadsPayloads
options?IConversionOptionsConversion options

Returns

Object

Plain object