Class MatchIntentResponse.Builder

    • Method Detail

      • 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.Builder<MatchIntentResponse.Builder>
      • clear

        public MatchIntentResponse.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public MatchIntentResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • setField

        public MatchIntentResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • clearField

        public MatchIntentResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • clearOneof

        public MatchIntentResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • setRepeatedField

        public MatchIntentResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • addRepeatedField

        public MatchIntentResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • mergeFrom

        public MatchIntentResponse.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MatchIntentResponse.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • mergeFrom

        public MatchIntentResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MatchIntentResponse.Builder>
        Throws:
        IOException
      • 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.
      • setText

        public MatchIntentResponse.Builder setText​(String value)
         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;
        Parameters:
        value - The text to set.
        Returns:
        This builder for chaining.
      • clearText

        public MatchIntentResponse.Builder clearText()
         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;
        Returns:
        This builder for chaining.
      • setTextBytes

        public MatchIntentResponse.Builder setTextBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for text to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTriggerIntent

        public MatchIntentResponse.Builder setTriggerIntent​(String value)
         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) = { ... }
        Parameters:
        value - The triggerIntent to set.
        Returns:
        This builder for chaining.
      • clearTriggerIntent

        public MatchIntentResponse.Builder clearTriggerIntent()
         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) = { ... }
        Returns:
        This builder for chaining.
      • setTriggerIntentBytes

        public MatchIntentResponse.Builder setTriggerIntentBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for triggerIntent to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTranscript

        public MatchIntentResponse.Builder setTranscript​(String value)
         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;
        Parameters:
        value - The transcript to set.
        Returns:
        This builder for chaining.
      • clearTranscript

        public MatchIntentResponse.Builder clearTranscript()
         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;
        Returns:
        This builder for chaining.
      • setTranscriptBytes

        public MatchIntentResponse.Builder setTranscriptBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for transcript to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTriggerEvent

        public MatchIntentResponse.Builder setTriggerEvent​(String value)
         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;
        Parameters:
        value - The triggerEvent to set.
        Returns:
        This builder for chaining.
      • clearTriggerEvent

        public MatchIntentResponse.Builder clearTriggerEvent()
         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;
        Returns:
        This builder for chaining.
      • setTriggerEventBytes

        public MatchIntentResponse.Builder setTriggerEventBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for triggerEvent to set.
        Returns:
        This builder for chaining.
      • 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
      • 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
      • setMatches

        public MatchIntentResponse.Builder setMatches​(int index,
                                                      Match value)
         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;
      • setMatches

        public MatchIntentResponse.Builder setMatches​(int index,
                                                      Match.Builder builderForValue)
         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;
      • addMatches

        public MatchIntentResponse.Builder addMatches​(Match value)
         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;
      • addMatches

        public MatchIntentResponse.Builder addMatches​(int index,
                                                      Match value)
         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;
      • addMatches

        public MatchIntentResponse.Builder addMatches​(Match.Builder builderForValue)
         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;
      • addMatches

        public MatchIntentResponse.Builder addMatches​(int index,
                                                      Match.Builder builderForValue)
         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;
      • addAllMatches

        public MatchIntentResponse.Builder addAllMatches​(Iterable<? extends Match> values)
         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;
      • clearMatches

        public MatchIntentResponse.Builder clearMatches()
         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;
      • removeMatches

        public MatchIntentResponse.Builder removeMatches​(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;
      • getMatchesBuilder

        public Match.Builder getMatchesBuilder​(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;
      • 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
      • 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
      • addMatchesBuilder

        public Match.Builder addMatchesBuilder()
         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;
      • addMatchesBuilder

        public Match.Builder addMatchesBuilder​(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;
      • getMatchesBuilderList

        public List<Match.Builder> getMatchesBuilderList()
         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;
      • 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.
      • setCurrentPage

        public MatchIntentResponse.Builder setCurrentPage​(Page value)
         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;
      • setCurrentPage

        public MatchIntentResponse.Builder setCurrentPage​(Page.Builder builderForValue)
         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;
      • mergeCurrentPage

        public MatchIntentResponse.Builder mergeCurrentPage​(Page value)
         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;
      • clearCurrentPage

        public MatchIntentResponse.Builder clearCurrentPage()
         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;
      • getCurrentPageBuilder

        public Page.Builder getCurrentPageBuilder()
         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;
      • 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
      • setUnknownFields

        public final MatchIntentResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>
      • mergeUnknownFields

        public final MatchIntentResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MatchIntentResponse.Builder>