/*
 * Copyright 2020 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/v2beta1/answer_record.proto

package com.google.cloud.dialogflow.v2beta1;

/**
 *
 *
 * <pre>
 * Detail feedback of Agent Assistant result.
 * </pre>
 *
 * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentAssistantFeedback}
 */
public final class AgentAssistantFeedback extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.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();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
        .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
        .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.class,
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * Relevance of an answer.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance}
   */
  public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Answer relevance unspecified.
     * </pre>
     *
     * <code>ANSWER_RELEVANCE_UNSPECIFIED = 0;</code>
     */
    ANSWER_RELEVANCE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Answer is irrelevant to query.
     * </pre>
     *
     * <code>IRRELEVANT = 1;</code>
     */
    IRRELEVANT(1),
    /**
     *
     *
     * <pre>
     * Answer is relevant to query.
     * </pre>
     *
     * <code>RELEVANT = 2;</code>
     */
    RELEVANT(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Answer relevance unspecified.
     * </pre>
     *
     * <code>ANSWER_RELEVANCE_UNSPECIFIED = 0;</code>
     */
    public static final int ANSWER_RELEVANCE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Answer is irrelevant to query.
     * </pre>
     *
     * <code>IRRELEVANT = 1;</code>
     */
    public static final int IRRELEVANT_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Answer is relevant to query.
     * </pre>
     *
     * <code>RELEVANT = 2;</code>
     */
    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<AnswerRelevance> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<AnswerRelevance>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<AnswerRelevance>() {
              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.v2beta1.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.v2beta1.AgentAssistantFeedback.AnswerRelevance)
  }

  /**
   *
   *
   * <pre>
   * Correctness of document.
   * </pre>
   *
   * Protobuf enum {@code
   * google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness}
   */
  public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Document correctness unspecified.
     * </pre>
     *
     * <code>DOCUMENT_CORRECTNESS_UNSPECIFIED = 0;</code>
     */
    DOCUMENT_CORRECTNESS_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Information in document is incorrect.
     * </pre>
     *
     * <code>INCORRECT = 1;</code>
     */
    INCORRECT(1),
    /**
     *
     *
     * <pre>
     * Information in document is correct.
     * </pre>
     *
     * <code>CORRECT = 2;</code>
     */
    CORRECT(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Document correctness unspecified.
     * </pre>
     *
     * <code>DOCUMENT_CORRECTNESS_UNSPECIFIED = 0;</code>
     */
    public static final int DOCUMENT_CORRECTNESS_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Information in document is incorrect.
     * </pre>
     *
     * <code>INCORRECT = 1;</code>
     */
    public static final int INCORRECT_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Information in document is correct.
     * </pre>
     *
     * <code>CORRECT = 2;</code>
     */
    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<DocumentCorrectness>
        internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<DocumentCorrectness>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<DocumentCorrectness>() {
              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.v2beta1.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.v2beta1.AgentAssistantFeedback.DocumentCorrectness)
  }

  /**
   *
   *
   * <pre>
   * Efficiency of document.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency}
   */
  public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Document efficiency unspecified.
     * </pre>
     *
     * <code>DOCUMENT_EFFICIENCY_UNSPECIFIED = 0;</code>
     */
    DOCUMENT_EFFICIENCY_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Document is inefficient.
     * </pre>
     *
     * <code>INEFFICIENT = 1;</code>
     */
    INEFFICIENT(1),
    /**
     *
     *
     * <pre>
     * Document is efficient.
     * </pre>
     *
     * <code>EFFICIENT = 2;</code>
     */
    EFFICIENT(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Document efficiency unspecified.
     * </pre>
     *
     * <code>DOCUMENT_EFFICIENCY_UNSPECIFIED = 0;</code>
     */
    public static final int DOCUMENT_EFFICIENCY_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Document is inefficient.
     * </pre>
     *
     * <code>INEFFICIENT = 1;</code>
     */
    public static final int INEFFICIENT_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Document is efficient.
     * </pre>
     *
     * <code>EFFICIENT = 2;</code>
     */
    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<DocumentEfficiency>
        internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<DocumentEfficiency>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<DocumentEfficiency>() {
              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.v2beta1.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.v2beta1.AgentAssistantFeedback.DocumentEfficiency)
  }

  public interface SummarizationFeedbackOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Timestamp when composing of the summary starts.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
     *
     * @return Whether the startTimestamp field is set.
     */
    boolean hasStartTimestamp();
    /**
     *
     *
     * <pre>
     * Timestamp when composing of the summary starts.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
     *
     * @return The startTimestamp.
     */
    com.google.protobuf.Timestamp getStartTimestamp();
    /**
     *
     *
     * <pre>
     * Timestamp when composing of the summary starts.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
     */
    com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder();

    /**
     *
     *
     * <pre>
     * Timestamp when the summary was submitted.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
     *
     * @return Whether the submitTimestamp field is set.
     */
    boolean hasSubmitTimestamp();
    /**
     *
     *
     * <pre>
     * Timestamp when the summary was submitted.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
     *
     * @return The submitTimestamp.
     */
    com.google.protobuf.Timestamp getSubmitTimestamp();
    /**
     *
     *
     * <pre>
     * Timestamp when the summary was submitted.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
     */
    com.google.protobuf.TimestampOrBuilder getSubmitTimestampOrBuilder();

    /**
     *
     *
     * <pre>
     * Text of actual submitted summary.
     * </pre>
     *
     * <code>string summary_text = 3;</code>
     *
     * @return The summaryText.
     */
    java.lang.String getSummaryText();
    /**
     *
     *
     * <pre>
     * Text of actual submitted summary.
     * </pre>
     *
     * <code>string summary_text = 3;</code>
     *
     * @return The bytes for summaryText.
     */
    com.google.protobuf.ByteString getSummaryTextBytes();
  }
  /**
   *
   *
   * <pre>
   * Feedback for conversation summarization.
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback}
   */
  public static final class SummarizationFeedback extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.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();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
          .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_SummarizationFeedback_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
          .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_SummarizationFeedback_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                  .class,
              com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                  .Builder.class);
    }

    public static final int START_TIMESTAMP_FIELD_NUMBER = 1;
    private com.google.protobuf.Timestamp startTimestamp_;
    /**
     *
     *
     * <pre>
     * Timestamp when composing of the summary starts.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
     *
     * @return Whether the startTimestamp field is set.
     */
    @java.lang.Override
    public boolean hasStartTimestamp() {
      return startTimestamp_ != null;
    }
    /**
     *
     *
     * <pre>
     * Timestamp when composing of the summary starts.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
     *
     * @return The startTimestamp.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getStartTimestamp() {
      return startTimestamp_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : startTimestamp_;
    }
    /**
     *
     *
     * <pre>
     * Timestamp when composing of the summary starts.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder() {
      return startTimestamp_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : startTimestamp_;
    }

    public static final int SUBMIT_TIMESTAMP_FIELD_NUMBER = 2;
    private com.google.protobuf.Timestamp submitTimestamp_;
    /**
     *
     *
     * <pre>
     * Timestamp when the summary was submitted.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
     *
     * @return Whether the submitTimestamp field is set.
     */
    @java.lang.Override
    public boolean hasSubmitTimestamp() {
      return submitTimestamp_ != null;
    }
    /**
     *
     *
     * <pre>
     * Timestamp when the summary was submitted.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
     *
     * @return The submitTimestamp.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getSubmitTimestamp() {
      return submitTimestamp_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : submitTimestamp_;
    }
    /**
     *
     *
     * <pre>
     * Timestamp when the summary was submitted.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getSubmitTimestampOrBuilder() {
      return submitTimestamp_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : submitTimestamp_;
    }

    public static final int SUMMARY_TEXT_FIELD_NUMBER = 3;

    @SuppressWarnings("serial")
    private volatile java.lang.Object summaryText_ = "";
    /**
     *
     *
     * <pre>
     * Text of actual submitted summary.
     * </pre>
     *
     * <code>string summary_text = 3;</code>
     *
     * @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;
      }
    }
    /**
     *
     *
     * <pre>
     * Text of actual submitted summary.
     * </pre>
     *
     * <code>string summary_text = 3;</code>
     *
     * @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;
      }
    }

    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 (startTimestamp_ != null) {
        output.writeMessage(1, getStartTimestamp());
      }
      if (submitTimestamp_ != null) {
        output.writeMessage(2, getSubmitTimestamp());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, summaryText_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (startTimestamp_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTimestamp());
      }
      if (submitTimestamp_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTimestamp());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, summaryText_);
      }
      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.v2beta1.AgentAssistantFeedback.SummarizationFeedback)) {
        return super.equals(obj);
      }
      com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback other =
          (com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback) obj;

      if (hasStartTimestamp() != other.hasStartTimestamp()) return false;
      if (hasStartTimestamp()) {
        if (!getStartTimestamp().equals(other.getStartTimestamp())) return false;
      }
      if (hasSubmitTimestamp() != other.hasSubmitTimestamp()) return false;
      if (hasSubmitTimestamp()) {
        if (!getSubmitTimestamp().equals(other.getSubmitTimestamp())) return false;
      }
      if (!getSummaryText().equals(other.getSummaryText())) 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 (hasStartTimestamp()) {
        hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
        hash = (53 * hash) + getStartTimestamp().hashCode();
      }
      if (hasSubmitTimestamp()) {
        hash = (37 * hash) + SUBMIT_TIMESTAMP_FIELD_NUMBER;
        hash = (53 * hash) + getSubmitTimestamp().hashCode();
      }
      hash = (37 * hash) + SUMMARY_TEXT_FIELD_NUMBER;
      hash = (53 * hash) + getSummaryText().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
        parseFrom(java.nio.ByteBuffer data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.AgentAssistantFeedback.SummarizationFeedback
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.AgentAssistantFeedback.SummarizationFeedback
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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;
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback)
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedbackOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
            .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_SummarizationFeedback_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
            .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_SummarizationFeedback_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                    .class,
                com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                    .Builder.class);
      }

      // Construct using
      // com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        startTimestamp_ = null;
        if (startTimestampBuilder_ != null) {
          startTimestampBuilder_.dispose();
          startTimestampBuilder_ = null;
        }
        submitTimestamp_ = null;
        if (submitTimestampBuilder_ != null) {
          submitTimestampBuilder_.dispose();
          submitTimestampBuilder_ = null;
        }
        summaryText_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
            .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_SummarizationFeedback_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
          getDefaultInstanceForType() {
        return com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
          build() {
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
          buildPartial() {
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback result =
            new com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback(
                this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.startTimestamp_ =
              startTimestampBuilder_ == null ? startTimestamp_ : startTimestampBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.submitTimestamp_ =
              submitTimestampBuilder_ == null ? submitTimestamp_ : submitTimestampBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.summaryText_ = summaryText_;
        }
      }

      @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.v2beta1.AgentAssistantFeedback.SummarizationFeedback) {
          return mergeFrom(
              (com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback other) {
        if (other
            == com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                .getDefaultInstance()) return this;
        if (other.hasStartTimestamp()) {
          mergeStartTimestamp(other.getStartTimestamp());
        }
        if (other.hasSubmitTimestamp()) {
          mergeSubmitTimestamp(other.getSubmitTimestamp());
        }
        if (!other.getSummaryText().isEmpty()) {
          summaryText_ = other.summaryText_;
          bitField0_ |= 0x00000004;
          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 10:
                {
                  input.readMessage(
                      getStartTimestampFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(
                      getSubmitTimestampFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 26:
                {
                  summaryText_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 26
              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 startTimestamp_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          startTimestampBuilder_;
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       *
       * @return Whether the startTimestamp field is set.
       */
      public boolean hasStartTimestamp() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       *
       * @return The startTimestamp.
       */
      public com.google.protobuf.Timestamp getStartTimestamp() {
        if (startTimestampBuilder_ == null) {
          return startTimestamp_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : startTimestamp_;
        } else {
          return startTimestampBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       */
      public Builder setStartTimestamp(com.google.protobuf.Timestamp value) {
        if (startTimestampBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          startTimestamp_ = value;
        } else {
          startTimestampBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       */
      public Builder setStartTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (startTimestampBuilder_ == null) {
          startTimestamp_ = builderForValue.build();
        } else {
          startTimestampBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       */
      public Builder mergeStartTimestamp(com.google.protobuf.Timestamp value) {
        if (startTimestampBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)
              && startTimestamp_ != null
              && startTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
            getStartTimestampBuilder().mergeFrom(value);
          } else {
            startTimestamp_ = value;
          }
        } else {
          startTimestampBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       */
      public Builder clearStartTimestamp() {
        bitField0_ = (bitField0_ & ~0x00000001);
        startTimestamp_ = null;
        if (startTimestampBuilder_ != null) {
          startTimestampBuilder_.dispose();
          startTimestampBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       */
      public com.google.protobuf.Timestamp.Builder getStartTimestampBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getStartTimestampFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder() {
        if (startTimestampBuilder_ != null) {
          return startTimestampBuilder_.getMessageOrBuilder();
        } else {
          return startTimestamp_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : startTimestamp_;
        }
      }
      /**
       *
       *
       * <pre>
       * Timestamp when composing of the summary starts.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp start_timestamp = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getStartTimestampFieldBuilder() {
        if (startTimestampBuilder_ == null) {
          startTimestampBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getStartTimestamp(), getParentForChildren(), isClean());
          startTimestamp_ = null;
        }
        return startTimestampBuilder_;
      }

      private com.google.protobuf.Timestamp submitTimestamp_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          submitTimestampBuilder_;
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       *
       * @return Whether the submitTimestamp field is set.
       */
      public boolean hasSubmitTimestamp() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       *
       * @return The submitTimestamp.
       */
      public com.google.protobuf.Timestamp getSubmitTimestamp() {
        if (submitTimestampBuilder_ == null) {
          return submitTimestamp_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : submitTimestamp_;
        } else {
          return submitTimestampBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       */
      public Builder setSubmitTimestamp(com.google.protobuf.Timestamp value) {
        if (submitTimestampBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          submitTimestamp_ = value;
        } else {
          submitTimestampBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       */
      public Builder setSubmitTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (submitTimestampBuilder_ == null) {
          submitTimestamp_ = builderForValue.build();
        } else {
          submitTimestampBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       */
      public Builder mergeSubmitTimestamp(com.google.protobuf.Timestamp value) {
        if (submitTimestampBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)
              && submitTimestamp_ != null
              && submitTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
            getSubmitTimestampBuilder().mergeFrom(value);
          } else {
            submitTimestamp_ = value;
          }
        } else {
          submitTimestampBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       */
      public Builder clearSubmitTimestamp() {
        bitField0_ = (bitField0_ & ~0x00000002);
        submitTimestamp_ = null;
        if (submitTimestampBuilder_ != null) {
          submitTimestampBuilder_.dispose();
          submitTimestampBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       */
      public com.google.protobuf.Timestamp.Builder getSubmitTimestampBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getSubmitTimestampFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getSubmitTimestampOrBuilder() {
        if (submitTimestampBuilder_ != null) {
          return submitTimestampBuilder_.getMessageOrBuilder();
        } else {
          return submitTimestamp_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : submitTimestamp_;
        }
      }
      /**
       *
       *
       * <pre>
       * Timestamp when the summary was submitted.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp submit_timestamp = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getSubmitTimestampFieldBuilder() {
        if (submitTimestampBuilder_ == null) {
          submitTimestampBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getSubmitTimestamp(), getParentForChildren(), isClean());
          submitTimestamp_ = null;
        }
        return submitTimestampBuilder_;
      }

      private java.lang.Object summaryText_ = "";
      /**
       *
       *
       * <pre>
       * Text of actual submitted summary.
       * </pre>
       *
       * <code>string summary_text = 3;</code>
       *
       * @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;
        }
      }
      /**
       *
       *
       * <pre>
       * Text of actual submitted summary.
       * </pre>
       *
       * <code>string summary_text = 3;</code>
       *
       * @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;
        }
      }
      /**
       *
       *
       * <pre>
       * Text of actual submitted summary.
       * </pre>
       *
       * <code>string summary_text = 3;</code>
       *
       * @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;
      }
      /**
       *
       *
       * <pre>
       * Text of actual submitted summary.
       * </pre>
       *
       * <code>string summary_text = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearSummaryText() {
        summaryText_ = getDefaultInstance().getSummaryText();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Text of actual submitted summary.
       * </pre>
       *
       * <code>string summary_text = 3;</code>
       *
       * @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;
      }

      @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.v2beta1.AgentAssistantFeedback.SummarizationFeedback)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback)
    private static final com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback
            .SummarizationFeedback
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback();
    }

    public static com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<SummarizationFeedback> PARSER =
        new com.google.protobuf.AbstractParser<SummarizationFeedback>() {
          @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<SummarizationFeedback> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<SummarizationFeedback> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int ANSWER_RELEVANCE_FIELD_NUMBER = 1;
  private int answerRelevance_ = 0;
  /**
   *
   *
   * <pre>
   * 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.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1;
   * </code>
   *
   * @return The enum numeric value on the wire for answerRelevance.
   */
  @java.lang.Override
  public int getAnswerRelevanceValue() {
    return answerRelevance_;
  }
  /**
   *
   *
   * <pre>
   * 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.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1;
   * </code>
   *
   * @return The answerRelevance.
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance
      getAnswerRelevance() {
    com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance result =
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.forNumber(
            answerRelevance_);
    return result == null
        ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED
        : result;
  }

  public static final int DOCUMENT_CORRECTNESS_FIELD_NUMBER = 2;
  private int documentCorrectness_ = 0;
  /**
   *
   *
   * <pre>
   * 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
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2;
   * </code>
   *
   * @return The enum numeric value on the wire for documentCorrectness.
   */
  @java.lang.Override
  public int getDocumentCorrectnessValue() {
    return documentCorrectness_;
  }
  /**
   *
   *
   * <pre>
   * 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
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2;
   * </code>
   *
   * @return The documentCorrectness.
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness
      getDocumentCorrectness() {
    com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness result =
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness.forNumber(
            documentCorrectness_);
    return result == null
        ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness
            .UNRECOGNIZED
        : result;
  }

  public static final int DOCUMENT_EFFICIENCY_FIELD_NUMBER = 3;
  private int documentEfficiency_ = 0;
  /**
   *
   *
   * <pre>
   * 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.v2beta1.AgentAssistantFeedback.document_efficiency]
   * is
   * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3;
   * </code>
   *
   * @return The enum numeric value on the wire for documentEfficiency.
   */
  @java.lang.Override
  public int getDocumentEfficiencyValue() {
    return documentEfficiency_;
  }
  /**
   *
   *
   * <pre>
   * 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.v2beta1.AgentAssistantFeedback.document_efficiency]
   * is
   * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3;
   * </code>
   *
   * @return The documentEfficiency.
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency
      getDocumentEfficiency() {
    com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency result =
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.forNumber(
            documentEfficiency_);
    return result == null
        ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.UNRECOGNIZED
        : result;
  }

  public static final int SUMMARIZATION_FEEDBACK_FIELD_NUMBER = 4;
  private com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
      summarizationFeedback_;
  /**
   *
   *
   * <pre>
   * Feedback for conversation summarization.
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
   * </code>
   *
   * @return Whether the summarizationFeedback field is set.
   */
  @java.lang.Override
  public boolean hasSummarizationFeedback() {
    return summarizationFeedback_ != null;
  }
  /**
   *
   *
   * <pre>
   * Feedback for conversation summarization.
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
   * </code>
   *
   * @return The summarizationFeedback.
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
      getSummarizationFeedback() {
    return summarizationFeedback_ == null
        ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
            .getDefaultInstance()
        : summarizationFeedback_;
  }
  /**
   *
   *
   * <pre>
   * Feedback for conversation summarization.
   * </pre>
   *
   * <code>
   * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedbackOrBuilder
      getSummarizationFeedbackOrBuilder() {
    return summarizationFeedback_ == null
        ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
            .getDefaultInstance()
        : summarizationFeedback_;
  }

  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.v2beta1.AgentAssistantFeedback.AnswerRelevance
            .ANSWER_RELEVANCE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(1, answerRelevance_);
    }
    if (documentCorrectness_
        != com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness
            .DOCUMENT_CORRECTNESS_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(2, documentCorrectness_);
    }
    if (documentEfficiency_
        != com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency
            .DOCUMENT_EFFICIENCY_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(3, documentEfficiency_);
    }
    if (summarizationFeedback_ != null) {
      output.writeMessage(4, getSummarizationFeedback());
    }
    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.v2beta1.AgentAssistantFeedback.AnswerRelevance
            .ANSWER_RELEVANCE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, answerRelevance_);
    }
    if (documentCorrectness_
        != com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness
            .DOCUMENT_CORRECTNESS_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, documentCorrectness_);
    }
    if (documentEfficiency_
        != com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency
            .DOCUMENT_EFFICIENCY_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, documentEfficiency_);
    }
    if (summarizationFeedback_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSummarizationFeedback());
    }
    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.v2beta1.AgentAssistantFeedback)) {
      return super.equals(obj);
    }
    com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback other =
        (com.google.cloud.dialogflow.v2beta1.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 (!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();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.AgentAssistantFeedback parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.AgentAssistantFeedback parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.AgentAssistantFeedback parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.AgentAssistantFeedback parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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;
  }
  /**
   *
   *
   * <pre>
   * Detail feedback of Agent Assistant result.
   * </pre>
   *
   * Protobuf type {@code google.cloud.dialogflow.v2beta1.AgentAssistantFeedback}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.AgentAssistantFeedback)
      com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedbackOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
          .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
          .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.class,
              com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.Builder.class);
    }

    // Construct using com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @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;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto
          .internal_static_google_cloud_dialogflow_v2beta1_AgentAssistantFeedback_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback getDefaultInstanceForType() {
      return com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback build() {
      com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback buildPartial() {
      com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback result =
          new com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.dialogflow.v2beta1.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_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.summarizationFeedback_ =
            summarizationFeedbackBuilder_ == null
                ? summarizationFeedback_
                : summarizationFeedbackBuilder_.build();
      }
    }

    @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.v2beta1.AgentAssistantFeedback) {
        return mergeFrom((com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback other) {
      if (other == com.google.cloud.dialogflow.v2beta1.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());
      }
      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
            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;
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for answerRelevance.
     */
    @java.lang.Override
    public int getAnswerRelevanceValue() {
      return answerRelevance_;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1;
     * </code>
     *
     * @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;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1;
     * </code>
     *
     * @return The answerRelevance.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance
        getAnswerRelevance() {
      com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance result =
          com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.forNumber(
              answerRelevance_);
      return result == null
          ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1;
     * </code>
     *
     * @param value The answerRelevance to set.
     * @return This builder for chaining.
     */
    public Builder setAnswerRelevance(
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000001;
      answerRelevance_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAnswerRelevance() {
      bitField0_ = (bitField0_ & ~0x00000001);
      answerRelevance_ = 0;
      onChanged();
      return this;
    }

    private int documentCorrectness_ = 0;
    /**
     *
     *
     * <pre>
     * 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
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2;
     * </code>
     *
     * @return The enum numeric value on the wire for documentCorrectness.
     */
    @java.lang.Override
    public int getDocumentCorrectnessValue() {
      return documentCorrectness_;
    }
    /**
     *
     *
     * <pre>
     * 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
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2;
     * </code>
     *
     * @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;
    }
    /**
     *
     *
     * <pre>
     * 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
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2;
     * </code>
     *
     * @return The documentCorrectness.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness
        getDocumentCorrectness() {
      com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness result =
          com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness.forNumber(
              documentCorrectness_);
      return result == null
          ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness
              .UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * 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
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2;
     * </code>
     *
     * @param value The documentCorrectness to set.
     * @return This builder for chaining.
     */
    public Builder setDocumentCorrectness(
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      documentCorrectness_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDocumentCorrectness() {
      bitField0_ = (bitField0_ & ~0x00000002);
      documentCorrectness_ = 0;
      onChanged();
      return this;
    }

    private int documentEfficiency_ = 0;
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.document_efficiency]
     * is
     * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3;
     * </code>
     *
     * @return The enum numeric value on the wire for documentEfficiency.
     */
    @java.lang.Override
    public int getDocumentEfficiencyValue() {
      return documentEfficiency_;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.document_efficiency]
     * is
     * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3;
     * </code>
     *
     * @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;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.document_efficiency]
     * is
     * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3;
     * </code>
     *
     * @return The documentEfficiency.
     */
    @java.lang.Override
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency
        getDocumentEfficiency() {
      com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency result =
          com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.forNumber(
              documentEfficiency_);
      return result == null
          ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency
              .UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.document_efficiency]
     * is
     * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3;
     * </code>
     *
     * @param value The documentEfficiency to set.
     * @return This builder for chaining.
     */
    public Builder setDocumentEfficiency(
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      documentEfficiency_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.v2beta1.AgentAssistantFeedback.document_efficiency]
     * is
     * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDocumentEfficiency() {
      bitField0_ = (bitField0_ & ~0x00000004);
      documentEfficiency_ = 0;
      onChanged();
      return this;
    }

    private com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
        summarizationFeedback_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback,
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                .Builder,
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback
                .SummarizationFeedbackOrBuilder>
        summarizationFeedbackBuilder_;
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     *
     * @return Whether the summarizationFeedback field is set.
     */
    public boolean hasSummarizationFeedback() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     *
     * @return The summarizationFeedback.
     */
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
        getSummarizationFeedback() {
      if (summarizationFeedbackBuilder_ == null) {
        return summarizationFeedback_ == null
            ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                .getDefaultInstance()
            : summarizationFeedback_;
      } else {
        return summarizationFeedbackBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     */
    public Builder setSummarizationFeedback(
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback value) {
      if (summarizationFeedbackBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        summarizationFeedback_ = value;
      } else {
        summarizationFeedbackBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     */
    public Builder setSummarizationFeedback(
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback.Builder
            builderForValue) {
      if (summarizationFeedbackBuilder_ == null) {
        summarizationFeedback_ = builderForValue.build();
      } else {
        summarizationFeedbackBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     */
    public Builder mergeSummarizationFeedback(
        com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback value) {
      if (summarizationFeedbackBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && summarizationFeedback_ != null
            && summarizationFeedback_
                != com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                    .getDefaultInstance()) {
          getSummarizationFeedbackBuilder().mergeFrom(value);
        } else {
          summarizationFeedback_ = value;
        }
      } else {
        summarizationFeedbackBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     */
    public Builder clearSummarizationFeedback() {
      bitField0_ = (bitField0_ & ~0x00000008);
      summarizationFeedback_ = null;
      if (summarizationFeedbackBuilder_ != null) {
        summarizationFeedbackBuilder_.dispose();
        summarizationFeedbackBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback.Builder
        getSummarizationFeedbackBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getSummarizationFeedbackFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     */
    public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedbackOrBuilder
        getSummarizationFeedbackOrBuilder() {
      if (summarizationFeedbackBuilder_ != null) {
        return summarizationFeedbackBuilder_.getMessageOrBuilder();
      } else {
        return summarizationFeedback_ == null
            ? com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                .getDefaultInstance()
            : summarizationFeedback_;
      }
    }
    /**
     *
     *
     * <pre>
     * Feedback for conversation summarization.
     * </pre>
     *
     * <code>
     * .google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback summarization_feedback = 4;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback,
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                .Builder,
            com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback
                .SummarizationFeedbackOrBuilder>
        getSummarizationFeedbackFieldBuilder() {
      if (summarizationFeedbackBuilder_ == null) {
        summarizationFeedbackBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback,
                com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.SummarizationFeedback
                    .Builder,
                com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback
                    .SummarizationFeedbackOrBuilder>(
                getSummarizationFeedback(), getParentForChildren(), isClean());
        summarizationFeedback_ = null;
      }
      return summarizationFeedbackBuilder_;
    }

    @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.v2beta1.AgentAssistantFeedback)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.AgentAssistantFeedback)
  private static final com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback();
  }

  public static com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AgentAssistantFeedback> PARSER =
      new com.google.protobuf.AbstractParser<AgentAssistantFeedback>() {
        @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<AgentAssistantFeedback> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<AgentAssistantFeedback> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.dialogflow.v2beta1.AgentAssistantFeedback getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
