public static enum Environment.State extends Enum<Environment.State> implements 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.v2.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 Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Environment.State> |
internalGetValueMap() |
static Environment.State |
valueOf(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 Internal.EnumLite
getNumber
in interface 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 Internal.EnumLiteMap<Environment.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Environment.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.