Package com.google.cloud.batch.v1alpha
Class LifecyclePolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.Builder>
com.google.cloud.batch.v1alpha.LifecyclePolicy.Builder
- All Implemented Interfaces:
LifecyclePolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LifecyclePolicy
public static final class LifecyclePolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.Builder>
implements LifecyclePolicyOrBuilder
LifecyclePolicy describes how to deal with task failures based on different conditions.Protobuf type
google.cloud.batch.v1alpha.LifecyclePolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Action to execute when ActionCondition is true.Conditions that decide why a task failure is dealt with a specific action.Action to execute when ActionCondition is true.Conditions that decide why a task failure is dealt with a specific action.Conditions that decide why a task failure is dealt with a specific action.Conditions that decide why a task failure is dealt with a specific action.intAction to execute when ActionCondition is true.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanConditions that decide why a task failure is dealt with a specific action.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanConditions that decide why a task failure is dealt with a specific action.mergeFrom(LifecyclePolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAction(LifecyclePolicy.Action value) Action to execute when ActionCondition is true.Conditions that decide why a task failure is dealt with a specific action.setActionCondition(LifecyclePolicy.ActionCondition.Builder builderForValue) Conditions that decide why a task failure is dealt with a specific action.setActionValue(int value) Action to execute when ActionCondition is true.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LifecyclePolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LifecyclePolicy.Builder>
-
mergeFrom
public LifecyclePolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LifecyclePolicy.Builder>- Throws:
IOException
-
getActionValue
public int getActionValue()Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.
.google.cloud.batch.v1alpha.LifecyclePolicy.Action action = 1;- Specified by:
getActionValuein interfaceLifecyclePolicyOrBuilder- Returns:
- The enum numeric value on the wire for action.
-
setActionValue
Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.
.google.cloud.batch.v1alpha.LifecyclePolicy.Action action = 1;- Parameters:
value- The enum numeric value on the wire for action to set.- Returns:
- This builder for chaining.
-
getAction
Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.
.google.cloud.batch.v1alpha.LifecyclePolicy.Action action = 1;- Specified by:
getActionin interfaceLifecyclePolicyOrBuilder- Returns:
- The action.
-
setAction
Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.
.google.cloud.batch.v1alpha.LifecyclePolicy.Action action = 1;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.
.google.cloud.batch.v1alpha.LifecyclePolicy.Action action = 1;- Returns:
- This builder for chaining.
-
hasActionCondition
public boolean hasActionCondition()Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2;- Specified by:
hasActionConditionin interfaceLifecyclePolicyOrBuilder- Returns:
- Whether the actionCondition field is set.
-
getActionCondition
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2;- Specified by:
getActionConditionin interfaceLifecyclePolicyOrBuilder- Returns:
- The actionCondition.
-
setActionCondition
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2; -
setActionCondition
public LifecyclePolicy.Builder setActionCondition(LifecyclePolicy.ActionCondition.Builder builderForValue) Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2; -
mergeActionCondition
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2; -
clearActionCondition
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2; -
getActionConditionBuilder
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2; -
getActionConditionOrBuilder
Conditions that decide why a task failure is dealt with a specific action.
.google.cloud.batch.v1alpha.LifecyclePolicy.ActionCondition action_condition = 2;- Specified by:
getActionConditionOrBuilderin interfaceLifecyclePolicyOrBuilder
-