Class LifecyclePolicy.Builder (0.3.2)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class LifecyclePolicy.Builder extends GeneratedMessageV3.Builder<LifecyclePolicy.Builder> implements LifecyclePolicyOrBuilder
LifecyclePolicy describes how to deal with task failures
based on different conditions.
Protobuf type google.cloud.batch.v1.LifecyclePolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LifecyclePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LifecyclePolicy build()
Returns
buildPartial()
public LifecyclePolicy buildPartial()
Returns
clear()
public LifecyclePolicy.Builder clear()
Returns
Overrides
clearAction()
public LifecyclePolicy.Builder clearAction()
Action to execute when ActionCondition is true.
.google.cloud.batch.v1.LifecyclePolicy.Action action = 1;
Returns
clearActionCondition()
public LifecyclePolicy.Builder clearActionCondition()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public LifecyclePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LifecyclePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public LifecyclePolicy.Builder clone()
Returns
Overrides
getAction()
public LifecyclePolicy.Action getAction()
Action to execute when ActionCondition is true.
.google.cloud.batch.v1.LifecyclePolicy.Action action = 1;
Returns
getActionCondition()
public LifecyclePolicy.ActionCondition getActionCondition()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Returns
getActionConditionBuilder()
public LifecyclePolicy.ActionCondition.Builder getActionConditionBuilder()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Returns
getActionConditionOrBuilder()
public LifecyclePolicy.ActionConditionOrBuilder getActionConditionOrBuilder()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Returns
getActionValue()
public int getActionValue()
Action to execute when ActionCondition is true.
.google.cloud.batch.v1.LifecyclePolicy.Action action = 1;
Returns
Type |
Description |
int |
The enum numeric value on the wire for action.
|
getDefaultInstanceForType()
public LifecyclePolicy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
hasActionCondition()
public boolean hasActionCondition()
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Returns
Type |
Description |
boolean |
Whether the actionCondition field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeActionCondition(LifecyclePolicy.ActionCondition value)
public LifecyclePolicy.Builder mergeActionCondition(LifecyclePolicy.ActionCondition value)
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Parameter
Returns
mergeFrom(LifecyclePolicy other)
public LifecyclePolicy.Builder mergeFrom(LifecyclePolicy other)
Parameter
Returns
public LifecyclePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LifecyclePolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LifecyclePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAction(LifecyclePolicy.Action value)
public LifecyclePolicy.Builder setAction(LifecyclePolicy.Action value)
Action to execute when ActionCondition is true.
.google.cloud.batch.v1.LifecyclePolicy.Action action = 1;
Parameter
Returns
setActionCondition(LifecyclePolicy.ActionCondition value)
public LifecyclePolicy.Builder setActionCondition(LifecyclePolicy.ActionCondition value)
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Parameter
Returns
setActionCondition(LifecyclePolicy.ActionCondition.Builder builderForValue)
public LifecyclePolicy.Builder setActionCondition(LifecyclePolicy.ActionCondition.Builder builderForValue)
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1.LifecyclePolicy.ActionCondition action_condition = 2;
Parameter
Returns
setActionValue(int value)
public LifecyclePolicy.Builder setActionValue(int value)
Action to execute when ActionCondition is true.
.google.cloud.batch.v1.LifecyclePolicy.Action action = 1;
Parameter
Name |
Description |
value |
int
The enum numeric value on the wire for action to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LifecyclePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LifecyclePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LifecyclePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]