Enum ConversationEvent.Type

    • 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.v2.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;
    • 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.v2.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 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 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 name
        NullPointerException - if the argument is null