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?
optionalrule?:$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
staticcreate(properties?):InsertBuildIdAssignmentRule&$Shape
Creates a new InsertBuildIdAssignmentRule instance using the specified properties.
Parameters
properties?
Properties to set
Returns
InsertBuildIdAssignmentRule & $Shape
InsertBuildIdAssignmentRule instance
Call Signature
staticcreate(properties?):InsertBuildIdAssignmentRule
Creates a new InsertBuildIdAssignmentRule instance using the specified properties.
Parameters
properties?
Properties to set
Returns
InsertBuildIdAssignmentRule
InsertBuildIdAssignmentRule instance
decode()
staticdecode(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()
staticdecodeDelimited(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()
staticencode(message,writer?):Writer
Encodes the specified InsertBuildIdAssignmentRule message. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule.verify|verify messages.
Parameters
message
InsertBuildIdAssignmentRule message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified InsertBuildIdAssignmentRule message, length delimited. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule.verify|verify messages.
Parameters
message
InsertBuildIdAssignmentRule message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(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()
statictoObject(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