Package com.google.cloud.dialogflow.v2
Enum ConversationEvent.Type
- java.lang.Object
-
- java.lang.Enum<ConversationEvent.Type>
-
- com.google.cloud.dialogflow.v2.ConversationEvent.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ConversationEvent.Type>
- Enclosing class:
- ConversationEvent
public static enum ConversationEvent.Type extends Enum<ConversationEvent.Type> implements com.google.protobuf.ProtocolMessageEnum
Enumeration of the types of events available.
Protobuf enumgoogle.cloud.dialogflow.v2.ConversationEvent.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONVERSATION_FINISHED
An existing conversation has closed.CONVERSATION_STARTED
A new conversation has been opened.HUMAN_INTERVENTION_NEEDED
An existing conversation has received notification from Dialogflow that human intervention is required.NEW_MESSAGE
An existing conversation has received a new message, either from API or telephony.TYPE_UNSPECIFIED
Type not set.UNRECOGNIZED
UNRECOVERABLE_ERROR
Unrecoverable error during a telephone call.
-
Field Summary
Fields Modifier and Type Field Description static int
CONVERSATION_FINISHED_VALUE
An existing conversation has closed.static int
CONVERSATION_STARTED_VALUE
A new conversation has been opened.static int
HUMAN_INTERVENTION_NEEDED_VALUE
An existing conversation has received notification from Dialogflow that human intervention is required.static int
NEW_MESSAGE_VALUE
An existing conversation has received a new message, either from API or telephony.static int
TYPE_UNSPECIFIED_VALUE
Type not set.static int
UNRECOVERABLE_ERROR_VALUE
Unrecoverable error during a telephone call.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ConversationEvent.Type
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<ConversationEvent.Type>
internalGetValueMap()
static ConversationEvent.Type
valueOf(int value)
Deprecated.static ConversationEvent.Type
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static ConversationEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConversationEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_UNSPECIFIED
public static final ConversationEvent.Type TYPE_UNSPECIFIED
Type not set.
TYPE_UNSPECIFIED = 0;
-
CONVERSATION_STARTED
public static final ConversationEvent.Type CONVERSATION_STARTED
A new conversation has been opened. This is fired when a telephone call is answered, or a conversation is created via the API.
CONVERSATION_STARTED = 1;
-
CONVERSATION_FINISHED
public static final ConversationEvent.Type CONVERSATION_FINISHED
An existing conversation has closed. This is fired when a telephone call is terminated, or a conversation is closed via the API.
CONVERSATION_FINISHED = 2;
-
HUMAN_INTERVENTION_NEEDED
public static final ConversationEvent.Type HUMAN_INTERVENTION_NEEDED
An existing conversation has received notification from Dialogflow that human intervention is required.
HUMAN_INTERVENTION_NEEDED = 3;
-
NEW_MESSAGE
public static final ConversationEvent.Type NEW_MESSAGE
An existing conversation has received a new message, either from API or telephony. It is configured in [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2.ConversationProfile.new_message_event_notification_config]
NEW_MESSAGE = 5;
-
UNRECOVERABLE_ERROR
public static final ConversationEvent.Type UNRECOVERABLE_ERROR
Unrecoverable error during a telephone call. In general non-recoverable errors only occur if something was misconfigured in the ConversationProfile corresponding to the call. After a non-recoverable error, Dialogflow may stop responding. We don't fire this event: * in an API call because we can directly return the error, or, * when we can recover from an error.
UNRECOVERABLE_ERROR = 4;
-
UNRECOGNIZED
public static final ConversationEvent.Type UNRECOGNIZED
-
-
Field Detail
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUE
Type not set.
TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
CONVERSATION_STARTED_VALUE
public static final int CONVERSATION_STARTED_VALUE
A new conversation has been opened. This is fired when a telephone call is answered, or a conversation is created via the API.
CONVERSATION_STARTED = 1;
- See Also:
- Constant Field Values
-
CONVERSATION_FINISHED_VALUE
public static final int CONVERSATION_FINISHED_VALUE
An existing conversation has closed. This is fired when a telephone call is terminated, or a conversation is closed via the API.
CONVERSATION_FINISHED = 2;
- See Also:
- Constant Field Values
-
HUMAN_INTERVENTION_NEEDED_VALUE
public static final int HUMAN_INTERVENTION_NEEDED_VALUE
An existing conversation has received notification from Dialogflow that human intervention is required.
HUMAN_INTERVENTION_NEEDED = 3;
- See Also:
- Constant Field Values
-
NEW_MESSAGE_VALUE
public static final int NEW_MESSAGE_VALUE
An existing conversation has received a new message, either from API or telephony. It is configured in [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2.ConversationProfile.new_message_event_notification_config]
NEW_MESSAGE = 5;
- See Also:
- Constant Field Values
-
UNRECOVERABLE_ERROR_VALUE
public static final int UNRECOVERABLE_ERROR_VALUE
Unrecoverable error during a telephone call. In general non-recoverable errors only occur if something was misconfigured in the ConversationProfile corresponding to the call. After a non-recoverable error, Dialogflow may stop responding. We don't fire this event: * in an API call because we can directly return the error, or, * when we can recover from an error.
UNRECOVERABLE_ERROR = 4;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ConversationEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConversationEvent.Type c : ConversationEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConversationEvent.Type valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ConversationEvent.Type valueOf(int value)
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
public static ConversationEvent.Type forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ConversationEvent.Type> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ConversationEvent.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-