public static enum EventTrigger.RetryPolicy extends Enum<EventTrigger.RetryPolicy> implements com.google.protobuf.ProtocolMessageEnum
Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution.Protobuf enum
google.cloud.functions.v2beta.EventTrigger.RetryPolicy| Enum Constant and Description |
|---|
RETRY_POLICY_DO_NOT_RETRY
Do not retry.
|
RETRY_POLICY_RETRY
Retry on any failure, retry up to 7 days with an exponential backoff
(capped at 10 seconds).
|
RETRY_POLICY_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
RETRY_POLICY_DO_NOT_RETRY_VALUE
Do not retry.
|
static int |
RETRY_POLICY_RETRY_VALUE
Retry on any failure, retry up to 7 days with an exponential backoff
(capped at 10 seconds).
|
static int |
RETRY_POLICY_UNSPECIFIED_VALUE
Not specified.
|
| Modifier and Type | Method and Description |
|---|---|
static EventTrigger.RetryPolicy |
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<EventTrigger.RetryPolicy> |
internalGetValueMap() |
static EventTrigger.RetryPolicy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static EventTrigger.RetryPolicy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static EventTrigger.RetryPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventTrigger.RetryPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventTrigger.RetryPolicy RETRY_POLICY_UNSPECIFIED
Not specified.
RETRY_POLICY_UNSPECIFIED = 0;public static final EventTrigger.RetryPolicy RETRY_POLICY_DO_NOT_RETRY
Do not retry.
RETRY_POLICY_DO_NOT_RETRY = 1;public static final EventTrigger.RetryPolicy RETRY_POLICY_RETRY
Retry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).
RETRY_POLICY_RETRY = 2;public static final EventTrigger.RetryPolicy UNRECOGNIZED
public static final int RETRY_POLICY_UNSPECIFIED_VALUE
Not specified.
RETRY_POLICY_UNSPECIFIED = 0;public static final int RETRY_POLICY_DO_NOT_RETRY_VALUE
Do not retry.
RETRY_POLICY_DO_NOT_RETRY = 1;public static final int RETRY_POLICY_RETRY_VALUE
Retry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).
RETRY_POLICY_RETRY = 2;public static EventTrigger.RetryPolicy[] values()
for (EventTrigger.RetryPolicy c : EventTrigger.RetryPolicy.values()) System.out.println(c);
public static EventTrigger.RetryPolicy 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 EventTrigger.RetryPolicy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static EventTrigger.RetryPolicy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<EventTrigger.RetryPolicy> 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 EventTrigger.RetryPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.