Skip to main content

Class: InsertBuildIdAssignmentRule

v1.UpdateWorkerVersioningRulesRequest.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: null | $Properties

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

create(properties?): InsertBuildIdAssignmentRule & $Shape

Creates a new InsertBuildIdAssignmentRule instance using the specified properties.

Parameters

NameTypeDescription
properties?$ShapeProperties to set

Returns

InsertBuildIdAssignmentRule & $Shape

InsertBuildIdAssignmentRule instance

create(properties?): InsertBuildIdAssignmentRule

Parameters

NameType
properties?$Properties

Returns

InsertBuildIdAssignmentRule


decode

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

Decodes an InsertBuildIdAssignmentRule message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage 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

decodeDelimited(reader): InsertBuildIdAssignmentRule & $Shape

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader 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

encode(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): InsertBuildIdAssignmentRule

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

InsertBuildIdAssignmentRule

InsertBuildIdAssignmentRule


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageInsertBuildIdAssignmentRuleInsertBuildIdAssignmentRule
options?IConversionOptionsConversion options

Returns

Object

Plain object