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
Name | Type | Description |
---|---|---|
properties? | IInsertBuildIdAssignmentRule | Properties to set |
Returns
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
Name | Type | Description |
---|---|---|
properties? | IInsertBuildIdAssignmentRule | Properties to set |
Returns
InsertBuildIdAssignmentRule instance
decode
▸ decode(reader
, length?
): InsertBuildIdAssignmentRule
Decodes an InsertBuildIdAssignmentRule message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
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
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
Name | Type | Description |
---|---|---|
message | IInsertBuildIdAssignmentRule | InsertBuildIdAssignmentRule message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
message | IInsertBuildIdAssignmentRule | InsertBuildIdAssignmentRule message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
InsertBuildIdAssignmentRule
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for InsertBuildIdAssignmentRule
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your 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
Name | Type | Description |
---|---|---|
message | InsertBuildIdAssignmentRule | InsertBuildIdAssignmentRule |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object