Package com.google.cloud.dialogflow.v2
Enum Connection.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Connection.State>
- Enclosing class:
- Connection
public static enum Connection.State
extends Enum<Connection.State>
implements com.google.protobuf.ProtocolMessageEnum
The state of Sip Trunk connection.Protobuf enum
google.cloud.dialogflow.v2.Connection.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSIP Trunk connection has authentication error.SIP Trunk connection is connected.SIP Trunk connection is disconnected.SIP Trunk connection is keepalive.SIP Trunk connection state is Not specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSIP Trunk connection has authentication error.static final intSIP Trunk connection is connected.static final intSIP Trunk connection is disconnected.static final intSIP Trunk connection is keepalive.static final intSIP Trunk connection state is Not specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic Connection.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Connection.State>static Connection.StatevalueOf(int value) Deprecated.static Connection.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Connection.StateReturns the enum constant of this type with the specified name.static Connection.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
SIP Trunk connection state is Not specified.
STATE_UNSPECIFIED = 0; -
CONNECTED
SIP Trunk connection is connected.
CONNECTED = 1; -
DISCONNECTED
SIP Trunk connection is disconnected.
DISCONNECTED = 2; -
AUTHENTICATION_FAILED
SIP Trunk connection has authentication error.
AUTHENTICATION_FAILED = 3; -
KEEPALIVE
SIP Trunk connection is keepalive.
KEEPALIVE = 4; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUESIP Trunk connection state is Not specified.
STATE_UNSPECIFIED = 0;- See Also:
-
CONNECTED_VALUE
public static final int CONNECTED_VALUESIP Trunk connection is connected.
CONNECTED = 1;- See Also:
-
DISCONNECTED_VALUE
public static final int DISCONNECTED_VALUESIP Trunk connection is disconnected.
DISCONNECTED = 2;- See Also:
-
AUTHENTICATION_FAILED_VALUE
public static final int AUTHENTICATION_FAILED_VALUESIP Trunk connection has authentication error.
AUTHENTICATION_FAILED = 3;- See Also:
-
KEEPALIVE_VALUE
public static final int KEEPALIVE_VALUESIP Trunk connection is keepalive.
KEEPALIVE = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-