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