Enum TriggerEvent

java.lang.Object
java.lang.Enum<TriggerEvent>
com.google.cloud.dialogflow.v2.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 Details

    • TRIGGER_EVENT_UNSPECIFIED

      public static final TriggerEvent TRIGGER_EVENT_UNSPECIFIED
       Default value for TriggerEvent.
       
      TRIGGER_EVENT_UNSPECIFIED = 0;
    • END_OF_UTTERANCE

      public static final TriggerEvent END_OF_UTTERANCE
       Triggers when each chat message or voice utterance ends.
       
      END_OF_UTTERANCE = 1;
    • MANUAL_CALL

      public static final TriggerEvent MANUAL_CALL
       Triggers on the conversation manually by API calls, such as
       Conversations.GenerateStatelessSuggestion and
       Conversations.GenerateSuggestions.
       
      MANUAL_CALL = 2;
    • CUSTOMER_MESSAGE

      public static final TriggerEvent CUSTOMER_MESSAGE
       Triggers after each customer message only.
       
      CUSTOMER_MESSAGE = 3;
    • AGENT_MESSAGE

      public static final TriggerEvent AGENT_MESSAGE
       Triggers after each agent message only.
       
      AGENT_MESSAGE = 4;
    • UNRECOGNIZED

      public static final TriggerEvent UNRECOGNIZED
  • Field Details

    • TRIGGER_EVENT_UNSPECIFIED_VALUE

      public static final int TRIGGER_EVENT_UNSPECIFIED_VALUE
       Default value for TriggerEvent.
       
      TRIGGER_EVENT_UNSPECIFIED = 0;
      See Also:
    • END_OF_UTTERANCE_VALUE

      public static final int END_OF_UTTERANCE_VALUE
       Triggers when each chat message or voice utterance ends.
       
      END_OF_UTTERANCE = 1;
      See Also:
    • MANUAL_CALL_VALUE

      public static final int MANUAL_CALL_VALUE
       Triggers 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_VALUE
       Triggers after each customer message only.
       
      CUSTOMER_MESSAGE = 3;
      See Also:
    • AGENT_MESSAGE_VALUE

      public static final int AGENT_MESSAGE_VALUE
       Triggers after each agent message only.
       
      AGENT_MESSAGE = 4;
      See Also:
  • Method Details

    • values

      public static TriggerEvent[] 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

      public static TriggerEvent 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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static TriggerEvent 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 name
      NullPointerException - if the argument is null
    • forNumber

      public static TriggerEvent 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<TriggerEvent> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static TriggerEvent 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 name
      NullPointerException - if the argument is null