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.v2beta1.ConversationEvent.Type| Enum Constant and 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.
|
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ConversationEvent.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final ConversationEvent.Type TYPE_UNSPECIFIED
Type not set.
TYPE_UNSPECIFIED = 0;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;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;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;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;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;public static final ConversationEvent.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Type not set.
TYPE_UNSPECIFIED = 0;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;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;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;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;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;public static ConversationEvent.Type[] values()
for (ConversationEvent.Type c : ConversationEvent.Type.values()) System.out.println(c);
public static ConversationEvent.Type 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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ConversationEvent.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ConversationEvent.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ConversationEvent.Type> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ConversationEvent.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.