Enum ConversationEvent.Type

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

    • 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.
       The event is fired for every CompleteConversation call, even if the
       conversation is already closed.
       
      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.v2.ConversationProfile.new_message_event_notification_config]
       
      NEW_MESSAGE = 5;
    • NEW_RECOGNITION_RESULT

      public static final ConversationEvent.Type 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

      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 Details

    • TYPE_UNSPECIFIED_VALUE

      public static final int TYPE_UNSPECIFIED_VALUE
       Type not set.
       
      TYPE_UNSPECIFIED = 0;
      See Also:
    • 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:
    • 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.
       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_VALUE
       An 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_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.v2.ConversationProfile.new_message_event_notification_config]
       
      NEW_MESSAGE = 5;
      See Also:
    • NEW_RECOGNITION_RESULT_VALUE

      public static final int NEW_RECOGNITION_RESULT_VALUE
       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;
      See Also:
    • 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:
  • Method Details

    • values

      public static ConversationEvent.Type[] 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 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 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 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 name
      NullPointerException - 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:
      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 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 name
      NullPointerException - if the argument is null