public enum Environment extends Enum<Environment> implements com.google.protobuf.ProtocolMessageEnum
The environment the function is hosted on.Protobuf enum
google.cloud.functions.v2.Environment| Enum Constant and Description |
|---|
ENVIRONMENT_UNSPECIFIED
Unspecified
|
GEN_1
Gen 1
|
GEN_2
Gen 2
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ENVIRONMENT_UNSPECIFIED_VALUE
Unspecified
|
static int |
GEN_1_VALUE
Gen 1
|
static int |
GEN_2_VALUE
Gen 2
|
| Modifier and Type | Method and Description |
|---|---|
static Environment |
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<Environment> |
internalGetValueMap() |
static Environment |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Environment |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Environment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Environment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Environment ENVIRONMENT_UNSPECIFIED
Unspecified
ENVIRONMENT_UNSPECIFIED = 0;public static final Environment GEN_1
Gen 1
GEN_1 = 1;public static final Environment GEN_2
Gen 2
GEN_2 = 2;public static final Environment UNRECOGNIZED
public static final int ENVIRONMENT_UNSPECIFIED_VALUE
Unspecified
ENVIRONMENT_UNSPECIFIED = 0;public static final int GEN_1_VALUE
Gen 1
GEN_1 = 1;public static final int GEN_2_VALUE
Gen 2
GEN_2 = 2;public static Environment[] values()
for (Environment c : Environment.values()) System.out.println(c);
public static Environment 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 Environment valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Environment forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Environment> 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 Environment valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.