Skip to main content

Class: InsertBuildIdAssignmentRule

Inserts the rule to the list of assignment rules for this Task Queue. The rules are evaluated in order, starting from index 0. The first applicable rule will be applied and the rest will be ignored.

Properties​

rule?​

optional rule?: $Properties | null

InsertBuildIdAssignmentRule rule.


ruleIndex​

ruleIndex: number

Use this option to insert the rule in a particular index. By default, the new rule is inserted at the beginning of the list (index 0). If the given index is too larger the rule will be inserted at the end of the list.

Methods​

toJSON()​

toJSON(): object

Converts this InsertBuildIdAssignmentRule to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): InsertBuildIdAssignmentRule & $Shape

Creates a new InsertBuildIdAssignmentRule instance using the specified properties.

Parameters​
properties?​

$Shape

Properties to set

Returns​

InsertBuildIdAssignmentRule & $Shape

InsertBuildIdAssignmentRule instance

Call Signature​

static create(properties?): InsertBuildIdAssignmentRule

Creates a new InsertBuildIdAssignmentRule instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

InsertBuildIdAssignmentRule

InsertBuildIdAssignmentRule instance


decode()​

static decode(reader, length?): InsertBuildIdAssignmentRule & $Shape

Decodes an InsertBuildIdAssignmentRule message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

InsertBuildIdAssignmentRule & $Shape

InsertBuildIdAssignmentRule

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): InsertBuildIdAssignmentRule & $Shape

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

InsertBuildIdAssignmentRule & $Shape

InsertBuildIdAssignmentRule

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified InsertBuildIdAssignmentRule message. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule.verify|verify messages.

Parameters​

message​

$Properties

InsertBuildIdAssignmentRule message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified InsertBuildIdAssignmentRule message, length delimited. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule.verify|verify messages.

Parameters​

message​

$Properties

InsertBuildIdAssignmentRule message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): InsertBuildIdAssignmentRule

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

Parameters​

object​

Plain object

Returns​

InsertBuildIdAssignmentRule

InsertBuildIdAssignmentRule


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

InsertBuildIdAssignmentRule

InsertBuildIdAssignmentRule

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object