Skip to main content

Class: OnConflictOptions

common.v1.OnConflictOptions

When starting an execution with a conflict policy that uses an existing execution and there is already an existing running execution, OnConflictOptions defines actions to be taken on the existing running execution.

Implements

Constructors

constructor

new OnConflictOptions(properties?): OnConflictOptions

Constructs a new OnConflictOptions.

Parameters

NameTypeDescription
properties?IOnConflictOptionsProperties to set

Returns

OnConflictOptions

Properties

attachCompletionCallbacks

attachCompletionCallbacks: boolean

Attaches the completion callbacks to the running execution.

Implementation of

IOnConflictOptions.attachCompletionCallbacks


attachLinks: boolean

Attaches the links to the running execution.

Implementation of

IOnConflictOptions.attachLinks


attachRequestId

attachRequestId: boolean

Attaches the request ID to the running execution.

Implementation of

IOnConflictOptions.attachRequestId

Methods

toJSON

toJSON(): Object

Converts this OnConflictOptions to JSON.

Returns

Object

JSON object


create

create(properties?): OnConflictOptions

Creates a new OnConflictOptions instance using the specified properties.

Parameters

NameTypeDescription
properties?IOnConflictOptionsProperties to set

Returns

OnConflictOptions

OnConflictOptions instance


decode

decode(reader, length?): OnConflictOptions

Decodes an OnConflictOptions message from the specified reader or buffer.

Parameters

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

Returns

OnConflictOptions

OnConflictOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): OnConflictOptions

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

OnConflictOptions

OnConflictOptions

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

Parameters

NameTypeDescription
messageIOnConflictOptionsOnConflictOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
messageIOnConflictOptionsOnConflictOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): OnConflictOptions

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

OnConflictOptions

OnConflictOptions


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for OnConflictOptions

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

Parameters

NameTypeDescription
messageOnConflictOptionsOnConflictOptions
options?IConversionOptionsConversion options

Returns

Object

Plain object