com.google.cloud.automl.v1beta1.DataStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-automl-v1beta1 Show documentation
Show all versions of proto-google-cloud-automl-v1beta1 Show documentation
PROTO library for proto-google-cloud-automl-v1beta1
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/automl/v1beta1/data_stats.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.automl.v1beta1;
/**
*
*
*
* The data statistics of a series of values that share the same DataType.
*
*
* 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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataStats();
}
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;
@SuppressWarnings("serial")
private java.lang.Object stats_;
public enum StatsCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
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;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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;
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*
* @return Whether the float64Stats field is set.
*/
@java.lang.Override
public boolean hasFloat64Stats() {
return statsCase_ == 3;
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*
* @return The float64Stats.
*/
@java.lang.Override
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();
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
@java.lang.Override
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;
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*
* @return Whether the stringStats field is set.
*/
@java.lang.Override
public boolean hasStringStats() {
return statsCase_ == 4;
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*
* @return The stringStats.
*/
@java.lang.Override
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();
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
@java.lang.Override
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;
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*
* @return Whether the timestampStats field is set.
*/
@java.lang.Override
public boolean hasTimestampStats() {
return statsCase_ == 5;
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*
* @return The timestampStats.
*/
@java.lang.Override
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();
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
@java.lang.Override
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;
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*
* @return Whether the arrayStats field is set.
*/
@java.lang.Override
public boolean hasArrayStats() {
return statsCase_ == 6;
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*
* @return The arrayStats.
*/
@java.lang.Override
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();
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
@java.lang.Override
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;
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*
* @return Whether the structStats field is set.
*/
@java.lang.Override
public boolean hasStructStats() {
return statsCase_ == 7;
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*
* @return The structStats.
*/
@java.lang.Override
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();
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
@java.lang.Override
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;
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*
* @return Whether the categoryStats field is set.
*/
@java.lang.Override
public boolean hasCategoryStats() {
return statsCase_ == 8;
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*
* @return The categoryStats.
*/
@java.lang.Override
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();
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
@java.lang.Override
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_ = 0L;
/**
*
*
*
* The number of distinct values.
*
*
* int64 distinct_value_count = 1;
*
* @return The distinctValueCount.
*/
@java.lang.Override
public long getDistinctValueCount() {
return distinctValueCount_;
}
public static final int NULL_VALUE_COUNT_FIELD_NUMBER = 2;
private long nullValueCount_ = 0L;
/**
*
*
*
* The number of values that are null.
*
*
* int64 null_value_count = 2;
*
* @return The nullValueCount.
*/
@java.lang.Override
public long getNullValueCount() {
return nullValueCount_;
}
public static final int VALID_VALUE_COUNT_FIELD_NUMBER = 9;
private long validValueCount_ = 0L;
/**
*
*
*
* The number of values that are valid.
*
*
* int64 valid_value_count = 9;
*
* @return The validValueCount.
*/
@java.lang.Override
public long getValidValueCount() {
return validValueCount_;
}
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_);
}
if (validValueCount_ != 0L) {
output.writeInt64(9, validValueCount_);
}
getUnknownFields().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_);
}
if (validValueCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, validValueCount_);
}
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.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 (getValidValueCount() != other.getValidValueCount()) 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 (!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) + 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());
hash = (37 * hash) + VALID_VALUE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidValueCount());
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) + getUnknownFields().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;
}
/**
*
*
*
* The data statistics of a series of values that share the same DataType.
*
*
* Protobuf type {@code google.cloud.automl.v1beta1.DataStats}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.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() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (float64StatsBuilder_ != null) {
float64StatsBuilder_.clear();
}
if (stringStatsBuilder_ != null) {
stringStatsBuilder_.clear();
}
if (timestampStatsBuilder_ != null) {
timestampStatsBuilder_.clear();
}
if (arrayStatsBuilder_ != null) {
arrayStatsBuilder_.clear();
}
if (structStatsBuilder_ != null) {
structStatsBuilder_.clear();
}
if (categoryStatsBuilder_ != null) {
categoryStatsBuilder_.clear();
}
distinctValueCount_ = 0L;
nullValueCount_ = 0L;
validValueCount_ = 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 (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.automl.v1beta1.DataStats result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.distinctValueCount_ = distinctValueCount_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.nullValueCount_ = nullValueCount_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.validValueCount_ = validValueCount_;
}
}
private void buildPartialOneofs(com.google.cloud.automl.v1beta1.DataStats result) {
result.statsCase_ = statsCase_;
result.stats_ = this.stats_;
if (statsCase_ == 3 && float64StatsBuilder_ != null) {
result.stats_ = float64StatsBuilder_.build();
}
if (statsCase_ == 4 && stringStatsBuilder_ != null) {
result.stats_ = stringStatsBuilder_.build();
}
if (statsCase_ == 5 && timestampStatsBuilder_ != null) {
result.stats_ = timestampStatsBuilder_.build();
}
if (statsCase_ == 6 && arrayStatsBuilder_ != null) {
result.stats_ = arrayStatsBuilder_.build();
}
if (statsCase_ == 7 && structStatsBuilder_ != null) {
result.stats_ = structStatsBuilder_.build();
}
if (statsCase_ == 8 && categoryStatsBuilder_ != null) {
result.stats_ = categoryStatsBuilder_.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.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());
}
if (other.getValidValueCount() != 0L) {
setValidValueCount(other.getValidValueCount());
}
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.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:
{
distinctValueCount_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 8
case 16:
{
nullValueCount_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 16
case 26:
{
input.readMessage(getFloat64StatsFieldBuilder().getBuilder(), extensionRegistry);
statsCase_ = 3;
break;
} // case 26
case 34:
{
input.readMessage(getStringStatsFieldBuilder().getBuilder(), extensionRegistry);
statsCase_ = 4;
break;
} // case 34
case 42:
{
input.readMessage(getTimestampStatsFieldBuilder().getBuilder(), extensionRegistry);
statsCase_ = 5;
break;
} // case 42
case 50:
{
input.readMessage(getArrayStatsFieldBuilder().getBuilder(), extensionRegistry);
statsCase_ = 6;
break;
} // case 50
case 58:
{
input.readMessage(getStructStatsFieldBuilder().getBuilder(), extensionRegistry);
statsCase_ = 7;
break;
} // case 58
case 66:
{
input.readMessage(getCategoryStatsFieldBuilder().getBuilder(), extensionRegistry);
statsCase_ = 8;
break;
} // case 66
case 72:
{
validValueCount_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 72
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 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 int bitField0_;
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_;
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*
* @return Whether the float64Stats field is set.
*/
@java.lang.Override
public boolean hasFloat64Stats() {
return statsCase_ == 3;
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*
* @return The float64Stats.
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
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;
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
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;
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
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);
} else {
float64StatsBuilder_.setMessage(value);
}
}
statsCase_ = 3;
return this;
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
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;
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
public com.google.cloud.automl.v1beta1.Float64Stats.Builder getFloat64StatsBuilder() {
return getFloat64StatsFieldBuilder().getBuilder();
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for FLOAT64 DataType.
*
*
* .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
*/
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_;
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*
* @return Whether the stringStats field is set.
*/
@java.lang.Override
public boolean hasStringStats() {
return statsCase_ == 4;
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*
* @return The stringStats.
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
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;
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
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;
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
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);
} else {
stringStatsBuilder_.setMessage(value);
}
}
statsCase_ = 4;
return this;
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
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;
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
public com.google.cloud.automl.v1beta1.StringStats.Builder getStringStatsBuilder() {
return getStringStatsFieldBuilder().getBuilder();
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for STRING DataType.
*
*
* .google.cloud.automl.v1beta1.StringStats string_stats = 4;
*/
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_;
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*
* @return Whether the timestampStats field is set.
*/
@java.lang.Override
public boolean hasTimestampStats() {
return statsCase_ == 5;
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*
* @return The timestampStats.
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
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;
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
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;
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
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);
} else {
timestampStatsBuilder_.setMessage(value);
}
}
statsCase_ = 5;
return this;
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
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;
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
public com.google.cloud.automl.v1beta1.TimestampStats.Builder getTimestampStatsBuilder() {
return getTimestampStatsFieldBuilder().getBuilder();
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for TIMESTAMP DataType.
*
*
* .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
*/
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_;
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*
* @return Whether the arrayStats field is set.
*/
@java.lang.Override
public boolean hasArrayStats() {
return statsCase_ == 6;
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*
* @return The arrayStats.
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
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;
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
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;
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
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);
} else {
arrayStatsBuilder_.setMessage(value);
}
}
statsCase_ = 6;
return this;
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
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;
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
public com.google.cloud.automl.v1beta1.ArrayStats.Builder getArrayStatsBuilder() {
return getArrayStatsFieldBuilder().getBuilder();
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for ARRAY DataType.
*
*
* .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
*/
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_;
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*
* @return Whether the structStats field is set.
*/
@java.lang.Override
public boolean hasStructStats() {
return statsCase_ == 7;
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*
* @return The structStats.
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
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;
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
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;
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
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);
} else {
structStatsBuilder_.setMessage(value);
}
}
statsCase_ = 7;
return this;
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
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;
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
public com.google.cloud.automl.v1beta1.StructStats.Builder getStructStatsBuilder() {
return getStructStatsFieldBuilder().getBuilder();
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for STRUCT DataType.
*
*
* .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
*/
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_;
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*
* @return Whether the categoryStats field is set.
*/
@java.lang.Override
public boolean hasCategoryStats() {
return statsCase_ == 8;
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*
* @return The categoryStats.
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
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;
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
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;
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
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);
} else {
categoryStatsBuilder_.setMessage(value);
}
}
statsCase_ = 8;
return this;
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
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;
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
public com.google.cloud.automl.v1beta1.CategoryStats.Builder getCategoryStatsBuilder() {
return getCategoryStatsFieldBuilder().getBuilder();
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
@java.lang.Override
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();
}
}
/**
*
*
*
* The statistics for CATEGORY DataType.
*
*
* .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
*/
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_;
/**
*
*
*
* The number of distinct values.
*
*
* int64 distinct_value_count = 1;
*
* @return The distinctValueCount.
*/
@java.lang.Override
public long getDistinctValueCount() {
return distinctValueCount_;
}
/**
*
*
*
* The number of distinct values.
*
*
* int64 distinct_value_count = 1;
*
* @param value The distinctValueCount to set.
* @return This builder for chaining.
*/
public Builder setDistinctValueCount(long value) {
distinctValueCount_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* The number of distinct values.
*
*
* int64 distinct_value_count = 1;
*
* @return This builder for chaining.
*/
public Builder clearDistinctValueCount() {
bitField0_ = (bitField0_ & ~0x00000040);
distinctValueCount_ = 0L;
onChanged();
return this;
}
private long nullValueCount_;
/**
*
*
*
* The number of values that are null.
*
*
* int64 null_value_count = 2;
*
* @return The nullValueCount.
*/
@java.lang.Override
public long getNullValueCount() {
return nullValueCount_;
}
/**
*
*
*
* The number of values that are null.
*
*
* int64 null_value_count = 2;
*
* @param value The nullValueCount to set.
* @return This builder for chaining.
*/
public Builder setNullValueCount(long value) {
nullValueCount_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The number of values that are null.
*
*
* int64 null_value_count = 2;
*
* @return This builder for chaining.
*/
public Builder clearNullValueCount() {
bitField0_ = (bitField0_ & ~0x00000080);
nullValueCount_ = 0L;
onChanged();
return this;
}
private long validValueCount_;
/**
*
*
*
* The number of values that are valid.
*
*
* int64 valid_value_count = 9;
*
* @return The validValueCount.
*/
@java.lang.Override
public long getValidValueCount() {
return validValueCount_;
}
/**
*
*
*
* The number of values that are valid.
*
*
* int64 valid_value_count = 9;
*
* @param value The validValueCount to set.
* @return This builder for chaining.
*/
public Builder setValidValueCount(long value) {
validValueCount_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* The number of values that are valid.
*
*
* int64 valid_value_count = 9;
*
* @return This builder for chaining.
*/
public Builder clearValidValueCount() {
bitField0_ = (bitField0_ & ~0x00000100);
validValueCount_ = 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 PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.automl.v1beta1.DataStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}