public static enum Environment.State extends Enum<Environment.State> implements com.google.protobuf.ProtocolMessageEnum
Represents an environment state. When an environment is pointed to a new agent version, the environment is temporarily set to the `LOADING` state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state.Protobuf enum
google.cloud.dialogflow.v2beta1.Environment.State| Enum Constant and Description |
|---|
LOADING
Loading.
|
RUNNING
Running.
|
STATE_UNSPECIFIED
Not specified.
|
STOPPED
Stopped.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
LOADING_VALUE
Loading.
|
static int |
RUNNING_VALUE
Running.
|
static int |
STATE_UNSPECIFIED_VALUE
Not specified.
|
static int |
STOPPED_VALUE
Stopped.
|
| Modifier and Type | Method and Description |
|---|---|
static Environment.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<Environment.State> |
internalGetValueMap() |
static Environment.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Environment.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Environment.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Environment.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Environment.State STATE_UNSPECIFIED
Not specified. This value is not used.
STATE_UNSPECIFIED = 0;public static final Environment.State STOPPED
Stopped.
STOPPED = 1;public static final Environment.State LOADING
Loading.
LOADING = 2;public static final Environment.State RUNNING
Running.
RUNNING = 3;public static final Environment.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Not specified. This value is not used.
STATE_UNSPECIFIED = 0;public static final int STOPPED_VALUE
Stopped.
STOPPED = 1;public static final int LOADING_VALUE
Loading.
LOADING = 2;public static final int RUNNING_VALUE
Running.
RUNNING = 3;public static Environment.State[] values()
for (Environment.State c : Environment.State.values()) System.out.println(c);
public static Environment.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 Environment.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Environment.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Environment.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 Environment.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.