// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/automl/v1beta1/data_stats.proto

package com.google.cloud.automl.v1beta1;

/**
 *
 *
 * <pre>
 * The data statistics of a series of values that share the same DataType.
 * </pre>
 *
 * Protobuf type {@code google.cloud.automl.v1beta1.DataStats}
 */
public final class DataStats extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DataStats)
    DataStatsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use DataStats.newBuilder() to construct.
  private DataStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private DataStats() {}

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

  private DataStats(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8:
            {
              distinctValueCount_ = input.readInt64();
              break;
            }
          case 16:
            {
              nullValueCount_ = input.readInt64();
              break;
            }
          case 26:
            {
              com.google.cloud.automl.v1beta1.Float64Stats.Builder subBuilder = null;
              if (statsCase_ == 3) {
                subBuilder = ((com.google.cloud.automl.v1beta1.Float64Stats) stats_).toBuilder();
              }
              stats_ =
                  input.readMessage(
                      com.google.cloud.automl.v1beta1.Float64Stats.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats) stats_);
                stats_ = subBuilder.buildPartial();
              }
              statsCase_ = 3;
              break;
            }
          case 34:
            {
              com.google.cloud.automl.v1beta1.StringStats.Builder subBuilder = null;
              if (statsCase_ == 4) {
                subBuilder = ((com.google.cloud.automl.v1beta1.StringStats) stats_).toBuilder();
              }
              stats_ =
                  input.readMessage(
                      com.google.cloud.automl.v1beta1.StringStats.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.StringStats) stats_);
                stats_ = subBuilder.buildPartial();
              }
              statsCase_ = 4;
              break;
            }
          case 42:
            {
              com.google.cloud.automl.v1beta1.TimestampStats.Builder subBuilder = null;
              if (statsCase_ == 5) {
                subBuilder = ((com.google.cloud.automl.v1beta1.TimestampStats) stats_).toBuilder();
              }
              stats_ =
                  input.readMessage(
                      com.google.cloud.automl.v1beta1.TimestampStats.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats) stats_);
                stats_ = subBuilder.buildPartial();
              }
              statsCase_ = 5;
              break;
            }
          case 50:
            {
              com.google.cloud.automl.v1beta1.ArrayStats.Builder subBuilder = null;
              if (statsCase_ == 6) {
                subBuilder = ((com.google.cloud.automl.v1beta1.ArrayStats) stats_).toBuilder();
              }
              stats_ =
                  input.readMessage(
                      com.google.cloud.automl.v1beta1.ArrayStats.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ArrayStats) stats_);
                stats_ = subBuilder.buildPartial();
              }
              statsCase_ = 6;
              break;
            }
          case 58:
            {
              com.google.cloud.automl.v1beta1.StructStats.Builder subBuilder = null;
              if (statsCase_ == 7) {
                subBuilder = ((com.google.cloud.automl.v1beta1.StructStats) stats_).toBuilder();
              }
              stats_ =
                  input.readMessage(
                      com.google.cloud.automl.v1beta1.StructStats.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.StructStats) stats_);
                stats_ = subBuilder.buildPartial();
              }
              statsCase_ = 7;
              break;
            }
          case 66:
            {
              com.google.cloud.automl.v1beta1.CategoryStats.Builder subBuilder = null;
              if (statsCase_ == 8) {
                subBuilder = ((com.google.cloud.automl.v1beta1.CategoryStats) stats_).toBuilder();
              }
              stats_ =
                  input.readMessage(
                      com.google.cloud.automl.v1beta1.CategoryStats.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.CategoryStats) stats_);
                stats_ = subBuilder.buildPartial();
              }
              statsCase_ = 8;
              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.automl.v1beta1.DataStatsOuterClass
        .internal_static_google_cloud_automl_v1beta1_DataStats_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.automl.v1beta1.DataStatsOuterClass
        .internal_static_google_cloud_automl_v1beta1_DataStats_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.automl.v1beta1.DataStats.class,
            com.google.cloud.automl.v1beta1.DataStats.Builder.class);
  }

  private int statsCase_ = 0;
  private java.lang.Object stats_;

  public enum StatsCase implements com.google.protobuf.Internal.EnumLite {
    FLOAT64_STATS(3),
    STRING_STATS(4),
    TIMESTAMP_STATS(5),
    ARRAY_STATS(6),
    STRUCT_STATS(7),
    CATEGORY_STATS(8),
    STATS_NOT_SET(0);
    private final int value;

    private StatsCase(int value) {
      this.value = value;
    }
    /** @deprecated Use {@link #forNumber(int)} instead. */
    @java.lang.Deprecated
    public static StatsCase valueOf(int value) {
      return forNumber(value);
    }

    public static StatsCase forNumber(int value) {
      switch (value) {
        case 3:
          return FLOAT64_STATS;
        case 4:
          return STRING_STATS;
        case 5:
          return TIMESTAMP_STATS;
        case 6:
          return ARRAY_STATS;
        case 7:
          return STRUCT_STATS;
        case 8:
          return CATEGORY_STATS;
        case 0:
          return STATS_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public StatsCase getStatsCase() {
    return StatsCase.forNumber(statsCase_);
  }

  public static final int FLOAT64_STATS_FIELD_NUMBER = 3;
  /**
   *
   *
   * <pre>
   * The statistics for FLOAT64 DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
   */
  public boolean hasFloat64Stats() {
    return statsCase_ == 3;
  }
  /**
   *
   *
   * <pre>
   * The statistics for FLOAT64 DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
   */
  public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() {
    if (statsCase_ == 3) {
      return (com.google.cloud.automl.v1beta1.Float64Stats) stats_;
    }
    return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The statistics for FLOAT64 DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
   */
  public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBuilder() {
    if (statsCase_ == 3) {
      return (com.google.cloud.automl.v1beta1.Float64Stats) stats_;
    }
    return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance();
  }

  public static final int STRING_STATS_FIELD_NUMBER = 4;
  /**
   *
   *
   * <pre>
   * The statistics for STRING DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
   */
  public boolean hasStringStats() {
    return statsCase_ == 4;
  }
  /**
   *
   *
   * <pre>
   * The statistics for STRING DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
   */
  public com.google.cloud.automl.v1beta1.StringStats getStringStats() {
    if (statsCase_ == 4) {
      return (com.google.cloud.automl.v1beta1.StringStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The statistics for STRING DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
   */
  public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuilder() {
    if (statsCase_ == 4) {
      return (com.google.cloud.automl.v1beta1.StringStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance();
  }

  public static final int TIMESTAMP_STATS_FIELD_NUMBER = 5;
  /**
   *
   *
   * <pre>
   * The statistics for TIMESTAMP DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
   */
  public boolean hasTimestampStats() {
    return statsCase_ == 5;
  }
  /**
   *
   *
   * <pre>
   * The statistics for TIMESTAMP DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
   */
  public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() {
    if (statsCase_ == 5) {
      return (com.google.cloud.automl.v1beta1.TimestampStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The statistics for TIMESTAMP DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
   */
  public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStatsOrBuilder() {
    if (statsCase_ == 5) {
      return (com.google.cloud.automl.v1beta1.TimestampStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance();
  }

  public static final int ARRAY_STATS_FIELD_NUMBER = 6;
  /**
   *
   *
   * <pre>
   * The statistics for ARRAY DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
   */
  public boolean hasArrayStats() {
    return statsCase_ == 6;
  }
  /**
   *
   *
   * <pre>
   * The statistics for ARRAY DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
   */
  public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() {
    if (statsCase_ == 6) {
      return (com.google.cloud.automl.v1beta1.ArrayStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The statistics for ARRAY DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
   */
  public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilder() {
    if (statsCase_ == 6) {
      return (com.google.cloud.automl.v1beta1.ArrayStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance();
  }

  public static final int STRUCT_STATS_FIELD_NUMBER = 7;
  /**
   *
   *
   * <pre>
   * The statistics for STRUCT DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
   */
  public boolean hasStructStats() {
    return statsCase_ == 7;
  }
  /**
   *
   *
   * <pre>
   * The statistics for STRUCT DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
   */
  public com.google.cloud.automl.v1beta1.StructStats getStructStats() {
    if (statsCase_ == 7) {
      return (com.google.cloud.automl.v1beta1.StructStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The statistics for STRUCT DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
   */
  public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuilder() {
    if (statsCase_ == 7) {
      return (com.google.cloud.automl.v1beta1.StructStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance();
  }

  public static final int CATEGORY_STATS_FIELD_NUMBER = 8;
  /**
   *
   *
   * <pre>
   * The statistics for CATEGORY DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
   */
  public boolean hasCategoryStats() {
    return statsCase_ == 8;
  }
  /**
   *
   *
   * <pre>
   * The statistics for CATEGORY DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
   */
  public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() {
    if (statsCase_ == 8) {
      return (com.google.cloud.automl.v1beta1.CategoryStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * The statistics for CATEGORY DataType.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
   */
  public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOrBuilder() {
    if (statsCase_ == 8) {
      return (com.google.cloud.automl.v1beta1.CategoryStats) stats_;
    }
    return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance();
  }

  public static final int DISTINCT_VALUE_COUNT_FIELD_NUMBER = 1;
  private long distinctValueCount_;
  /**
   *
   *
   * <pre>
   * The number of distinct values.
   * </pre>
   *
   * <code>int64 distinct_value_count = 1;</code>
   */
  public long getDistinctValueCount() {
    return distinctValueCount_;
  }

  public static final int NULL_VALUE_COUNT_FIELD_NUMBER = 2;
  private long nullValueCount_;
  /**
   *
   *
   * <pre>
   * The number of values that are null.
   * </pre>
   *
   * <code>int64 null_value_count = 2;</code>
   */
  public long getNullValueCount() {
    return nullValueCount_;
  }

  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 (distinctValueCount_ != 0L) {
      output.writeInt64(1, distinctValueCount_);
    }
    if (nullValueCount_ != 0L) {
      output.writeInt64(2, nullValueCount_);
    }
    if (statsCase_ == 3) {
      output.writeMessage(3, (com.google.cloud.automl.v1beta1.Float64Stats) stats_);
    }
    if (statsCase_ == 4) {
      output.writeMessage(4, (com.google.cloud.automl.v1beta1.StringStats) stats_);
    }
    if (statsCase_ == 5) {
      output.writeMessage(5, (com.google.cloud.automl.v1beta1.TimestampStats) stats_);
    }
    if (statsCase_ == 6) {
      output.writeMessage(6, (com.google.cloud.automl.v1beta1.ArrayStats) stats_);
    }
    if (statsCase_ == 7) {
      output.writeMessage(7, (com.google.cloud.automl.v1beta1.StructStats) stats_);
    }
    if (statsCase_ == 8) {
      output.writeMessage(8, (com.google.cloud.automl.v1beta1.CategoryStats) stats_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (distinctValueCount_ != 0L) {
      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, distinctValueCount_);
    }
    if (nullValueCount_ != 0L) {
      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, nullValueCount_);
    }
    if (statsCase_ == 3) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              3, (com.google.cloud.automl.v1beta1.Float64Stats) stats_);
    }
    if (statsCase_ == 4) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              4, (com.google.cloud.automl.v1beta1.StringStats) stats_);
    }
    if (statsCase_ == 5) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              5, (com.google.cloud.automl.v1beta1.TimestampStats) stats_);
    }
    if (statsCase_ == 6) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              6, (com.google.cloud.automl.v1beta1.ArrayStats) stats_);
    }
    if (statsCase_ == 7) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              7, (com.google.cloud.automl.v1beta1.StructStats) stats_);
    }
    if (statsCase_ == 8) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              8, (com.google.cloud.automl.v1beta1.CategoryStats) stats_);
    }
    size += unknownFields.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.automl.v1beta1.DataStats)) {
      return super.equals(obj);
    }
    com.google.cloud.automl.v1beta1.DataStats other =
        (com.google.cloud.automl.v1beta1.DataStats) obj;

    if (getDistinctValueCount() != other.getDistinctValueCount()) return false;
    if (getNullValueCount() != other.getNullValueCount()) return false;
    if (!getStatsCase().equals(other.getStatsCase())) return false;
    switch (statsCase_) {
      case 3:
        if (!getFloat64Stats().equals(other.getFloat64Stats())) return false;
        break;
      case 4:
        if (!getStringStats().equals(other.getStringStats())) return false;
        break;
      case 5:
        if (!getTimestampStats().equals(other.getTimestampStats())) return false;
        break;
      case 6:
        if (!getArrayStats().equals(other.getArrayStats())) return false;
        break;
      case 7:
        if (!getStructStats().equals(other.getStructStats())) return false;
        break;
      case 8:
        if (!getCategoryStats().equals(other.getCategoryStats())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) 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) + DISTINCT_VALUE_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDistinctValueCount());
    hash = (37 * hash) + NULL_VALUE_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNullValueCount());
    switch (statsCase_) {
      case 3:
        hash = (37 * hash) + FLOAT64_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getFloat64Stats().hashCode();
        break;
      case 4:
        hash = (37 * hash) + STRING_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getStringStats().hashCode();
        break;
      case 5:
        hash = (37 * hash) + TIMESTAMP_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getTimestampStats().hashCode();
        break;
      case 6:
        hash = (37 * hash) + ARRAY_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getArrayStats().hashCode();
        break;
      case 7:
        hash = (37 * hash) + STRUCT_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getStructStats().hashCode();
        break;
      case 8:
        hash = (37 * hash) + CATEGORY_STATS_FIELD_NUMBER;
        hash = (53 * hash) + getCategoryStats().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.automl.v1beta1.DataStats parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.cloud.automl.v1beta1.DataStats parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.automl.v1beta1.DataStats parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

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

  public static com.google.cloud.automl.v1beta1.DataStats 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.automl.v1beta1.DataStats parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.automl.v1beta1.DataStats 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.automl.v1beta1.DataStats 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>
   * The data statistics of a series of values that share the same DataType.
   * </pre>
   *
   * Protobuf type {@code google.cloud.automl.v1beta1.DataStats}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DataStats)
      com.google.cloud.automl.v1beta1.DataStatsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.automl.v1beta1.DataStatsOuterClass
          .internal_static_google_cloud_automl_v1beta1_DataStats_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.automl.v1beta1.DataStatsOuterClass
          .internal_static_google_cloud_automl_v1beta1_DataStats_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.automl.v1beta1.DataStats.class,
              com.google.cloud.automl.v1beta1.DataStats.Builder.class);
    }

    // Construct using com.google.cloud.automl.v1beta1.DataStats.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      distinctValueCount_ = 0L;

      nullValueCount_ = 0L;

      statsCase_ = 0;
      stats_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.automl.v1beta1.DataStatsOuterClass
          .internal_static_google_cloud_automl_v1beta1_DataStats_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.automl.v1beta1.DataStats getDefaultInstanceForType() {
      return com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.google.cloud.automl.v1beta1.DataStats buildPartial() {
      com.google.cloud.automl.v1beta1.DataStats result =
          new com.google.cloud.automl.v1beta1.DataStats(this);
      if (statsCase_ == 3) {
        if (float64StatsBuilder_ == null) {
          result.stats_ = stats_;
        } else {
          result.stats_ = float64StatsBuilder_.build();
        }
      }
      if (statsCase_ == 4) {
        if (stringStatsBuilder_ == null) {
          result.stats_ = stats_;
        } else {
          result.stats_ = stringStatsBuilder_.build();
        }
      }
      if (statsCase_ == 5) {
        if (timestampStatsBuilder_ == null) {
          result.stats_ = stats_;
        } else {
          result.stats_ = timestampStatsBuilder_.build();
        }
      }
      if (statsCase_ == 6) {
        if (arrayStatsBuilder_ == null) {
          result.stats_ = stats_;
        } else {
          result.stats_ = arrayStatsBuilder_.build();
        }
      }
      if (statsCase_ == 7) {
        if (structStatsBuilder_ == null) {
          result.stats_ = stats_;
        } else {
          result.stats_ = structStatsBuilder_.build();
        }
      }
      if (statsCase_ == 8) {
        if (categoryStatsBuilder_ == null) {
          result.stats_ = stats_;
        } else {
          result.stats_ = categoryStatsBuilder_.build();
        }
      }
      result.distinctValueCount_ = distinctValueCount_;
      result.nullValueCount_ = nullValueCount_;
      result.statsCase_ = statsCase_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.google.cloud.automl.v1beta1.DataStats other) {
      if (other == com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance()) return this;
      if (other.getDistinctValueCount() != 0L) {
        setDistinctValueCount(other.getDistinctValueCount());
      }
      if (other.getNullValueCount() != 0L) {
        setNullValueCount(other.getNullValueCount());
      }
      switch (other.getStatsCase()) {
        case FLOAT64_STATS:
          {
            mergeFloat64Stats(other.getFloat64Stats());
            break;
          }
        case STRING_STATS:
          {
            mergeStringStats(other.getStringStats());
            break;
          }
        case TIMESTAMP_STATS:
          {
            mergeTimestampStats(other.getTimestampStats());
            break;
          }
        case ARRAY_STATS:
          {
            mergeArrayStats(other.getArrayStats());
            break;
          }
        case STRUCT_STATS:
          {
            mergeStructStats(other.getStructStats());
            break;
          }
        case CATEGORY_STATS:
          {
            mergeCategoryStats(other.getCategoryStats());
            break;
          }
        case STATS_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      com.google.cloud.automl.v1beta1.DataStats parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.cloud.automl.v1beta1.DataStats) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int statsCase_ = 0;
    private java.lang.Object stats_;

    public StatsCase getStatsCase() {
      return StatsCase.forNumber(statsCase_);
    }

    public Builder clearStats() {
      statsCase_ = 0;
      stats_ = null;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.Float64Stats,
            com.google.cloud.automl.v1beta1.Float64Stats.Builder,
            com.google.cloud.automl.v1beta1.Float64StatsOrBuilder>
        float64StatsBuilder_;
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public boolean hasFloat64Stats() {
      return statsCase_ == 3;
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() {
      if (float64StatsBuilder_ == null) {
        if (statsCase_ == 3) {
          return (com.google.cloud.automl.v1beta1.Float64Stats) stats_;
        }
        return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance();
      } else {
        if (statsCase_ == 3) {
          return float64StatsBuilder_.getMessage();
        }
        return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public Builder setFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats value) {
      if (float64StatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stats_ = value;
        onChanged();
      } else {
        float64StatsBuilder_.setMessage(value);
      }
      statsCase_ = 3;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public Builder setFloat64Stats(
        com.google.cloud.automl.v1beta1.Float64Stats.Builder builderForValue) {
      if (float64StatsBuilder_ == null) {
        stats_ = builderForValue.build();
        onChanged();
      } else {
        float64StatsBuilder_.setMessage(builderForValue.build());
      }
      statsCase_ = 3;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public Builder mergeFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats value) {
      if (float64StatsBuilder_ == null) {
        if (statsCase_ == 3
            && stats_ != com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance()) {
          stats_ =
              com.google.cloud.automl.v1beta1.Float64Stats.newBuilder(
                      (com.google.cloud.automl.v1beta1.Float64Stats) stats_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          stats_ = value;
        }
        onChanged();
      } else {
        if (statsCase_ == 3) {
          float64StatsBuilder_.mergeFrom(value);
        }
        float64StatsBuilder_.setMessage(value);
      }
      statsCase_ = 3;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public Builder clearFloat64Stats() {
      if (float64StatsBuilder_ == null) {
        if (statsCase_ == 3) {
          statsCase_ = 0;
          stats_ = null;
          onChanged();
        }
      } else {
        if (statsCase_ == 3) {
          statsCase_ = 0;
          stats_ = null;
        }
        float64StatsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public com.google.cloud.automl.v1beta1.Float64Stats.Builder getFloat64StatsBuilder() {
      return getFloat64StatsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBuilder() {
      if ((statsCase_ == 3) && (float64StatsBuilder_ != null)) {
        return float64StatsBuilder_.getMessageOrBuilder();
      } else {
        if (statsCase_ == 3) {
          return (com.google.cloud.automl.v1beta1.Float64Stats) stats_;
        }
        return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for FLOAT64 DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.Float64Stats,
            com.google.cloud.automl.v1beta1.Float64Stats.Builder,
            com.google.cloud.automl.v1beta1.Float64StatsOrBuilder>
        getFloat64StatsFieldBuilder() {
      if (float64StatsBuilder_ == null) {
        if (!(statsCase_ == 3)) {
          stats_ = com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance();
        }
        float64StatsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.automl.v1beta1.Float64Stats,
                com.google.cloud.automl.v1beta1.Float64Stats.Builder,
                com.google.cloud.automl.v1beta1.Float64StatsOrBuilder>(
                (com.google.cloud.automl.v1beta1.Float64Stats) stats_,
                getParentForChildren(),
                isClean());
        stats_ = null;
      }
      statsCase_ = 3;
      onChanged();
      ;
      return float64StatsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.StringStats,
            com.google.cloud.automl.v1beta1.StringStats.Builder,
            com.google.cloud.automl.v1beta1.StringStatsOrBuilder>
        stringStatsBuilder_;
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public boolean hasStringStats() {
      return statsCase_ == 4;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public com.google.cloud.automl.v1beta1.StringStats getStringStats() {
      if (stringStatsBuilder_ == null) {
        if (statsCase_ == 4) {
          return (com.google.cloud.automl.v1beta1.StringStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance();
      } else {
        if (statsCase_ == 4) {
          return stringStatsBuilder_.getMessage();
        }
        return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public Builder setStringStats(com.google.cloud.automl.v1beta1.StringStats value) {
      if (stringStatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stats_ = value;
        onChanged();
      } else {
        stringStatsBuilder_.setMessage(value);
      }
      statsCase_ = 4;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public Builder setStringStats(
        com.google.cloud.automl.v1beta1.StringStats.Builder builderForValue) {
      if (stringStatsBuilder_ == null) {
        stats_ = builderForValue.build();
        onChanged();
      } else {
        stringStatsBuilder_.setMessage(builderForValue.build());
      }
      statsCase_ = 4;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public Builder mergeStringStats(com.google.cloud.automl.v1beta1.StringStats value) {
      if (stringStatsBuilder_ == null) {
        if (statsCase_ == 4
            && stats_ != com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance()) {
          stats_ =
              com.google.cloud.automl.v1beta1.StringStats.newBuilder(
                      (com.google.cloud.automl.v1beta1.StringStats) stats_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          stats_ = value;
        }
        onChanged();
      } else {
        if (statsCase_ == 4) {
          stringStatsBuilder_.mergeFrom(value);
        }
        stringStatsBuilder_.setMessage(value);
      }
      statsCase_ = 4;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public Builder clearStringStats() {
      if (stringStatsBuilder_ == null) {
        if (statsCase_ == 4) {
          statsCase_ = 0;
          stats_ = null;
          onChanged();
        }
      } else {
        if (statsCase_ == 4) {
          statsCase_ = 0;
          stats_ = null;
        }
        stringStatsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public com.google.cloud.automl.v1beta1.StringStats.Builder getStringStatsBuilder() {
      return getStringStatsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuilder() {
      if ((statsCase_ == 4) && (stringStatsBuilder_ != null)) {
        return stringStatsBuilder_.getMessageOrBuilder();
      } else {
        if (statsCase_ == 4) {
          return (com.google.cloud.automl.v1beta1.StringStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRING DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StringStats string_stats = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.StringStats,
            com.google.cloud.automl.v1beta1.StringStats.Builder,
            com.google.cloud.automl.v1beta1.StringStatsOrBuilder>
        getStringStatsFieldBuilder() {
      if (stringStatsBuilder_ == null) {
        if (!(statsCase_ == 4)) {
          stats_ = com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance();
        }
        stringStatsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.automl.v1beta1.StringStats,
                com.google.cloud.automl.v1beta1.StringStats.Builder,
                com.google.cloud.automl.v1beta1.StringStatsOrBuilder>(
                (com.google.cloud.automl.v1beta1.StringStats) stats_,
                getParentForChildren(),
                isClean());
        stats_ = null;
      }
      statsCase_ = 4;
      onChanged();
      ;
      return stringStatsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.TimestampStats,
            com.google.cloud.automl.v1beta1.TimestampStats.Builder,
            com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder>
        timestampStatsBuilder_;
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public boolean hasTimestampStats() {
      return statsCase_ == 5;
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() {
      if (timestampStatsBuilder_ == null) {
        if (statsCase_ == 5) {
          return (com.google.cloud.automl.v1beta1.TimestampStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance();
      } else {
        if (statsCase_ == 5) {
          return timestampStatsBuilder_.getMessage();
        }
        return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public Builder setTimestampStats(com.google.cloud.automl.v1beta1.TimestampStats value) {
      if (timestampStatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stats_ = value;
        onChanged();
      } else {
        timestampStatsBuilder_.setMessage(value);
      }
      statsCase_ = 5;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public Builder setTimestampStats(
        com.google.cloud.automl.v1beta1.TimestampStats.Builder builderForValue) {
      if (timestampStatsBuilder_ == null) {
        stats_ = builderForValue.build();
        onChanged();
      } else {
        timestampStatsBuilder_.setMessage(builderForValue.build());
      }
      statsCase_ = 5;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public Builder mergeTimestampStats(com.google.cloud.automl.v1beta1.TimestampStats value) {
      if (timestampStatsBuilder_ == null) {
        if (statsCase_ == 5
            && stats_ != com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance()) {
          stats_ =
              com.google.cloud.automl.v1beta1.TimestampStats.newBuilder(
                      (com.google.cloud.automl.v1beta1.TimestampStats) stats_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          stats_ = value;
        }
        onChanged();
      } else {
        if (statsCase_ == 5) {
          timestampStatsBuilder_.mergeFrom(value);
        }
        timestampStatsBuilder_.setMessage(value);
      }
      statsCase_ = 5;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public Builder clearTimestampStats() {
      if (timestampStatsBuilder_ == null) {
        if (statsCase_ == 5) {
          statsCase_ = 0;
          stats_ = null;
          onChanged();
        }
      } else {
        if (statsCase_ == 5) {
          statsCase_ = 0;
          stats_ = null;
        }
        timestampStatsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public com.google.cloud.automl.v1beta1.TimestampStats.Builder getTimestampStatsBuilder() {
      return getTimestampStatsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStatsOrBuilder() {
      if ((statsCase_ == 5) && (timestampStatsBuilder_ != null)) {
        return timestampStatsBuilder_.getMessageOrBuilder();
      } else {
        if (statsCase_ == 5) {
          return (com.google.cloud.automl.v1beta1.TimestampStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for TIMESTAMP DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.TimestampStats,
            com.google.cloud.automl.v1beta1.TimestampStats.Builder,
            com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder>
        getTimestampStatsFieldBuilder() {
      if (timestampStatsBuilder_ == null) {
        if (!(statsCase_ == 5)) {
          stats_ = com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance();
        }
        timestampStatsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.automl.v1beta1.TimestampStats,
                com.google.cloud.automl.v1beta1.TimestampStats.Builder,
                com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder>(
                (com.google.cloud.automl.v1beta1.TimestampStats) stats_,
                getParentForChildren(),
                isClean());
        stats_ = null;
      }
      statsCase_ = 5;
      onChanged();
      ;
      return timestampStatsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.ArrayStats,
            com.google.cloud.automl.v1beta1.ArrayStats.Builder,
            com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder>
        arrayStatsBuilder_;
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public boolean hasArrayStats() {
      return statsCase_ == 6;
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() {
      if (arrayStatsBuilder_ == null) {
        if (statsCase_ == 6) {
          return (com.google.cloud.automl.v1beta1.ArrayStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance();
      } else {
        if (statsCase_ == 6) {
          return arrayStatsBuilder_.getMessage();
        }
        return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public Builder setArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) {
      if (arrayStatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stats_ = value;
        onChanged();
      } else {
        arrayStatsBuilder_.setMessage(value);
      }
      statsCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public Builder setArrayStats(
        com.google.cloud.automl.v1beta1.ArrayStats.Builder builderForValue) {
      if (arrayStatsBuilder_ == null) {
        stats_ = builderForValue.build();
        onChanged();
      } else {
        arrayStatsBuilder_.setMessage(builderForValue.build());
      }
      statsCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public Builder mergeArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) {
      if (arrayStatsBuilder_ == null) {
        if (statsCase_ == 6
            && stats_ != com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance()) {
          stats_ =
              com.google.cloud.automl.v1beta1.ArrayStats.newBuilder(
                      (com.google.cloud.automl.v1beta1.ArrayStats) stats_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          stats_ = value;
        }
        onChanged();
      } else {
        if (statsCase_ == 6) {
          arrayStatsBuilder_.mergeFrom(value);
        }
        arrayStatsBuilder_.setMessage(value);
      }
      statsCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public Builder clearArrayStats() {
      if (arrayStatsBuilder_ == null) {
        if (statsCase_ == 6) {
          statsCase_ = 0;
          stats_ = null;
          onChanged();
        }
      } else {
        if (statsCase_ == 6) {
          statsCase_ = 0;
          stats_ = null;
        }
        arrayStatsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public com.google.cloud.automl.v1beta1.ArrayStats.Builder getArrayStatsBuilder() {
      return getArrayStatsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilder() {
      if ((statsCase_ == 6) && (arrayStatsBuilder_ != null)) {
        return arrayStatsBuilder_.getMessageOrBuilder();
      } else {
        if (statsCase_ == 6) {
          return (com.google.cloud.automl.v1beta1.ArrayStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for ARRAY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.ArrayStats,
            com.google.cloud.automl.v1beta1.ArrayStats.Builder,
            com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder>
        getArrayStatsFieldBuilder() {
      if (arrayStatsBuilder_ == null) {
        if (!(statsCase_ == 6)) {
          stats_ = com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance();
        }
        arrayStatsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.automl.v1beta1.ArrayStats,
                com.google.cloud.automl.v1beta1.ArrayStats.Builder,
                com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder>(
                (com.google.cloud.automl.v1beta1.ArrayStats) stats_,
                getParentForChildren(),
                isClean());
        stats_ = null;
      }
      statsCase_ = 6;
      onChanged();
      ;
      return arrayStatsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.StructStats,
            com.google.cloud.automl.v1beta1.StructStats.Builder,
            com.google.cloud.automl.v1beta1.StructStatsOrBuilder>
        structStatsBuilder_;
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public boolean hasStructStats() {
      return statsCase_ == 7;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public com.google.cloud.automl.v1beta1.StructStats getStructStats() {
      if (structStatsBuilder_ == null) {
        if (statsCase_ == 7) {
          return (com.google.cloud.automl.v1beta1.StructStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance();
      } else {
        if (statsCase_ == 7) {
          return structStatsBuilder_.getMessage();
        }
        return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public Builder setStructStats(com.google.cloud.automl.v1beta1.StructStats value) {
      if (structStatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stats_ = value;
        onChanged();
      } else {
        structStatsBuilder_.setMessage(value);
      }
      statsCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public Builder setStructStats(
        com.google.cloud.automl.v1beta1.StructStats.Builder builderForValue) {
      if (structStatsBuilder_ == null) {
        stats_ = builderForValue.build();
        onChanged();
      } else {
        structStatsBuilder_.setMessage(builderForValue.build());
      }
      statsCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public Builder mergeStructStats(com.google.cloud.automl.v1beta1.StructStats value) {
      if (structStatsBuilder_ == null) {
        if (statsCase_ == 7
            && stats_ != com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance()) {
          stats_ =
              com.google.cloud.automl.v1beta1.StructStats.newBuilder(
                      (com.google.cloud.automl.v1beta1.StructStats) stats_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          stats_ = value;
        }
        onChanged();
      } else {
        if (statsCase_ == 7) {
          structStatsBuilder_.mergeFrom(value);
        }
        structStatsBuilder_.setMessage(value);
      }
      statsCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public Builder clearStructStats() {
      if (structStatsBuilder_ == null) {
        if (statsCase_ == 7) {
          statsCase_ = 0;
          stats_ = null;
          onChanged();
        }
      } else {
        if (statsCase_ == 7) {
          statsCase_ = 0;
          stats_ = null;
        }
        structStatsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public com.google.cloud.automl.v1beta1.StructStats.Builder getStructStatsBuilder() {
      return getStructStatsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuilder() {
      if ((statsCase_ == 7) && (structStatsBuilder_ != null)) {
        return structStatsBuilder_.getMessageOrBuilder();
      } else {
        if (statsCase_ == 7) {
          return (com.google.cloud.automl.v1beta1.StructStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for STRUCT DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.StructStats struct_stats = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.StructStats,
            com.google.cloud.automl.v1beta1.StructStats.Builder,
            com.google.cloud.automl.v1beta1.StructStatsOrBuilder>
        getStructStatsFieldBuilder() {
      if (structStatsBuilder_ == null) {
        if (!(statsCase_ == 7)) {
          stats_ = com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance();
        }
        structStatsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.automl.v1beta1.StructStats,
                com.google.cloud.automl.v1beta1.StructStats.Builder,
                com.google.cloud.automl.v1beta1.StructStatsOrBuilder>(
                (com.google.cloud.automl.v1beta1.StructStats) stats_,
                getParentForChildren(),
                isClean());
        stats_ = null;
      }
      statsCase_ = 7;
      onChanged();
      ;
      return structStatsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.CategoryStats,
            com.google.cloud.automl.v1beta1.CategoryStats.Builder,
            com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder>
        categoryStatsBuilder_;
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public boolean hasCategoryStats() {
      return statsCase_ == 8;
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() {
      if (categoryStatsBuilder_ == null) {
        if (statsCase_ == 8) {
          return (com.google.cloud.automl.v1beta1.CategoryStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance();
      } else {
        if (statsCase_ == 8) {
          return categoryStatsBuilder_.getMessage();
        }
        return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public Builder setCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats value) {
      if (categoryStatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stats_ = value;
        onChanged();
      } else {
        categoryStatsBuilder_.setMessage(value);
      }
      statsCase_ = 8;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public Builder setCategoryStats(
        com.google.cloud.automl.v1beta1.CategoryStats.Builder builderForValue) {
      if (categoryStatsBuilder_ == null) {
        stats_ = builderForValue.build();
        onChanged();
      } else {
        categoryStatsBuilder_.setMessage(builderForValue.build());
      }
      statsCase_ = 8;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public Builder mergeCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats value) {
      if (categoryStatsBuilder_ == null) {
        if (statsCase_ == 8
            && stats_ != com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance()) {
          stats_ =
              com.google.cloud.automl.v1beta1.CategoryStats.newBuilder(
                      (com.google.cloud.automl.v1beta1.CategoryStats) stats_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          stats_ = value;
        }
        onChanged();
      } else {
        if (statsCase_ == 8) {
          categoryStatsBuilder_.mergeFrom(value);
        }
        categoryStatsBuilder_.setMessage(value);
      }
      statsCase_ = 8;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public Builder clearCategoryStats() {
      if (categoryStatsBuilder_ == null) {
        if (statsCase_ == 8) {
          statsCase_ = 0;
          stats_ = null;
          onChanged();
        }
      } else {
        if (statsCase_ == 8) {
          statsCase_ = 0;
          stats_ = null;
        }
        categoryStatsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public com.google.cloud.automl.v1beta1.CategoryStats.Builder getCategoryStatsBuilder() {
      return getCategoryStatsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOrBuilder() {
      if ((statsCase_ == 8) && (categoryStatsBuilder_ != null)) {
        return categoryStatsBuilder_.getMessageOrBuilder();
      } else {
        if (statsCase_ == 8) {
          return (com.google.cloud.automl.v1beta1.CategoryStats) stats_;
        }
        return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * The statistics for CATEGORY DataType.
     * </pre>
     *
     * <code>.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.automl.v1beta1.CategoryStats,
            com.google.cloud.automl.v1beta1.CategoryStats.Builder,
            com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder>
        getCategoryStatsFieldBuilder() {
      if (categoryStatsBuilder_ == null) {
        if (!(statsCase_ == 8)) {
          stats_ = com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance();
        }
        categoryStatsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.automl.v1beta1.CategoryStats,
                com.google.cloud.automl.v1beta1.CategoryStats.Builder,
                com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder>(
                (com.google.cloud.automl.v1beta1.CategoryStats) stats_,
                getParentForChildren(),
                isClean());
        stats_ = null;
      }
      statsCase_ = 8;
      onChanged();
      ;
      return categoryStatsBuilder_;
    }

    private long distinctValueCount_;
    /**
     *
     *
     * <pre>
     * The number of distinct values.
     * </pre>
     *
     * <code>int64 distinct_value_count = 1;</code>
     */
    public long getDistinctValueCount() {
      return distinctValueCount_;
    }
    /**
     *
     *
     * <pre>
     * The number of distinct values.
     * </pre>
     *
     * <code>int64 distinct_value_count = 1;</code>
     */
    public Builder setDistinctValueCount(long value) {

      distinctValueCount_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The number of distinct values.
     * </pre>
     *
     * <code>int64 distinct_value_count = 1;</code>
     */
    public Builder clearDistinctValueCount() {

      distinctValueCount_ = 0L;
      onChanged();
      return this;
    }

    private long nullValueCount_;
    /**
     *
     *
     * <pre>
     * The number of values that are null.
     * </pre>
     *
     * <code>int64 null_value_count = 2;</code>
     */
    public long getNullValueCount() {
      return nullValueCount_;
    }
    /**
     *
     *
     * <pre>
     * The number of values that are null.
     * </pre>
     *
     * <code>int64 null_value_count = 2;</code>
     */
    public Builder setNullValueCount(long value) {

      nullValueCount_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The number of values that are null.
     * </pre>
     *
     * <code>int64 null_value_count = 2;</code>
     */
    public Builder clearNullValueCount() {

      nullValueCount_ = 0L;
      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.automl.v1beta1.DataStats)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DataStats)
  private static final com.google.cloud.automl.v1beta1.DataStats DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DataStats();
  }

  public static com.google.cloud.automl.v1beta1.DataStats getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<DataStats> PARSER =
      new com.google.protobuf.AbstractParser<DataStats>() {
        @java.lang.Override
        public DataStats parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new DataStats(input, extensionRegistry);
        }
      };

  public static com.google.protobuf.Parser<DataStats> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.cloud.automl.v1beta1.DataStats getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
