Skip to main content

Class: SetPatchMarker

coresdk.workflow_commands.SetPatchMarker

A request to set/check if a certain patch is present or not

Properties​

deprecated​

• deprecated: boolean

Can be set to true to indicate that branches using this change are being removed, and all future worker deployments will only have the "with change" code in them.


patchId​

• patchId: string

A user-chosen identifier for this patch. If the same identifier is used in multiple places in the code, those places are considered to be versioned as one unit. IE: The check call will return the same result for all of them

Methods​

toJSON​

▸ toJSON(): Object

Converts this SetPatchMarker to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): SetPatchMarker & $Properties

Creates a new SetPatchMarker instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

SetPatchMarker & $Properties

SetPatchMarker instance

▸ create(properties?): SetPatchMarker

Parameters​

NameType
properties?$Properties

Returns​

SetPatchMarker


decode​

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

Decodes a SetPatchMarker message from the specified reader or buffer.

Parameters​

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

Returns​

SetPatchMarker & $Properties

SetPatchMarker

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): SetPatchMarker & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

SetPatchMarker & $Properties

SetPatchMarker

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): SetPatchMarker

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

SetPatchMarker

SetPatchMarker


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageSetPatchMarkerSetPatchMarker
options?IConversionOptionsConversion options

Returns​

Object

Plain object