Skip to main content

Class: UpsertWorkflowSearchAttributes

coresdk.workflow_commands.UpsertWorkflowSearchAttributes

Represents an UpsertWorkflowSearchAttributes.

Properties​

searchAttributes​

• Optional searchAttributes: null | $Properties

SearchAttributes to upsert. The indexed_fields map will be merged with existing search attributes, with these values taking precedence.

Methods​

toJSON​

▸ toJSON(): Object

Converts this UpsertWorkflowSearchAttributes to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): UpsertWorkflowSearchAttributes & $Properties

Creates a new UpsertWorkflowSearchAttributes instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

UpsertWorkflowSearchAttributes & $Properties

UpsertWorkflowSearchAttributes instance

▸ create(properties?): UpsertWorkflowSearchAttributes

Parameters​

NameType
properties?$Properties

Returns​

UpsertWorkflowSearchAttributes


decode​

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

Decodes an UpsertWorkflowSearchAttributes message from the specified reader or buffer.

Parameters​

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

Returns​

UpsertWorkflowSearchAttributes & $Properties

UpsertWorkflowSearchAttributes

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): UpsertWorkflowSearchAttributes & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

UpsertWorkflowSearchAttributes & $Properties

UpsertWorkflowSearchAttributes

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 UpsertWorkflowSearchAttributes message. Does not implicitly coresdk.workflow_commands.UpsertWorkflowSearchAttributes.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified UpsertWorkflowSearchAttributes message, length delimited. Does not implicitly coresdk.workflow_commands.UpsertWorkflowSearchAttributes.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): UpsertWorkflowSearchAttributes

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

UpsertWorkflowSearchAttributes

UpsertWorkflowSearchAttributes


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageUpsertWorkflowSearchAttributesUpsertWorkflowSearchAttributes
options?IConversionOptionsConversion options

Returns​

Object

Plain object