Package com.google.cloud.dialogflow.v2
Enum TriggerEvent
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TriggerEvent>
@Generated
public enum TriggerEvent
extends Enum<TriggerEvent>
implements com.google.protobuf.ProtocolMessageEnum
The event that triggers the generator and LLM execution.Protobuf enum
google.cloud.dialogflow.v2.TriggerEvent-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTriggers after each agent message only.Triggers after each customer message only.Triggers when each chat message or voice utterance ends.Triggers on the conversation manually by API calls, such as Conversations.GenerateStatelessSuggestion and Conversations.GenerateSuggestions.Default value for TriggerEvent. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTriggers after each agent message only.static final intTriggers after each customer message only.static final intTriggers when each chat message or voice utterance ends.static final intTriggers on the conversation manually by API calls, such as Conversations.GenerateStatelessSuggestion and Conversations.GenerateSuggestions.static final intDefault value for TriggerEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic TriggerEventforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<TriggerEvent>static TriggerEventvalueOf(int value) Deprecated.static TriggerEventvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static TriggerEventReturns the enum constant of this type with the specified name.static TriggerEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRIGGER_EVENT_UNSPECIFIED
Default value for TriggerEvent.
TRIGGER_EVENT_UNSPECIFIED = 0; -
END_OF_UTTERANCE
Triggers when each chat message or voice utterance ends.
END_OF_UTTERANCE = 1; -
MANUAL_CALL
Triggers on the conversation manually by API calls, such as Conversations.GenerateStatelessSuggestion and Conversations.GenerateSuggestions.
MANUAL_CALL = 2; -
CUSTOMER_MESSAGE
Triggers after each customer message only.
CUSTOMER_MESSAGE = 3; -
AGENT_MESSAGE
Triggers after each agent message only.
AGENT_MESSAGE = 4; -
UNRECOGNIZED
-
-
Field Details
-
TRIGGER_EVENT_UNSPECIFIED_VALUE
public static final int TRIGGER_EVENT_UNSPECIFIED_VALUEDefault value for TriggerEvent.
TRIGGER_EVENT_UNSPECIFIED = 0;- See Also:
-
END_OF_UTTERANCE_VALUE
public static final int END_OF_UTTERANCE_VALUETriggers when each chat message or voice utterance ends.
END_OF_UTTERANCE = 1;- See Also:
-
MANUAL_CALL_VALUE
public static final int MANUAL_CALL_VALUETriggers on the conversation manually by API calls, such as Conversations.GenerateStatelessSuggestion and Conversations.GenerateSuggestions.
MANUAL_CALL = 2;- See Also:
-
CUSTOMER_MESSAGE_VALUE
public static final int CUSTOMER_MESSAGE_VALUETriggers after each customer message only.
CUSTOMER_MESSAGE = 3;- See Also:
-
AGENT_MESSAGE_VALUE
public static final int AGENT_MESSAGE_VALUETriggers after each agent message only.
AGENT_MESSAGE = 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
-