Skip to main content

Class: PinnedOverride

v1.VersioningOverride.PinnedOverride

Represents a PinnedOverride.

Properties

behavior

behavior: PinnedOverrideBehavior

Defaults to PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED. See PinnedOverrideBehavior for details.


version

Optional version: null | $Properties

Specifies the Worker Deployment Version to pin this workflow to. Required if the target workflow is not already pinned to a version.

If omitted and the target workflow is already pinned, the effective pinned version will be the existing pinned version.

If omitted and the target workflow is not pinned, the override request will be rejected with a PreconditionFailed error.

Methods

toJSON

toJSON(): Object

Converts this PinnedOverride to JSON.

Returns

Object

JSON object


create

create(properties?): PinnedOverride & $Properties

Creates a new PinnedOverride instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

PinnedOverride & $Properties

PinnedOverride instance

create(properties?): PinnedOverride

Parameters

NameType
properties?$Properties

Returns

PinnedOverride


decode

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

Decodes a PinnedOverride message from the specified reader or buffer.

Parameters

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

Returns

PinnedOverride & $Properties

PinnedOverride

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): PinnedOverride & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

PinnedOverride & $Properties

PinnedOverride

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 PinnedOverride message. Does not implicitly temporal.api.workflow.v1.VersioningOverride.PinnedOverride.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified PinnedOverride message, length delimited. Does not implicitly temporal.api.workflow.v1.VersioningOverride.PinnedOverride.verify|verify messages.

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): PinnedOverride

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

PinnedOverride

PinnedOverride


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messagePinnedOverridePinnedOverride
options?IConversionOptionsConversion options

Returns

Object

Plain object