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.

Implements

Constructors

constructor

new InsertBuildIdAssignmentRule(properties?): InsertBuildIdAssignmentRule

Constructs a new InsertBuildIdAssignmentRule.

Parameters

NameTypeDescription
properties?IInsertBuildIdAssignmentRuleProperties to set

Returns

InsertBuildIdAssignmentRule

Properties

rule

Optional rule: null | IBuildIdAssignmentRule

InsertBuildIdAssignmentRule rule.

Implementation of

IInsertBuildIdAssignmentRule.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.

Implementation of

IInsertBuildIdAssignmentRule.ruleIndex

Methods

toJSON

toJSON(): Object

Converts this InsertBuildIdAssignmentRule to JSON.

Returns

Object

JSON object


create

create(properties?): InsertBuildIdAssignmentRule

Creates a new InsertBuildIdAssignmentRule instance using the specified properties.

Parameters

NameTypeDescription
properties?IInsertBuildIdAssignmentRuleProperties to set

Returns

InsertBuildIdAssignmentRule

InsertBuildIdAssignmentRule instance


decode

decode(reader, length?): InsertBuildIdAssignmentRule

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

InsertBuildIdAssignmentRule

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): InsertBuildIdAssignmentRule

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

InsertBuildIdAssignmentRule

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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for InsertBuildIdAssignmentRule

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

Parameters

NameTypeDescription
messageInsertBuildIdAssignmentRuleInsertBuildIdAssignmentRule
options?IConversionOptionsConversion options

Returns

Object

Plain object