Package com.google.cloud.dialogflow.v2
Enum 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 enum
google.cloud.dialogflow.v2.ConversationEvent.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn existing conversation has closed.A new conversation has been opened.An existing conversation has received notification from Dialogflow that human intervention is required.An existing conversation has received a new message, either from API or telephony.An existing conversation has received a new speech recognition result.Type not set.Unrecoverable error during a telephone call. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn existing conversation has closed.static final intA new conversation has been opened.static final intAn existing conversation has received notification from Dialogflow that human intervention is required.static final intAn existing conversation has received a new message, either from API or telephony.static final intAn existing conversation has received a new speech recognition result.static final intType not set.static final intUnrecoverable error during a telephone call. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationEvent.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ConversationEvent.Type>static ConversationEvent.TypevalueOf(int value) Deprecated.static ConversationEvent.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ConversationEvent.TypeReturns 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 Details
-
TYPE_UNSPECIFIED
Type not set.
TYPE_UNSPECIFIED = 0; -
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
An existing conversation has closed. This is fired when a telephone call is terminated, or a conversation is closed via the API. The event is fired for every CompleteConversation call, even if the conversation is already closed.
CONVERSATION_FINISHED = 2; -
HUMAN_INTERVENTION_NEEDED
An existing conversation has received notification from Dialogflow that human intervention is required.
HUMAN_INTERVENTION_NEEDED = 3; -
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; -
NEW_RECOGNITION_RESULT
An existing conversation has received a new speech recognition result. This is mainly for delivering intermediate transcripts. The notification is configured in [ConversationProfile.new_recognition_event_notification_config][].
NEW_RECOGNITION_RESULT = 7; -
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
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUEType not set.
TYPE_UNSPECIFIED = 0;- See Also:
-
CONVERSATION_STARTED_VALUE
public static final int CONVERSATION_STARTED_VALUEA 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:
-
CONVERSATION_FINISHED_VALUE
public static final int CONVERSATION_FINISHED_VALUEAn existing conversation has closed. This is fired when a telephone call is terminated, or a conversation is closed via the API. The event is fired for every CompleteConversation call, even if the conversation is already closed.
CONVERSATION_FINISHED = 2;- See Also:
-
HUMAN_INTERVENTION_NEEDED_VALUE
public static final int HUMAN_INTERVENTION_NEEDED_VALUEAn existing conversation has received notification from Dialogflow that human intervention is required.
HUMAN_INTERVENTION_NEEDED = 3;- See Also:
-
NEW_MESSAGE_VALUE
public static final int NEW_MESSAGE_VALUEAn 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:
-
NEW_RECOGNITION_RESULT_VALUE
public static final int NEW_RECOGNITION_RESULT_VALUEAn existing conversation has received a new speech recognition result. This is mainly for delivering intermediate transcripts. The notification is configured in [ConversationProfile.new_recognition_event_notification_config][].
NEW_RECOGNITION_RESULT = 7;- See Also:
-
UNRECOVERABLE_ERROR_VALUE
public static final int UNRECOVERABLE_ERROR_VALUEUnrecoverable 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:
-
-
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
public static com.google.protobuf.Internal.EnumLiteMap<ConversationEvent.Type> 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
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
-