public static enum Function.State extends Enum<Function.State> implements com.google.protobuf.ProtocolMessageEnum
Describes the current state of the function.Protobuf enum
google.cloud.functions.v2.Function.State| Enum Constant and Description |
|---|
ACTIVE
Function has been successfully deployed and is serving.
|
DELETING
Function is being deleted.
|
DEPLOYING
Function is being created or updated.
|
FAILED
Function deployment failed and the function is not serving.
|
STATE_UNSPECIFIED
Not specified.
|
UNKNOWN
Function deployment failed and the function serving state is undefined.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_VALUE
Function has been successfully deployed and is serving.
|
static int |
DELETING_VALUE
Function is being deleted.
|
static int |
DEPLOYING_VALUE
Function is being created or updated.
|
static int |
FAILED_VALUE
Function deployment failed and the function is not serving.
|
static int |
STATE_UNSPECIFIED_VALUE
Not specified.
|
static int |
UNKNOWN_VALUE
Function deployment failed and the function serving state is undefined.
|
| Modifier and Type | Method and Description |
|---|---|
static Function.State |
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<Function.State> |
internalGetValueMap() |
static Function.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Function.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Function.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Function.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Function.State STATE_UNSPECIFIED
Not specified. Invalid state.
STATE_UNSPECIFIED = 0;public static final Function.State ACTIVE
Function has been successfully deployed and is serving.
ACTIVE = 1;public static final Function.State FAILED
Function deployment failed and the function is not serving.
FAILED = 2;public static final Function.State DEPLOYING
Function is being created or updated.
DEPLOYING = 3;public static final Function.State DELETING
Function is being deleted.
DELETING = 4;public static final Function.State UNKNOWN
Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.
UNKNOWN = 5;public static final Function.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Not specified. Invalid state.
STATE_UNSPECIFIED = 0;public static final int ACTIVE_VALUE
Function has been successfully deployed and is serving.
ACTIVE = 1;public static final int FAILED_VALUE
Function deployment failed and the function is not serving.
FAILED = 2;public static final int DEPLOYING_VALUE
Function is being created or updated.
DEPLOYING = 3;public static final int DELETING_VALUE
Function is being deleted.
DELETING = 4;public static final int UNKNOWN_VALUE
Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.
UNKNOWN = 5;public static Function.State[] values()
for (Function.State c : Function.State.values()) System.out.println(c);
public static Function.State 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 Function.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Function.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Function.State> 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 Function.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.