Enum ConversationEvent.Type
- java.lang.Object
-
- java.lang.Enum<ConversationEvent.Type>
-
- com.google.cloud.dialogflow.v2beta1.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.v2beta1.ConversationEvent.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONVERSATION_FINISHEDAn existing conversation has closed.CONVERSATION_STARTEDA new conversation has been opened.HUMAN_INTERVENTION_NEEDEDAn existing conversation has received notification from Dialogflow that human intervention is required.NEW_MESSAGEAn existing conversation has received a new message, either from API or telephony.TYPE_UNSPECIFIEDType not set.UNRECOGNIZEDUNRECOVERABLE_ERRORUnrecoverable error during a telephone call.
-
Field Summary
Fields Modifier and Type Field Description static intCONVERSATION_FINISHED_VALUEAn existing conversation has closed.static intCONVERSATION_STARTED_VALUEA new conversation has been opened.static intHUMAN_INTERVENTION_NEEDED_VALUEAn existing conversation has received notification from Dialogflow that human intervention is required.static intNEW_MESSAGE_VALUEAn existing conversation has received a new message, either from API or telephony.static intTYPE_UNSPECIFIED_VALUEType not set.static intUNRECOVERABLE_ERROR_VALUEUnrecoverable error during a telephone call.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ConversationEvent.TypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ConversationEvent.Type>internalGetValueMap()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.TypevalueOf(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.v2beta1.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.v2beta1.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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-