All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.v2.AgentAssistantFeedback Maven / Gradle / Ivy

There is a newer version: 4.61.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dialogflow/v2/answer_record.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.v2;

/**
 *
 *
 * 
 * Detail feedback of Agent Assist result.
 * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback} */ public final class AgentAssistantFeedback extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback) AgentAssistantFeedbackOrBuilder { private static final long serialVersionUID = 0L; // Use AgentAssistantFeedback.newBuilder() to construct. private AgentAssistantFeedback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AgentAssistantFeedback() { answerRelevance_ = 0; documentCorrectness_ = 0; documentEfficiency_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AgentAssistantFeedback(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder.class); } /** * * *
   * Relevance of an answer.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance} */ public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Answer relevance unspecified.
     * 
* * ANSWER_RELEVANCE_UNSPECIFIED = 0; */ ANSWER_RELEVANCE_UNSPECIFIED(0), /** * * *
     * Answer is irrelevant to query.
     * 
* * IRRELEVANT = 1; */ IRRELEVANT(1), /** * * *
     * Answer is relevant to query.
     * 
* * RELEVANT = 2; */ RELEVANT(2), UNRECOGNIZED(-1), ; /** * * *
     * Answer relevance unspecified.
     * 
* * ANSWER_RELEVANCE_UNSPECIFIED = 0; */ public static final int ANSWER_RELEVANCE_UNSPECIFIED_VALUE = 0; /** * * *
     * Answer is irrelevant to query.
     * 
* * IRRELEVANT = 1; */ public static final int IRRELEVANT_VALUE = 1; /** * * *
     * Answer is relevant to query.
     * 
* * RELEVANT = 2; */ public static final int RELEVANT_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AnswerRelevance valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AnswerRelevance forNumber(int value) { switch (value) { case 0: return ANSWER_RELEVANCE_UNSPECIFIED; case 1: return IRRELEVANT; case 2: return RELEVANT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AnswerRelevance findValueByNumber(int number) { return AnswerRelevance.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor() .getEnumTypes() .get(0); } private static final AnswerRelevance[] VALUES = values(); public static AnswerRelevance valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AnswerRelevance(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance) } /** * * *
   * Correctness of document.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness} */ public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Document correctness unspecified.
     * 
* * DOCUMENT_CORRECTNESS_UNSPECIFIED = 0; */ DOCUMENT_CORRECTNESS_UNSPECIFIED(0), /** * * *
     * Information in document is incorrect.
     * 
* * INCORRECT = 1; */ INCORRECT(1), /** * * *
     * Information in document is correct.
     * 
* * CORRECT = 2; */ CORRECT(2), UNRECOGNIZED(-1), ; /** * * *
     * Document correctness unspecified.
     * 
* * DOCUMENT_CORRECTNESS_UNSPECIFIED = 0; */ public static final int DOCUMENT_CORRECTNESS_UNSPECIFIED_VALUE = 0; /** * * *
     * Information in document is incorrect.
     * 
* * INCORRECT = 1; */ public static final int INCORRECT_VALUE = 1; /** * * *
     * Information in document is correct.
     * 
* * CORRECT = 2; */ public static final int CORRECT_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DocumentCorrectness valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DocumentCorrectness forNumber(int value) { switch (value) { case 0: return DOCUMENT_CORRECTNESS_UNSPECIFIED; case 1: return INCORRECT; case 2: return CORRECT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DocumentCorrectness findValueByNumber(int number) { return DocumentCorrectness.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor() .getEnumTypes() .get(1); } private static final DocumentCorrectness[] VALUES = values(); public static DocumentCorrectness valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DocumentCorrectness(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness) } /** * * *
   * Efficiency of document.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency} */ public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Document efficiency unspecified.
     * 
* * DOCUMENT_EFFICIENCY_UNSPECIFIED = 0; */ DOCUMENT_EFFICIENCY_UNSPECIFIED(0), /** * * *
     * Document is inefficient.
     * 
* * INEFFICIENT = 1; */ INEFFICIENT(1), /** * * *
     * Document is efficient.
     * 
* * EFFICIENT = 2; */ EFFICIENT(2), UNRECOGNIZED(-1), ; /** * * *
     * Document efficiency unspecified.
     * 
* * DOCUMENT_EFFICIENCY_UNSPECIFIED = 0; */ public static final int DOCUMENT_EFFICIENCY_UNSPECIFIED_VALUE = 0; /** * * *
     * Document is inefficient.
     * 
* * INEFFICIENT = 1; */ public static final int INEFFICIENT_VALUE = 1; /** * * *
     * Document is efficient.
     * 
* * EFFICIENT = 2; */ public static final int EFFICIENT_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DocumentEfficiency valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DocumentEfficiency forNumber(int value) { switch (value) { case 0: return DOCUMENT_EFFICIENCY_UNSPECIFIED; case 1: return INEFFICIENT; case 2: return EFFICIENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DocumentEfficiency findValueByNumber(int number) { return DocumentEfficiency.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor() .getEnumTypes() .get(2); } private static final DocumentEfficiency[] VALUES = values(); public static DocumentEfficiency valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DocumentEfficiency(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency) } public interface SummarizationFeedbackOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) com.google.protobuf.MessageOrBuilder { /** * * *
     * Timestamp when composing of the summary starts.
     * 
* * .google.protobuf.Timestamp start_time = 1; * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** * * *
     * Timestamp when composing of the summary starts.
     * 
* * .google.protobuf.Timestamp start_time = 1; * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** * * *
     * Timestamp when composing of the summary starts.
     * 
* * .google.protobuf.Timestamp start_time = 1; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** * * *
     * Timestamp when the summary was submitted.
     * 
* * .google.protobuf.Timestamp submit_time = 2; * * @return Whether the submitTime field is set. */ boolean hasSubmitTime(); /** * * *
     * Timestamp when the summary was submitted.
     * 
* * .google.protobuf.Timestamp submit_time = 2; * * @return The submitTime. */ com.google.protobuf.Timestamp getSubmitTime(); /** * * *
     * Timestamp when the summary was submitted.
     * 
* * .google.protobuf.Timestamp submit_time = 2; */ com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); /** * * *
     * Text of actual submitted summary.
     * 
* * string summary_text = 3; * * @return The summaryText. */ java.lang.String getSummaryText(); /** * * *
     * Text of actual submitted summary.
     * 
* * string summary_text = 3; * * @return The bytes for summaryText. */ com.google.protobuf.ByteString getSummaryTextBytes(); /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ int getTextSectionsCount(); /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ boolean containsTextSections(java.lang.String key); /** Use {@link #getTextSectionsMap()} instead. */ @java.lang.Deprecated java.util.Map getTextSections(); /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.Map getTextSectionsMap(); /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ /* nullable */ java.lang.String getTextSectionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ java.lang.String getTextSectionsOrThrow(java.lang.String key); } /** * * *
   * Feedback for conversation summarization.
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback} */ public static final class SummarizationFeedback extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) SummarizationFeedbackOrBuilder { private static final long serialVersionUID = 0L; // Use SummarizationFeedback.newBuilder() to construct. private SummarizationFeedback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SummarizationFeedback() { summaryText_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SummarizationFeedback(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetTextSections(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.Builder .class); } private int bitField0_; public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** * * *
     * Timestamp when composing of the summary starts.
     * 
* * .google.protobuf.Timestamp start_time = 1; * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Timestamp when composing of the summary starts.
     * 
* * .google.protobuf.Timestamp start_time = 1; * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
     * Timestamp when composing of the summary starts.
     * 
* * .google.protobuf.Timestamp start_time = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int SUBMIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp submitTime_; /** * * *
     * Timestamp when the summary was submitted.
     * 
* * .google.protobuf.Timestamp submit_time = 2; * * @return Whether the submitTime field is set. */ @java.lang.Override public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Timestamp when the summary was submitted.
     * 
* * .google.protobuf.Timestamp submit_time = 2; * * @return The submitTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** * * *
     * Timestamp when the summary was submitted.
     * 
* * .google.protobuf.Timestamp submit_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } public static final int SUMMARY_TEXT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object summaryText_ = ""; /** * * *
     * Text of actual submitted summary.
     * 
* * string summary_text = 3; * * @return The summaryText. */ @java.lang.Override public java.lang.String getSummaryText() { java.lang.Object ref = summaryText_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summaryText_ = s; return s; } } /** * * *
     * Text of actual submitted summary.
     * 
* * string summary_text = 3; * * @return The bytes for summaryText. */ @java.lang.Override public com.google.protobuf.ByteString getSummaryTextBytes() { java.lang.Object ref = summaryText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summaryText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_SECTIONS_FIELD_NUMBER = 4; private static final class TextSectionsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_TextSectionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField textSections_; private com.google.protobuf.MapField internalGetTextSections() { if (textSections_ == null) { return com.google.protobuf.MapField.emptyMapField( TextSectionsDefaultEntryHolder.defaultEntry); } return textSections_; } public int getTextSectionsCount() { return internalGetTextSections().getMap().size(); } /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public boolean containsTextSections(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTextSections().getMap().containsKey(key); } /** Use {@link #getTextSectionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTextSections() { return getTextSectionsMap(); } /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.Map getTextSectionsMap() { return internalGetTextSections().getMap(); } /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public /* nullable */ java.lang.String getTextSectionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTextSections().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Optional. Actual text sections of submitted summary.
     * 
* * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.lang.String getTextSectionsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTextSections().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getSubmitTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, summaryText_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetTextSections(), TextSectionsDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, summaryText_); } for (java.util.Map.Entry entry : internalGetTextSections().getMap().entrySet()) { com.google.protobuf.MapEntry textSections__ = TextSectionsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, textSections__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback other = (com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } if (hasSubmitTime() != other.hasSubmitTime()) return false; if (hasSubmitTime()) { if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getSummaryText().equals(other.getSummaryText())) return false; if (!internalGetTextSections().equals(other.internalGetTextSections())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getSubmitTime().hashCode(); } hash = (37 * hash) + SUMMARY_TEXT_FIELD_NUMBER; hash = (53 * hash) + getSummaryText().hashCode(); if (!internalGetTextSections().getMap().isEmpty()) { hash = (37 * hash) + TEXT_SECTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetTextSections().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Feedback for conversation summarization.
     * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 4: return internalGetTextSections(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 4: return internalGetMutableTextSections(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.Builder .class); } // Construct using // com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getSubmitTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } submitTime_ = null; if (submitTimeBuilder_ != null) { submitTimeBuilder_.dispose(); submitTimeBuilder_ = null; } summaryText_ = ""; internalGetMutableTextSections().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback build() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback buildPartial() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback result = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.summaryText_ = summaryText_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.textSections_ = internalGetTextSections(); result.textSections_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) { return mergeFrom( (com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback other) { if (other == com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback .getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasSubmitTime()) { mergeSubmitTime(other.getSubmitTime()); } if (!other.getSummaryText().isEmpty()) { summaryText_ = other.summaryText_; bitField0_ |= 0x00000004; onChanged(); } internalGetMutableTextSections().mergeFrom(other.internalGetTextSections()); bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { summaryText_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry textSections__ = input.readMessage( TextSectionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableTextSections() .getMutableMap() .put(textSections__.getKey(), textSections__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000001); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
       * Timestamp when composing of the summary starts.
       * 
* * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp submitTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> submitTimeBuilder_; /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; * * @return Whether the submitTime field is set. */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; * * @return The submitTime. */ public com.google.protobuf.Timestamp getSubmitTime() { if (submitTimeBuilder_ == null) { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } else { return submitTimeBuilder_.getMessage(); } } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; */ public Builder setSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } submitTime_ = value; } else { submitTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; */ public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (submitTimeBuilder_ == null) { submitTime_ = builderForValue.build(); } else { submitTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; */ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && submitTime_ != null && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSubmitTimeBuilder().mergeFrom(value); } else { submitTime_ = value; } } else { submitTimeBuilder_.mergeFrom(value); } if (submitTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000002); submitTime_ = null; if (submitTimeBuilder_ != null) { submitTimeBuilder_.dispose(); submitTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { if (submitTimeBuilder_ != null) { return submitTimeBuilder_.getMessageOrBuilder(); } else { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } } /** * * *
       * Timestamp when the summary was submitted.
       * 
* * .google.protobuf.Timestamp submit_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder() { if (submitTimeBuilder_ == null) { submitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getSubmitTime(), getParentForChildren(), isClean()); submitTime_ = null; } return submitTimeBuilder_; } private java.lang.Object summaryText_ = ""; /** * * *
       * Text of actual submitted summary.
       * 
* * string summary_text = 3; * * @return The summaryText. */ public java.lang.String getSummaryText() { java.lang.Object ref = summaryText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summaryText_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Text of actual submitted summary.
       * 
* * string summary_text = 3; * * @return The bytes for summaryText. */ public com.google.protobuf.ByteString getSummaryTextBytes() { java.lang.Object ref = summaryText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summaryText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Text of actual submitted summary.
       * 
* * string summary_text = 3; * * @param value The summaryText to set. * @return This builder for chaining. */ public Builder setSummaryText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } summaryText_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Text of actual submitted summary.
       * 
* * string summary_text = 3; * * @return This builder for chaining. */ public Builder clearSummaryText() { summaryText_ = getDefaultInstance().getSummaryText(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Text of actual submitted summary.
       * 
* * string summary_text = 3; * * @param value The bytes for summaryText to set. * @return This builder for chaining. */ public Builder setSummaryTextBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summaryText_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.MapField textSections_; private com.google.protobuf.MapField internalGetTextSections() { if (textSections_ == null) { return com.google.protobuf.MapField.emptyMapField( TextSectionsDefaultEntryHolder.defaultEntry); } return textSections_; } private com.google.protobuf.MapField internalGetMutableTextSections() { if (textSections_ == null) { textSections_ = com.google.protobuf.MapField.newMapField(TextSectionsDefaultEntryHolder.defaultEntry); } if (!textSections_.isMutable()) { textSections_ = textSections_.copy(); } bitField0_ |= 0x00000008; onChanged(); return textSections_; } public int getTextSectionsCount() { return internalGetTextSections().getMap().size(); } /** * * *
       * Optional. Actual text sections of submitted summary.
       * 
* * * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public boolean containsTextSections(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTextSections().getMap().containsKey(key); } /** Use {@link #getTextSectionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTextSections() { return getTextSectionsMap(); } /** * * *
       * Optional. Actual text sections of submitted summary.
       * 
* * * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.Map getTextSectionsMap() { return internalGetTextSections().getMap(); } /** * * *
       * Optional. Actual text sections of submitted summary.
       * 
* * * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public /* nullable */ java.lang.String getTextSectionsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTextSections().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Optional. Actual text sections of submitted summary.
       * 
* * * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.lang.String getTextSectionsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTextSections().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTextSections() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableTextSections().getMutableMap().clear(); return this; } /** * * *
       * Optional. Actual text sections of submitted summary.
       * 
* * * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeTextSections(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTextSections().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTextSections() { bitField0_ |= 0x00000008; return internalGetMutableTextSections().getMutableMap(); } /** * * *
       * Optional. Actual text sections of submitted summary.
       * 
* * * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putTextSections(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTextSections().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** * * *
       * Optional. Actual text sections of submitted summary.
       * 
* * * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder putAllTextSections(java.util.Map values) { internalGetMutableTextSections().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback) private static final com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback(); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SummarizationFeedback parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KnowledgeSearchFeedbackOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) com.google.protobuf.MessageOrBuilder { /** * * *
     * Whether the answer was copied by the human agent or not.
     * If the value is set to be true,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * bool answer_copied = 1; * * @return The answerCopied. */ boolean getAnswerCopied(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return A list containing the clickedUris. */ java.util.List getClickedUrisList(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return The count of clickedUris. */ int getClickedUrisCount(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the element to return. * @return The clickedUris at the given index. */ java.lang.String getClickedUris(int index); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the value to return. * @return The bytes of the clickedUris at the given index. */ com.google.protobuf.ByteString getClickedUrisBytes(int index); } /** * * *
   * Feedback for knowledge search.
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback} */ public static final class KnowledgeSearchFeedback extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) KnowledgeSearchFeedbackOrBuilder { private static final long serialVersionUID = 0L; // Use KnowledgeSearchFeedback.newBuilder() to construct. private KnowledgeSearchFeedback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KnowledgeSearchFeedback() { clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KnowledgeSearchFeedback(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeSearchFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeSearchFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.Builder .class); } public static final int ANSWER_COPIED_FIELD_NUMBER = 1; private boolean answerCopied_ = false; /** * * *
     * Whether the answer was copied by the human agent or not.
     * If the value is set to be true,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * bool answer_copied = 1; * * @return The answerCopied. */ @java.lang.Override public boolean getAnswerCopied() { return answerCopied_; } public static final int CLICKED_URIS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return A list containing the clickedUris. */ public com.google.protobuf.ProtocolStringList getClickedUrisList() { return clickedUris_; } /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return The count of clickedUris. */ public int getClickedUrisCount() { return clickedUris_.size(); } /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the element to return. * @return The clickedUris at the given index. */ public java.lang.String getClickedUris(int index) { return clickedUris_.get(index); } /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the value to return. * @return The bytes of the clickedUris at the given index. */ public com.google.protobuf.ByteString getClickedUrisBytes(int index) { return clickedUris_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (answerCopied_ != false) { output.writeBool(1, answerCopied_); } for (int i = 0; i < clickedUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clickedUris_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (answerCopied_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerCopied_); } { int dataSize = 0; for (int i = 0; i < clickedUris_.size(); i++) { dataSize += computeStringSizeNoTag(clickedUris_.getRaw(i)); } size += dataSize; size += 1 * getClickedUrisList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback other = (com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) obj; if (getAnswerCopied() != other.getAnswerCopied()) return false; if (!getClickedUrisList().equals(other.getClickedUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ANSWER_COPIED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerCopied()); if (getClickedUrisCount() > 0) { hash = (37 * hash) + CLICKED_URIS_FIELD_NUMBER; hash = (53 * hash) + getClickedUrisList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Feedback for knowledge search.
     * 
* * Protobuf type {@code * google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeSearchFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeSearchFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .Builder.class); } // Construct using // com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; answerCopied_ = false; clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeSearchFeedback_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback build() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback buildPartial() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback result = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.answerCopied_ = answerCopied_; } if (((from_bitField0_ & 0x00000002) != 0)) { clickedUris_.makeImmutable(); result.clickedUris_ = clickedUris_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) { return mergeFrom( (com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback other) { if (other == com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .getDefaultInstance()) return this; if (other.getAnswerCopied() != false) { setAnswerCopied(other.getAnswerCopied()); } if (!other.clickedUris_.isEmpty()) { if (clickedUris_.isEmpty()) { clickedUris_ = other.clickedUris_; bitField0_ |= 0x00000002; } else { ensureClickedUrisIsMutable(); clickedUris_.addAll(other.clickedUris_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { answerCopied_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureClickedUrisIsMutable(); clickedUris_.add(s); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean answerCopied_; /** * * *
       * Whether the answer was copied by the human agent or not.
       * If the value is set to be true,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * bool answer_copied = 1; * * @return The answerCopied. */ @java.lang.Override public boolean getAnswerCopied() { return answerCopied_; } /** * * *
       * Whether the answer was copied by the human agent or not.
       * If the value is set to be true,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * bool answer_copied = 1; * * @param value The answerCopied to set. * @return This builder for chaining. */ public Builder setAnswerCopied(boolean value) { answerCopied_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Whether the answer was copied by the human agent or not.
       * If the value is set to be true,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * bool answer_copied = 1; * * @return This builder for chaining. */ public Builder clearAnswerCopied() { bitField0_ = (bitField0_ & ~0x00000001); answerCopied_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureClickedUrisIsMutable() { if (!clickedUris_.isModifiable()) { clickedUris_ = new com.google.protobuf.LazyStringArrayList(clickedUris_); } bitField0_ |= 0x00000002; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @return A list containing the clickedUris. */ public com.google.protobuf.ProtocolStringList getClickedUrisList() { clickedUris_.makeImmutable(); return clickedUris_; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @return The count of clickedUris. */ public int getClickedUrisCount() { return clickedUris_.size(); } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param index The index of the element to return. * @return The clickedUris at the given index. */ public java.lang.String getClickedUris(int index) { return clickedUris_.get(index); } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param index The index of the value to return. * @return The bytes of the clickedUris at the given index. */ public com.google.protobuf.ByteString getClickedUrisBytes(int index) { return clickedUris_.getByteString(index); } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param index The index to set the value at. * @param value The clickedUris to set. * @return This builder for chaining. */ public Builder setClickedUris(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClickedUrisIsMutable(); clickedUris_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param value The clickedUris to add. * @return This builder for chaining. */ public Builder addClickedUris(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClickedUrisIsMutable(); clickedUris_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param values The clickedUris to add. * @return This builder for chaining. */ public Builder addAllClickedUris(java.lang.Iterable values) { ensureClickedUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clickedUris_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @return This builder for chaining. */ public Builder clearClickedUris() { clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); ; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * [UpdateAnswerRecordRequest][google.cloud.dialogflow.v2.UpdateAnswerRecordRequest].
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param value The bytes of the clickedUris to add. * @return This builder for chaining. */ public Builder addClickedUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureClickedUrisIsMutable(); clickedUris_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback) private static final com.google.cloud.dialogflow.v2.AgentAssistantFeedback .KnowledgeSearchFeedback DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback(); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KnowledgeSearchFeedback parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KnowledgeAssistFeedbackOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) com.google.protobuf.MessageOrBuilder { /** * * *
     * Whether the suggested answer was copied by the human agent.
     * If the value is set to be true,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * bool answer_copied = 1; * * @return The answerCopied. */ boolean getAnswerCopied(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return A list containing the clickedUris. */ java.util.List getClickedUrisList(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return The count of clickedUris. */ int getClickedUrisCount(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the element to return. * @return The clickedUris at the given index. */ java.lang.String getClickedUris(int index); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the value to return. * @return The bytes of the clickedUris at the given index. */ com.google.protobuf.ByteString getClickedUrisBytes(int index); } /** * * *
   * Feedback for knowledge assist.
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback} */ public static final class KnowledgeAssistFeedback extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) KnowledgeAssistFeedbackOrBuilder { private static final long serialVersionUID = 0L; // Use KnowledgeAssistFeedback.newBuilder() to construct. private KnowledgeAssistFeedback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KnowledgeAssistFeedback() { clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KnowledgeAssistFeedback(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeAssistFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeAssistFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.Builder .class); } public static final int ANSWER_COPIED_FIELD_NUMBER = 1; private boolean answerCopied_ = false; /** * * *
     * Whether the suggested answer was copied by the human agent.
     * If the value is set to be true,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * bool answer_copied = 1; * * @return The answerCopied. */ @java.lang.Override public boolean getAnswerCopied() { return answerCopied_; } public static final int CLICKED_URIS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return A list containing the clickedUris. */ public com.google.protobuf.ProtocolStringList getClickedUrisList() { return clickedUris_; } /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @return The count of clickedUris. */ public int getClickedUrisCount() { return clickedUris_.size(); } /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the element to return. * @return The clickedUris at the given index. */ public java.lang.String getClickedUris(int index) { return clickedUris_.get(index); } /** * * *
     * The URIs clicked by the human agent. The value is appended for each
     * UpdateAnswerRecordRequest.
     * If the value is not empty,
     * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
     * will be updated to be true.
     * 
* * repeated string clicked_uris = 2; * * @param index The index of the value to return. * @return The bytes of the clickedUris at the given index. */ public com.google.protobuf.ByteString getClickedUrisBytes(int index) { return clickedUris_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (answerCopied_ != false) { output.writeBool(1, answerCopied_); } for (int i = 0; i < clickedUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clickedUris_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (answerCopied_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, answerCopied_); } { int dataSize = 0; for (int i = 0; i < clickedUris_.size(); i++) { dataSize += computeStringSizeNoTag(clickedUris_.getRaw(i)); } size += dataSize; size += 1 * getClickedUrisList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback other = (com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) obj; if (getAnswerCopied() != other.getAnswerCopied()) return false; if (!getClickedUrisList().equals(other.getClickedUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ANSWER_COPIED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnswerCopied()); if (getClickedUrisCount() > 0) { hash = (37 * hash) + CLICKED_URIS_FIELD_NUMBER; hash = (53 * hash) + getClickedUrisList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Feedback for knowledge assist.
     * 
* * Protobuf type {@code * google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedbackOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeAssistFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeAssistFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .Builder.class); } // Construct using // com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; answerCopied_ = false; clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeAssistFeedback_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback build() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback buildPartial() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback result = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.answerCopied_ = answerCopied_; } if (((from_bitField0_ & 0x00000002) != 0)) { clickedUris_.makeImmutable(); result.clickedUris_ = clickedUris_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) { return mergeFrom( (com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback other) { if (other == com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .getDefaultInstance()) return this; if (other.getAnswerCopied() != false) { setAnswerCopied(other.getAnswerCopied()); } if (!other.clickedUris_.isEmpty()) { if (clickedUris_.isEmpty()) { clickedUris_ = other.clickedUris_; bitField0_ |= 0x00000002; } else { ensureClickedUrisIsMutable(); clickedUris_.addAll(other.clickedUris_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { answerCopied_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureClickedUrisIsMutable(); clickedUris_.add(s); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean answerCopied_; /** * * *
       * Whether the suggested answer was copied by the human agent.
       * If the value is set to be true,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * bool answer_copied = 1; * * @return The answerCopied. */ @java.lang.Override public boolean getAnswerCopied() { return answerCopied_; } /** * * *
       * Whether the suggested answer was copied by the human agent.
       * If the value is set to be true,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * bool answer_copied = 1; * * @param value The answerCopied to set. * @return This builder for chaining. */ public Builder setAnswerCopied(boolean value) { answerCopied_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Whether the suggested answer was copied by the human agent.
       * If the value is set to be true,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * bool answer_copied = 1; * * @return This builder for chaining. */ public Builder clearAnswerCopied() { bitField0_ = (bitField0_ & ~0x00000001); answerCopied_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureClickedUrisIsMutable() { if (!clickedUris_.isModifiable()) { clickedUris_ = new com.google.protobuf.LazyStringArrayList(clickedUris_); } bitField0_ |= 0x00000002; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @return A list containing the clickedUris. */ public com.google.protobuf.ProtocolStringList getClickedUrisList() { clickedUris_.makeImmutable(); return clickedUris_; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @return The count of clickedUris. */ public int getClickedUrisCount() { return clickedUris_.size(); } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param index The index of the element to return. * @return The clickedUris at the given index. */ public java.lang.String getClickedUris(int index) { return clickedUris_.get(index); } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param index The index of the value to return. * @return The bytes of the clickedUris at the given index. */ public com.google.protobuf.ByteString getClickedUrisBytes(int index) { return clickedUris_.getByteString(index); } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param index The index to set the value at. * @param value The clickedUris to set. * @return This builder for chaining. */ public Builder setClickedUris(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClickedUrisIsMutable(); clickedUris_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param value The clickedUris to add. * @return This builder for chaining. */ public Builder addClickedUris(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClickedUrisIsMutable(); clickedUris_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param values The clickedUris to add. * @return This builder for chaining. */ public Builder addAllClickedUris(java.lang.Iterable values) { ensureClickedUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clickedUris_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @return This builder for chaining. */ public Builder clearClickedUris() { clickedUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); ; onChanged(); return this; } /** * * *
       * The URIs clicked by the human agent. The value is appended for each
       * UpdateAnswerRecordRequest.
       * If the value is not empty,
       * [AnswerFeedback.clicked][google.cloud.dialogflow.v2.AnswerFeedback.clicked]
       * will be updated to be true.
       * 
* * repeated string clicked_uris = 2; * * @param value The bytes of the clickedUris to add. * @return This builder for chaining. */ public Builder addClickedUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureClickedUrisIsMutable(); clickedUris_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback) private static final com.google.cloud.dialogflow.v2.AgentAssistantFeedback .KnowledgeAssistFeedback DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback(); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KnowledgeAssistFeedback parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ANSWER_RELEVANCE_FIELD_NUMBER = 1; private int answerRelevance_ = 0; /** * * *
   * 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]; * * * @return The enum numeric value on the wire for answerRelevance. */ @java.lang.Override public int getAnswerRelevanceValue() { return answerRelevance_; } /** * * *
   * 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]; * * * @return The answerRelevance. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance getAnswerRelevance() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.forNumber( answerRelevance_); return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED : result; } public static final int DOCUMENT_CORRECTNESS_FIELD_NUMBER = 2; private int documentCorrectness_ = 0; /** * * *
   * 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]; * * * @return The enum numeric value on the wire for documentCorrectness. */ @java.lang.Override public int getDocumentCorrectnessValue() { return documentCorrectness_; } /** * * *
   * 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]; * * * @return The documentCorrectness. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness getDocumentCorrectness() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.forNumber( documentCorrectness_); return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.UNRECOGNIZED : result; } public static final int DOCUMENT_EFFICIENCY_FIELD_NUMBER = 3; private int documentEfficiency_ = 0; /** * * *
   * 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]; * * * @return The enum numeric value on the wire for documentEfficiency. */ @java.lang.Override public int getDocumentEfficiencyValue() { return documentEfficiency_; } /** * * *
   * 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]; * * * @return The documentEfficiency. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency getDocumentEfficiency() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.forNumber( documentEfficiency_); return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.UNRECOGNIZED : result; } public static final int SUMMARIZATION_FEEDBACK_FIELD_NUMBER = 4; private com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarizationFeedback_; /** * * *
   * Optional. Feedback for conversation summarization.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the summarizationFeedback field is set. */ @java.lang.Override public boolean hasSummarizationFeedback() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Optional. Feedback for conversation summarization.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The summarizationFeedback. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback getSummarizationFeedback() { return summarizationFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback .getDefaultInstance() : summarizationFeedback_; } /** * * *
   * Optional. Feedback for conversation summarization.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackOrBuilder getSummarizationFeedbackOrBuilder() { return summarizationFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback .getDefaultInstance() : summarizationFeedback_; } public static final int KNOWLEDGE_SEARCH_FEEDBACK_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledgeSearchFeedback_; /** * * *
   * Optional. Feedback for knowledge search.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the knowledgeSearchFeedback field is set. */ @java.lang.Override public boolean hasKnowledgeSearchFeedback() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Optional. Feedback for knowledge search.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The knowledgeSearchFeedback. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback getKnowledgeSearchFeedback() { return knowledgeSearchFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .getDefaultInstance() : knowledgeSearchFeedback_; } /** * * *
   * Optional. Feedback for knowledge search.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackOrBuilder getKnowledgeSearchFeedbackOrBuilder() { return knowledgeSearchFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .getDefaultInstance() : knowledgeSearchFeedback_; } public static final int KNOWLEDGE_ASSIST_FEEDBACK_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledgeAssistFeedback_; /** * * *
   * Optional. Feedback for knowledge assist.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the knowledgeAssistFeedback field is set. */ @java.lang.Override public boolean hasKnowledgeAssistFeedback() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Optional. Feedback for knowledge assist.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The knowledgeAssistFeedback. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback getKnowledgeAssistFeedback() { return knowledgeAssistFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .getDefaultInstance() : knowledgeAssistFeedback_; } /** * * *
   * Optional. Feedback for knowledge assist.
   * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedbackOrBuilder getKnowledgeAssistFeedbackOrBuilder() { return knowledgeAssistFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .getDefaultInstance() : knowledgeAssistFeedback_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (answerRelevance_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance .ANSWER_RELEVANCE_UNSPECIFIED .getNumber()) { output.writeEnum(1, answerRelevance_); } if (documentCorrectness_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness .DOCUMENT_CORRECTNESS_UNSPECIFIED .getNumber()) { output.writeEnum(2, documentCorrectness_); } if (documentEfficiency_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency .DOCUMENT_EFFICIENCY_UNSPECIFIED .getNumber()) { output.writeEnum(3, documentEfficiency_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSummarizationFeedback()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getKnowledgeSearchFeedback()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getKnowledgeAssistFeedback()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (answerRelevance_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance .ANSWER_RELEVANCE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, answerRelevance_); } if (documentCorrectness_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness .DOCUMENT_CORRECTNESS_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, documentCorrectness_); } if (documentEfficiency_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency .DOCUMENT_EFFICIENCY_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, documentEfficiency_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSummarizationFeedback()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getKnowledgeSearchFeedback()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getKnowledgeAssistFeedback()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.AgentAssistantFeedback other = (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) obj; if (answerRelevance_ != other.answerRelevance_) return false; if (documentCorrectness_ != other.documentCorrectness_) return false; if (documentEfficiency_ != other.documentEfficiency_) return false; if (hasSummarizationFeedback() != other.hasSummarizationFeedback()) return false; if (hasSummarizationFeedback()) { if (!getSummarizationFeedback().equals(other.getSummarizationFeedback())) return false; } if (hasKnowledgeSearchFeedback() != other.hasKnowledgeSearchFeedback()) return false; if (hasKnowledgeSearchFeedback()) { if (!getKnowledgeSearchFeedback().equals(other.getKnowledgeSearchFeedback())) return false; } if (hasKnowledgeAssistFeedback() != other.hasKnowledgeAssistFeedback()) return false; if (hasKnowledgeAssistFeedback()) { if (!getKnowledgeAssistFeedback().equals(other.getKnowledgeAssistFeedback())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ANSWER_RELEVANCE_FIELD_NUMBER; hash = (53 * hash) + answerRelevance_; hash = (37 * hash) + DOCUMENT_CORRECTNESS_FIELD_NUMBER; hash = (53 * hash) + documentCorrectness_; hash = (37 * hash) + DOCUMENT_EFFICIENCY_FIELD_NUMBER; hash = (53 * hash) + documentEfficiency_; if (hasSummarizationFeedback()) { hash = (37 * hash) + SUMMARIZATION_FEEDBACK_FIELD_NUMBER; hash = (53 * hash) + getSummarizationFeedback().hashCode(); } if (hasKnowledgeSearchFeedback()) { hash = (37 * hash) + KNOWLEDGE_SEARCH_FEEDBACK_FIELD_NUMBER; hash = (53 * hash) + getKnowledgeSearchFeedback().hashCode(); } if (hasKnowledgeAssistFeedback()) { hash = (37 * hash) + KNOWLEDGE_ASSIST_FEEDBACK_FIELD_NUMBER; hash = (53 * hash) + getKnowledgeAssistFeedback().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.v2.AgentAssistantFeedback prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Detail feedback of Agent Assist result.
   * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback) com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AgentAssistantFeedback.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSummarizationFeedbackFieldBuilder(); getKnowledgeSearchFeedbackFieldBuilder(); getKnowledgeAssistFeedbackFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; answerRelevance_ = 0; documentCorrectness_ = 0; documentEfficiency_ = 0; summarizationFeedback_ = null; if (summarizationFeedbackBuilder_ != null) { summarizationFeedbackBuilder_.dispose(); summarizationFeedbackBuilder_ = null; } knowledgeSearchFeedback_ = null; if (knowledgeSearchFeedbackBuilder_ != null) { knowledgeSearchFeedbackBuilder_.dispose(); knowledgeSearchFeedbackBuilder_ = null; } knowledgeAssistFeedback_ = null; if (knowledgeAssistFeedbackBuilder_ != null) { knowledgeAssistFeedbackBuilder_.dispose(); knowledgeAssistFeedbackBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.AnswerRecordsProto .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback build() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback buildPartial() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback result = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dialogflow.v2.AgentAssistantFeedback result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.answerRelevance_ = answerRelevance_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.documentCorrectness_ = documentCorrectness_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.documentEfficiency_ = documentEfficiency_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.summarizationFeedback_ = summarizationFeedbackBuilder_ == null ? summarizationFeedback_ : summarizationFeedbackBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.knowledgeSearchFeedback_ = knowledgeSearchFeedbackBuilder_ == null ? knowledgeSearchFeedback_ : knowledgeSearchFeedbackBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.knowledgeAssistFeedback_ = knowledgeAssistFeedbackBuilder_ == null ? knowledgeAssistFeedback_ : knowledgeAssistFeedbackBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback) { return mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantFeedback) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AgentAssistantFeedback other) { if (other == com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance()) return this; if (other.answerRelevance_ != 0) { setAnswerRelevanceValue(other.getAnswerRelevanceValue()); } if (other.documentCorrectness_ != 0) { setDocumentCorrectnessValue(other.getDocumentCorrectnessValue()); } if (other.documentEfficiency_ != 0) { setDocumentEfficiencyValue(other.getDocumentEfficiencyValue()); } if (other.hasSummarizationFeedback()) { mergeSummarizationFeedback(other.getSummarizationFeedback()); } if (other.hasKnowledgeSearchFeedback()) { mergeKnowledgeSearchFeedback(other.getKnowledgeSearchFeedback()); } if (other.hasKnowledgeAssistFeedback()) { mergeKnowledgeAssistFeedback(other.getKnowledgeAssistFeedback()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { answerRelevance_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { documentCorrectness_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { documentEfficiency_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getSummarizationFeedbackFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getKnowledgeSearchFeedbackFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getKnowledgeAssistFeedbackFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int answerRelevance_ = 0; /** * * *
     * 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]; * * * @return The enum numeric value on the wire for answerRelevance. */ @java.lang.Override public int getAnswerRelevanceValue() { return answerRelevance_; } /** * * *
     * 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]; * * * @param value The enum numeric value on the wire for answerRelevance to set. * @return This builder for chaining. */ public Builder setAnswerRelevanceValue(int value) { answerRelevance_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * 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]; * * * @return The answerRelevance. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance getAnswerRelevance() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.forNumber( answerRelevance_); return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED : result; } /** * * *
     * 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]; * * * @param value The answerRelevance to set. * @return This builder for chaining. */ public Builder setAnswerRelevance( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; answerRelevance_ = value.getNumber(); onChanged(); return this; } /** * * *
     * 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]; * * * @return This builder for chaining. */ public Builder clearAnswerRelevance() { bitField0_ = (bitField0_ & ~0x00000001); answerRelevance_ = 0; onChanged(); return this; } private int documentCorrectness_ = 0; /** * * *
     * 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]; * * * @return The enum numeric value on the wire for documentCorrectness. */ @java.lang.Override public int getDocumentCorrectnessValue() { return documentCorrectness_; } /** * * *
     * 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]; * * * @param value The enum numeric value on the wire for documentCorrectness to set. * @return This builder for chaining. */ public Builder setDocumentCorrectnessValue(int value) { documentCorrectness_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * 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]; * * * @return The documentCorrectness. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness getDocumentCorrectness() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.forNumber( documentCorrectness_); return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.UNRECOGNIZED : result; } /** * * *
     * 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]; * * * @param value The documentCorrectness to set. * @return This builder for chaining. */ public Builder setDocumentCorrectness( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; documentCorrectness_ = value.getNumber(); onChanged(); return this; } /** * * *
     * 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]; * * * @return This builder for chaining. */ public Builder clearDocumentCorrectness() { bitField0_ = (bitField0_ & ~0x00000002); documentCorrectness_ = 0; onChanged(); return this; } private int documentEfficiency_ = 0; /** * * *
     * 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]; * * * @return The enum numeric value on the wire for documentEfficiency. */ @java.lang.Override public int getDocumentEfficiencyValue() { return documentEfficiency_; } /** * * *
     * 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]; * * * @param value The enum numeric value on the wire for documentEfficiency to set. * @return This builder for chaining. */ public Builder setDocumentEfficiencyValue(int value) { documentEfficiency_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * 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]; * * * @return The documentEfficiency. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency getDocumentEfficiency() { com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.forNumber( documentEfficiency_); return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.UNRECOGNIZED : result; } /** * * *
     * 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]; * * * @param value The documentEfficiency to set. * @return This builder for chaining. */ public Builder setDocumentEfficiency( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; documentEfficiency_ = value.getNumber(); onChanged(); return this; } /** * * *
     * 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]; * * * @return This builder for chaining. */ public Builder clearDocumentEfficiency() { bitField0_ = (bitField0_ & ~0x00000004); documentEfficiency_ = 0; onChanged(); return this; } private com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarizationFeedback_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackOrBuilder> summarizationFeedbackBuilder_; /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the summarizationFeedback field is set. */ public boolean hasSummarizationFeedback() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The summarizationFeedback. */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback getSummarizationFeedback() { if (summarizationFeedbackBuilder_ == null) { return summarizationFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback .getDefaultInstance() : summarizationFeedback_; } else { return summarizationFeedbackBuilder_.getMessage(); } } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSummarizationFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback value) { if (summarizationFeedbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } summarizationFeedback_ = value; } else { summarizationFeedbackBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSummarizationFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.Builder builderForValue) { if (summarizationFeedbackBuilder_ == null) { summarizationFeedback_ = builderForValue.build(); } else { summarizationFeedbackBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSummarizationFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback value) { if (summarizationFeedbackBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && summarizationFeedback_ != null && summarizationFeedback_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback .getDefaultInstance()) { getSummarizationFeedbackBuilder().mergeFrom(value); } else { summarizationFeedback_ = value; } } else { summarizationFeedbackBuilder_.mergeFrom(value); } if (summarizationFeedback_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSummarizationFeedback() { bitField0_ = (bitField0_ & ~0x00000008); summarizationFeedback_ = null; if (summarizationFeedbackBuilder_ != null) { summarizationFeedbackBuilder_.dispose(); summarizationFeedbackBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.Builder getSummarizationFeedbackBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSummarizationFeedbackFieldBuilder().getBuilder(); } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackOrBuilder getSummarizationFeedbackOrBuilder() { if (summarizationFeedbackBuilder_ != null) { return summarizationFeedbackBuilder_.getMessageOrBuilder(); } else { return summarizationFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback .getDefaultInstance() : summarizationFeedback_; } } /** * * *
     * Optional. Feedback for conversation summarization.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackOrBuilder> getSummarizationFeedbackFieldBuilder() { if (summarizationFeedbackBuilder_ == null) { summarizationFeedbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback .SummarizationFeedbackOrBuilder>( getSummarizationFeedback(), getParentForChildren(), isClean()); summarizationFeedback_ = null; } return summarizationFeedbackBuilder_; } private com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledgeSearchFeedback_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackOrBuilder> knowledgeSearchFeedbackBuilder_; /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the knowledgeSearchFeedback field is set. */ public boolean hasKnowledgeSearchFeedback() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The knowledgeSearchFeedback. */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback getKnowledgeSearchFeedback() { if (knowledgeSearchFeedbackBuilder_ == null) { return knowledgeSearchFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .getDefaultInstance() : knowledgeSearchFeedback_; } else { return knowledgeSearchFeedbackBuilder_.getMessage(); } } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKnowledgeSearchFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback value) { if (knowledgeSearchFeedbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } knowledgeSearchFeedback_ = value; } else { knowledgeSearchFeedbackBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKnowledgeSearchFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.Builder builderForValue) { if (knowledgeSearchFeedbackBuilder_ == null) { knowledgeSearchFeedback_ = builderForValue.build(); } else { knowledgeSearchFeedbackBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeKnowledgeSearchFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback value) { if (knowledgeSearchFeedbackBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && knowledgeSearchFeedback_ != null && knowledgeSearchFeedback_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .getDefaultInstance()) { getKnowledgeSearchFeedbackBuilder().mergeFrom(value); } else { knowledgeSearchFeedback_ = value; } } else { knowledgeSearchFeedbackBuilder_.mergeFrom(value); } if (knowledgeSearchFeedback_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearKnowledgeSearchFeedback() { bitField0_ = (bitField0_ & ~0x00000010); knowledgeSearchFeedback_ = null; if (knowledgeSearchFeedbackBuilder_ != null) { knowledgeSearchFeedbackBuilder_.dispose(); knowledgeSearchFeedbackBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.Builder getKnowledgeSearchFeedbackBuilder() { bitField0_ |= 0x00000010; onChanged(); return getKnowledgeSearchFeedbackFieldBuilder().getBuilder(); } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackOrBuilder getKnowledgeSearchFeedbackOrBuilder() { if (knowledgeSearchFeedbackBuilder_ != null) { return knowledgeSearchFeedbackBuilder_.getMessageOrBuilder(); } else { return knowledgeSearchFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .getDefaultInstance() : knowledgeSearchFeedback_; } } /** * * *
     * Optional. Feedback for knowledge search.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback knowledge_search_feedback = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackOrBuilder> getKnowledgeSearchFeedbackFieldBuilder() { if (knowledgeSearchFeedbackBuilder_ == null) { knowledgeSearchFeedbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback .Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback .KnowledgeSearchFeedbackOrBuilder>( getKnowledgeSearchFeedback(), getParentForChildren(), isClean()); knowledgeSearchFeedback_ = null; } return knowledgeSearchFeedbackBuilder_; } private com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledgeAssistFeedback_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedbackOrBuilder> knowledgeAssistFeedbackBuilder_; /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the knowledgeAssistFeedback field is set. */ public boolean hasKnowledgeAssistFeedback() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The knowledgeAssistFeedback. */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback getKnowledgeAssistFeedback() { if (knowledgeAssistFeedbackBuilder_ == null) { return knowledgeAssistFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .getDefaultInstance() : knowledgeAssistFeedback_; } else { return knowledgeAssistFeedbackBuilder_.getMessage(); } } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKnowledgeAssistFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback value) { if (knowledgeAssistFeedbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } knowledgeAssistFeedback_ = value; } else { knowledgeAssistFeedbackBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKnowledgeAssistFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.Builder builderForValue) { if (knowledgeAssistFeedbackBuilder_ == null) { knowledgeAssistFeedback_ = builderForValue.build(); } else { knowledgeAssistFeedbackBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeKnowledgeAssistFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback value) { if (knowledgeAssistFeedbackBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && knowledgeAssistFeedback_ != null && knowledgeAssistFeedback_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .getDefaultInstance()) { getKnowledgeAssistFeedbackBuilder().mergeFrom(value); } else { knowledgeAssistFeedback_ = value; } } else { knowledgeAssistFeedbackBuilder_.mergeFrom(value); } if (knowledgeAssistFeedback_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearKnowledgeAssistFeedback() { bitField0_ = (bitField0_ & ~0x00000020); knowledgeAssistFeedback_ = null; if (knowledgeAssistFeedbackBuilder_ != null) { knowledgeAssistFeedbackBuilder_.dispose(); knowledgeAssistFeedbackBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.Builder getKnowledgeAssistFeedbackBuilder() { bitField0_ |= 0x00000020; onChanged(); return getKnowledgeAssistFeedbackFieldBuilder().getBuilder(); } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedbackOrBuilder getKnowledgeAssistFeedbackOrBuilder() { if (knowledgeAssistFeedbackBuilder_ != null) { return knowledgeAssistFeedbackBuilder_.getMessageOrBuilder(); } else { return knowledgeAssistFeedback_ == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .getDefaultInstance() : knowledgeAssistFeedback_; } } /** * * *
     * Optional. Feedback for knowledge assist.
     * 
* * * .google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback knowledge_assist_feedback = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedbackOrBuilder> getKnowledgeAssistFeedbackFieldBuilder() { if (knowledgeAssistFeedbackBuilder_ == null) { knowledgeAssistFeedbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedback .Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedback .KnowledgeAssistFeedbackOrBuilder>( getKnowledgeAssistFeedback(), getParentForChildren(), isClean()); knowledgeAssistFeedback_ = null; } return knowledgeAssistFeedbackBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback) private static final com.google.cloud.dialogflow.v2.AgentAssistantFeedback DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback(); } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AgentAssistantFeedback parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy