Skip to main content

Class: SetPatchMarker

coresdk.workflow_commands.SetPatchMarker

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

Implements

Constructors

constructor

new SetPatchMarker(properties?): SetPatchMarker

Constructs a new SetPatchMarker.

Parameters

NameTypeDescription
properties?ISetPatchMarkerProperties to set

Returns

SetPatchMarker

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.

Implementation of

ISetPatchMarker.deprecated


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

Implementation of

ISetPatchMarker.patchId

Methods

toJSON

toJSON(): Object

Converts this SetPatchMarker to JSON.

Returns

Object

JSON object


create

create(properties?): SetPatchMarker

Creates a new SetPatchMarker instance using the specified properties.

Parameters

NameTypeDescription
properties?ISetPatchMarkerProperties to set

Returns

SetPatchMarker

SetPatchMarker instance


decode

decode(reader, length?): SetPatchMarker

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

SetPatchMarker

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): SetPatchMarker

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

SetPatchMarker

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
messageISetPatchMarkerSetPatchMarker 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
messageISetPatchMarkerSetPatchMarker 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for SetPatchMarker

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

Parameters

NameTypeDescription
messageSetPatchMarkerSetPatchMarker
options?IConversionOptionsConversion options

Returns

Object

Plain object