Class MatchIntentResponse

  • All Implemented Interfaces:
    MatchIntentResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class MatchIntentResponse
    extends com.google.protobuf.GeneratedMessageV3
    implements MatchIntentResponseOrBuilder
     Response of [MatchIntent][].
     
    Protobuf type google.cloud.dialogflow.cx.v3.MatchIntentResponse
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MatchIntentResponse.Builder
      Response of [MatchIntent][].
      static class  MatchIntentResponse.QueryCase  
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      Page getCurrentPage()
      The current [Page][google.cloud.dialogflow.cx.v3.Page].
      PageOrBuilder getCurrentPageOrBuilder()
      The current [Page][google.cloud.dialogflow.cx.v3.Page].
      static MatchIntentResponse getDefaultInstance()  
      MatchIntentResponse getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      Match getMatches​(int index)
      Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.
      int getMatchesCount()
      Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.
      List<Match> getMatchesList()
      Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.
      MatchOrBuilder getMatchesOrBuilder​(int index)
      Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.
      List<? extends MatchOrBuilder> getMatchesOrBuilderList()
      Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query.
      com.google.protobuf.Parser<MatchIntentResponse> getParserForType()  
      MatchIntentResponse.QueryCase getQueryCase()  
      int getSerializedSize()  
      String getText()
      If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.
      com.google.protobuf.ByteString getTextBytes()
      If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.
      String getTranscript()
      If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.
      com.google.protobuf.ByteString getTranscriptBytes()
      If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.
      String getTriggerEvent()
      If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain a copy of the event name.
      com.google.protobuf.ByteString getTriggerEventBytes()
      If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain a copy of the event name.
      String getTriggerIntent()
      If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will contain a copy of the intent identifier.
      com.google.protobuf.ByteString getTriggerIntentBytes()
      If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will contain a copy of the intent identifier.
      boolean hasCurrentPage()
      The current [Page][google.cloud.dialogflow.cx.v3.Page].
      int hashCode()  
      boolean hasText()
      If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field will contain a copy of the text.
      boolean hasTranscript()
      If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, this field will contain the transcript for the audio.
      boolean hasTriggerEvent()
      If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain a copy of the event name.
      boolean hasTriggerIntent()
      If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will contain a copy of the intent identifier.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static MatchIntentResponse.Builder newBuilder()  
      static MatchIntentResponse.Builder newBuilder​(MatchIntentResponse prototype)  
      MatchIntentResponse.Builder newBuilderForType()  
      protected MatchIntentResponse.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static MatchIntentResponse parseDelimitedFrom​(InputStream input)  
      static MatchIntentResponse parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static MatchIntentResponse parseFrom​(byte[] data)  
      static MatchIntentResponse parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static MatchIntentResponse parseFrom​(com.google.protobuf.ByteString data)  
      static MatchIntentResponse parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static MatchIntentResponse parseFrom​(com.google.protobuf.CodedInputStream input)  
      static MatchIntentResponse parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static MatchIntentResponse parseFrom​(InputStream input)  
      static MatchIntentResponse parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static MatchIntentResponse parseFrom​(ByteBuffer data)  
      static MatchIntentResponse parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<MatchIntentResponse> parser()  
      MatchIntentResponse.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasText

        public boolean hasText()
         If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
         provided as input, this field will contain a copy of the text.
         
        string text = 1;
        Specified by:
        hasText in interface MatchIntentResponseOrBuilder
        Returns:
        Whether the text field is set.
      • getText

        public String getText()
         If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
         provided as input, this field will contain a copy of the text.
         
        string text = 1;
        Specified by:
        getText in interface MatchIntentResponseOrBuilder
        Returns:
        The text.
      • getTextBytes

        public com.google.protobuf.ByteString getTextBytes()
         If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
         provided as input, this field will contain a copy of the text.
         
        string text = 1;
        Specified by:
        getTextBytes in interface MatchIntentResponseOrBuilder
        Returns:
        The bytes for text.
      • hasTriggerIntent

        public boolean hasTriggerIntent()
         If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
         input, this field will contain a copy of the intent identifier. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string trigger_intent = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        hasTriggerIntent in interface MatchIntentResponseOrBuilder
        Returns:
        Whether the triggerIntent field is set.
      • getTriggerIntent

        public String getTriggerIntent()
         If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
         input, this field will contain a copy of the intent identifier. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string trigger_intent = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTriggerIntent in interface MatchIntentResponseOrBuilder
        Returns:
        The triggerIntent.
      • getTriggerIntentBytes

        public com.google.protobuf.ByteString getTriggerIntentBytes()
         If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
         input, this field will contain a copy of the intent identifier. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/intents/<Intent ID>`.
         
        string trigger_intent = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTriggerIntentBytes in interface MatchIntentResponseOrBuilder
        Returns:
        The bytes for triggerIntent.
      • hasTranscript

        public boolean hasTranscript()
         If [natural language speech
         audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
         this field will contain the transcript for the audio.
         
        string transcript = 3;
        Specified by:
        hasTranscript in interface MatchIntentResponseOrBuilder
        Returns:
        Whether the transcript field is set.
      • getTranscript

        public String getTranscript()
         If [natural language speech
         audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
         this field will contain the transcript for the audio.
         
        string transcript = 3;
        Specified by:
        getTranscript in interface MatchIntentResponseOrBuilder
        Returns:
        The transcript.
      • getTranscriptBytes

        public com.google.protobuf.ByteString getTranscriptBytes()
         If [natural language speech
         audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
         this field will contain the transcript for the audio.
         
        string transcript = 3;
        Specified by:
        getTranscriptBytes in interface MatchIntentResponseOrBuilder
        Returns:
        The bytes for transcript.
      • hasTriggerEvent

        public boolean hasTriggerEvent()
         If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
         input, this field will contain a copy of the event name.
         
        string trigger_event = 6;
        Specified by:
        hasTriggerEvent in interface MatchIntentResponseOrBuilder
        Returns:
        Whether the triggerEvent field is set.
      • getTriggerEvent

        public String getTriggerEvent()
         If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
         input, this field will contain a copy of the event name.
         
        string trigger_event = 6;
        Specified by:
        getTriggerEvent in interface MatchIntentResponseOrBuilder
        Returns:
        The triggerEvent.
      • getTriggerEventBytes

        public com.google.protobuf.ByteString getTriggerEventBytes()
         If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
         input, this field will contain a copy of the event name.
         
        string trigger_event = 6;
        Specified by:
        getTriggerEventBytes in interface MatchIntentResponseOrBuilder
        Returns:
        The bytes for triggerEvent.
      • getMatchesList

        public List<Match> getMatchesList()
         Match results, if more than one, ordered descendingly by the confidence
         we have that the particular intent matches the query.
         
        repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;
        Specified by:
        getMatchesList in interface MatchIntentResponseOrBuilder
      • getMatchesOrBuilderList

        public List<? extends MatchOrBuilder> getMatchesOrBuilderList()
         Match results, if more than one, ordered descendingly by the confidence
         we have that the particular intent matches the query.
         
        repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;
        Specified by:
        getMatchesOrBuilderList in interface MatchIntentResponseOrBuilder
      • getMatchesCount

        public int getMatchesCount()
         Match results, if more than one, ordered descendingly by the confidence
         we have that the particular intent matches the query.
         
        repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;
        Specified by:
        getMatchesCount in interface MatchIntentResponseOrBuilder
      • getMatches

        public Match getMatches​(int index)
         Match results, if more than one, ordered descendingly by the confidence
         we have that the particular intent matches the query.
         
        repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;
        Specified by:
        getMatches in interface MatchIntentResponseOrBuilder
      • getMatchesOrBuilder

        public MatchOrBuilder getMatchesOrBuilder​(int index)
         Match results, if more than one, ordered descendingly by the confidence
         we have that the particular intent matches the query.
         
        repeated .google.cloud.dialogflow.cx.v3.Match matches = 4;
        Specified by:
        getMatchesOrBuilder in interface MatchIntentResponseOrBuilder
      • hasCurrentPage

        public boolean hasCurrentPage()
         The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
         fields are filled in this message, including but not limited to `name` and
         `display_name`.
         
        .google.cloud.dialogflow.cx.v3.Page current_page = 5;
        Specified by:
        hasCurrentPage in interface MatchIntentResponseOrBuilder
        Returns:
        Whether the currentPage field is set.
      • getCurrentPage

        public Page getCurrentPage()
         The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
         fields are filled in this message, including but not limited to `name` and
         `display_name`.
         
        .google.cloud.dialogflow.cx.v3.Page current_page = 5;
        Specified by:
        getCurrentPage in interface MatchIntentResponseOrBuilder
        Returns:
        The currentPage.
      • getCurrentPageOrBuilder

        public PageOrBuilder getCurrentPageOrBuilder()
         The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
         fields are filled in this message, including but not limited to `name` and
         `display_name`.
         
        .google.cloud.dialogflow.cx.v3.Page current_page = 5;
        Specified by:
        getCurrentPageOrBuilder in interface MatchIntentResponseOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MatchIntentResponse parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchIntentResponse parseFrom​(ByteBuffer data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchIntentResponse parseFrom​(com.google.protobuf.ByteString data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchIntentResponse parseFrom​(com.google.protobuf.ByteString data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchIntentResponse parseFrom​(byte[] data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchIntentResponse parseFrom​(byte[] data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchIntentResponse parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

        public MatchIntentResponse.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MatchIntentResponse.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected MatchIntentResponse.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<MatchIntentResponse> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MatchIntentResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder