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

        public AgentAssistantFeedback.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<AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
      • getDefaultInstanceForType

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

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

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

        public AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
      • clearField

        public AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
      • clearOneof

        public AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
      • setRepeatedField

        public AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
      • addRepeatedField

        public AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
      • isInitialized

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

        public AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
        Throws:
        IOException
      • getAnswerRelevanceValue

        public int getAnswerRelevanceValue()
         Optional. Whether or not the suggested answer is relevant.
        
         For example:
        
         * Query: "Can I change my mailing address?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAnswerRelevanceValue in interface AgentAssistantFeedbackOrBuilder
        Returns:
        The enum numeric value on the wire for answerRelevance.
      • setAnswerRelevanceValue

        public AgentAssistantFeedback.Builder setAnswerRelevanceValue​(int value)
         Optional. Whether or not the suggested answer is relevant.
        
         For example:
        
         * Query: "Can I change my mailing address?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for answerRelevance to set.
        Returns:
        This builder for chaining.
      • getAnswerRelevance

        public AgentAssistantFeedback.AnswerRelevance getAnswerRelevance()
         Optional. Whether or not the suggested answer is relevant.
        
         For example:
        
         * Query: "Can I change my mailing address?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAnswerRelevance in interface AgentAssistantFeedbackOrBuilder
        Returns:
        The answerRelevance.
      • setAnswerRelevance

        public AgentAssistantFeedback.Builder setAnswerRelevance​(AgentAssistantFeedback.AnswerRelevance value)
         Optional. Whether or not the suggested answer is relevant.
        
         For example:
        
         * Query: "Can I change my mailing address?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The answerRelevance to set.
        Returns:
        This builder for chaining.
      • clearAnswerRelevance

        public AgentAssistantFeedback.Builder clearAnswerRelevance()
         Optional. Whether or not the suggested answer is relevant.
        
         For example:
        
         * Query: "Can I change my mailing address?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getDocumentCorrectnessValue

        public int getDocumentCorrectnessValue()
         Optional. Whether or not the information in the document is correct.
        
         For example:
        
         * Query: "Can I return the package in 2 days once received?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * Ground truth: "No return or exchange is allowed."
         * [document_correctness]: INCORRECT
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDocumentCorrectnessValue in interface AgentAssistantFeedbackOrBuilder
        Returns:
        The enum numeric value on the wire for documentCorrectness.
      • setDocumentCorrectnessValue

        public AgentAssistantFeedback.Builder setDocumentCorrectnessValue​(int value)
         Optional. Whether or not the information in the document is correct.
        
         For example:
        
         * Query: "Can I return the package in 2 days once received?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * Ground truth: "No return or exchange is allowed."
         * [document_correctness]: INCORRECT
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for documentCorrectness to set.
        Returns:
        This builder for chaining.
      • getDocumentCorrectness

        public AgentAssistantFeedback.DocumentCorrectness getDocumentCorrectness()
         Optional. Whether or not the information in the document is correct.
        
         For example:
        
         * Query: "Can I return the package in 2 days once received?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * Ground truth: "No return or exchange is allowed."
         * [document_correctness]: INCORRECT
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDocumentCorrectness in interface AgentAssistantFeedbackOrBuilder
        Returns:
        The documentCorrectness.
      • setDocumentCorrectness

        public AgentAssistantFeedback.Builder setDocumentCorrectness​(AgentAssistantFeedback.DocumentCorrectness value)
         Optional. Whether or not the information in the document is correct.
        
         For example:
        
         * Query: "Can I return the package in 2 days once received?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * Ground truth: "No return or exchange is allowed."
         * [document_correctness]: INCORRECT
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The documentCorrectness to set.
        Returns:
        This builder for chaining.
      • clearDocumentCorrectness

        public AgentAssistantFeedback.Builder clearDocumentCorrectness()
         Optional. Whether or not the information in the document is correct.
        
         For example:
        
         * Query: "Can I return the package in 2 days once received?"
         * Suggested document says: "Items must be returned/exchanged within 60
           days of the purchase date."
         * Ground truth: "No return or exchange is allowed."
         * [document_correctness]: INCORRECT
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getDocumentEfficiencyValue

        public int getDocumentEfficiencyValue()
         Optional. Whether or not the suggested document is efficient. For example,
         if the document is poorly written, hard to understand, hard to use or
         too long to find useful information,
         [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency]
         is
         [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDocumentEfficiencyValue in interface AgentAssistantFeedbackOrBuilder
        Returns:
        The enum numeric value on the wire for documentEfficiency.
      • setDocumentEfficiencyValue

        public AgentAssistantFeedback.Builder setDocumentEfficiencyValue​(int value)
         Optional. Whether or not the suggested document is efficient. For example,
         if the document is poorly written, hard to understand, hard to use or
         too long to find useful information,
         [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency]
         is
         [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for documentEfficiency to set.
        Returns:
        This builder for chaining.
      • getDocumentEfficiency

        public AgentAssistantFeedback.DocumentEfficiency getDocumentEfficiency()
         Optional. Whether or not the suggested document is efficient. For example,
         if the document is poorly written, hard to understand, hard to use or
         too long to find useful information,
         [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency]
         is
         [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDocumentEfficiency in interface AgentAssistantFeedbackOrBuilder
        Returns:
        The documentEfficiency.
      • setDocumentEfficiency

        public AgentAssistantFeedback.Builder setDocumentEfficiency​(AgentAssistantFeedback.DocumentEfficiency value)
         Optional. Whether or not the suggested document is efficient. For example,
         if the document is poorly written, hard to understand, hard to use or
         too long to find useful information,
         [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency]
         is
         [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The documentEfficiency to set.
        Returns:
        This builder for chaining.
      • clearDocumentEfficiency

        public AgentAssistantFeedback.Builder clearDocumentEfficiency()
         Optional. Whether or not the suggested document is efficient. For example,
         if the document is poorly written, hard to understand, hard to use or
         too long to find useful information,
         [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency]
         is
         [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • hasSummarizationFeedback

        public boolean hasSummarizationFeedback()
         Optional. Feedback for conversation summarization.
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSummarizationFeedback in interface AgentAssistantFeedbackOrBuilder
        Returns:
        Whether the summarizationFeedback field is set.
      • clearSummarizationFeedback

        public AgentAssistantFeedback.Builder clearSummarizationFeedback()
         Optional. Feedback for conversation summarization.
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getSummarizationFeedbackBuilder

        public AgentAssistantFeedback.SummarizationFeedback.Builder getSummarizationFeedbackBuilder()
         Optional. Feedback for conversation summarization.
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL];
      • hasKnowledgeSearchFeedback

        public boolean hasKnowledgeSearchFeedback()
         Optional. Feedback for knowledge search.
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasKnowledgeSearchFeedback in interface AgentAssistantFeedbackOrBuilder
        Returns:
        Whether the knowledgeSearchFeedback field is set.
      • clearKnowledgeSearchFeedback

        public AgentAssistantFeedback.Builder clearKnowledgeSearchFeedback()
         Optional. Feedback for knowledge search.
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getKnowledgeSearchFeedbackBuilder

        public AgentAssistantFeedback.KnowledgeSearchFeedback.Builder getKnowledgeSearchFeedbackBuilder()
         Optional. Feedback for knowledge search.
         
        .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>
      • mergeUnknownFields

        public final AgentAssistantFeedback.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<AgentAssistantFeedback.Builder>