public static enum LifecyclePolicy.Action extends Enum<LifecyclePolicy.Action> implements com.google.protobuf.ProtocolMessageEnum
Action on task failures based on different conditions.Protobuf enum
google.cloud.batch.v1.LifecyclePolicy.Action| Enum Constant and Description |
|---|
ACTION_UNSPECIFIED
Action unspecified.
|
FAIL_TASK
Action that tasks in the group will be stopped immediately.
|
RETRY_TASK
Action that tasks in the group will be scheduled to re-execute.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTION_UNSPECIFIED_VALUE
Action unspecified.
|
static int |
FAIL_TASK_VALUE
Action that tasks in the group will be stopped immediately.
|
static int |
RETRY_TASK_VALUE
Action that tasks in the group will be scheduled to re-execute.
|
| Modifier and Type | Method and Description |
|---|---|
static LifecyclePolicy.Action |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<LifecyclePolicy.Action> |
internalGetValueMap() |
static LifecyclePolicy.Action |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LifecyclePolicy.Action |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LifecyclePolicy.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LifecyclePolicy.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LifecyclePolicy.Action ACTION_UNSPECIFIED
Action unspecified.
ACTION_UNSPECIFIED = 0;public static final LifecyclePolicy.Action RETRY_TASK
Action that tasks in the group will be scheduled to re-execute.
RETRY_TASK = 1;public static final LifecyclePolicy.Action FAIL_TASK
Action that tasks in the group will be stopped immediately.
FAIL_TASK = 2;public static final LifecyclePolicy.Action UNRECOGNIZED
public static final int ACTION_UNSPECIFIED_VALUE
Action unspecified.
ACTION_UNSPECIFIED = 0;public static final int RETRY_TASK_VALUE
Action that tasks in the group will be scheduled to re-execute.
RETRY_TASK = 1;public static final int FAIL_TASK_VALUE
Action that tasks in the group will be stopped immediately.
FAIL_TASK = 2;public static LifecyclePolicy.Action[] values()
for (LifecyclePolicy.Action c : LifecyclePolicy.Action.values()) System.out.println(c);
public static LifecyclePolicy.Action valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static LifecyclePolicy.Action valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static LifecyclePolicy.Action forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LifecyclePolicy.Action> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LifecyclePolicy.Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.