Class DataStats (2.29.0)

public final class DataStats extends GeneratedMessageV3 implements DataStatsOrBuilder

The data statistics of a series of values that share the same DataType.

Protobuf type google.cloud.automl.v1beta1.DataStats

Implements

DataStatsOrBuilder

Static Fields

ARRAY_STATS_FIELD_NUMBER

public static final int ARRAY_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

CATEGORY_STATS_FIELD_NUMBER

public static final int CATEGORY_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

DISTINCT_VALUE_COUNT_FIELD_NUMBER

public static final int DISTINCT_VALUE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

FLOAT64_STATS_FIELD_NUMBER

public static final int FLOAT64_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

NULL_VALUE_COUNT_FIELD_NUMBER

public static final int NULL_VALUE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

STRING_STATS_FIELD_NUMBER

public static final int STRING_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

STRUCT_STATS_FIELD_NUMBER

public static final int STRUCT_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

TIMESTAMP_STATS_FIELD_NUMBER

public static final int TIMESTAMP_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

VALID_VALUE_COUNT_FIELD_NUMBER

public static final int VALID_VALUE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataStats getDefaultInstance()
Returns
TypeDescription
DataStats

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DataStats.Builder newBuilder()
Returns
TypeDescription
DataStats.Builder

newBuilder(DataStats prototype)

public static DataStats.Builder newBuilder(DataStats prototype)
Parameter
NameDescription
prototypeDataStats
Returns
TypeDescription
DataStats.Builder

parseDelimitedFrom(InputStream input)

public static DataStats parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DataStats parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataStats parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataStats parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DataStats parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DataStats parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DataStats> parser()
Returns
TypeDescription
Parser<DataStats>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getArrayStats()

public ArrayStats getArrayStats()

The statistics for ARRAY DataType.

.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;

Returns
TypeDescription
ArrayStats

The arrayStats.

getArrayStatsOrBuilder()

public ArrayStatsOrBuilder getArrayStatsOrBuilder()

The statistics for ARRAY DataType.

.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;

Returns
TypeDescription
ArrayStatsOrBuilder

getCategoryStats()

public CategoryStats getCategoryStats()

The statistics for CATEGORY DataType.

.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;

Returns
TypeDescription
CategoryStats

The categoryStats.

getCategoryStatsOrBuilder()

public CategoryStatsOrBuilder getCategoryStatsOrBuilder()

The statistics for CATEGORY DataType.

.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;

Returns
TypeDescription
CategoryStatsOrBuilder

getDefaultInstanceForType()

public DataStats getDefaultInstanceForType()
Returns
TypeDescription
DataStats

getDistinctValueCount()

public long getDistinctValueCount()

The number of distinct values.

int64 distinct_value_count = 1;

Returns
TypeDescription
long

The distinctValueCount.

getFloat64Stats()

public Float64Stats getFloat64Stats()

The statistics for FLOAT64 DataType.

.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;

Returns
TypeDescription
Float64Stats

The float64Stats.

getFloat64StatsOrBuilder()

public Float64StatsOrBuilder getFloat64StatsOrBuilder()

The statistics for FLOAT64 DataType.

.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;

Returns
TypeDescription
Float64StatsOrBuilder

getNullValueCount()

public long getNullValueCount()

The number of values that are null.

int64 null_value_count = 2;

Returns
TypeDescription
long

The nullValueCount.

getParserForType()

public Parser<DataStats> getParserForType()
Returns
TypeDescription
Parser<DataStats>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStatsCase()

public DataStats.StatsCase getStatsCase()
Returns
TypeDescription
DataStats.StatsCase

getStringStats()

public StringStats getStringStats()

The statistics for STRING DataType.

.google.cloud.automl.v1beta1.StringStats string_stats = 4;

Returns
TypeDescription
StringStats

The stringStats.

getStringStatsOrBuilder()

public StringStatsOrBuilder getStringStatsOrBuilder()

The statistics for STRING DataType.

.google.cloud.automl.v1beta1.StringStats string_stats = 4;

Returns
TypeDescription
StringStatsOrBuilder

getStructStats()

public StructStats getStructStats()

The statistics for STRUCT DataType.

.google.cloud.automl.v1beta1.StructStats struct_stats = 7;

Returns
TypeDescription
StructStats

The structStats.

getStructStatsOrBuilder()

public StructStatsOrBuilder getStructStatsOrBuilder()

The statistics for STRUCT DataType.

.google.cloud.automl.v1beta1.StructStats struct_stats = 7;

Returns
TypeDescription
StructStatsOrBuilder

getTimestampStats()

public TimestampStats getTimestampStats()

The statistics for TIMESTAMP DataType.

.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;

Returns
TypeDescription
TimestampStats

The timestampStats.

getTimestampStatsOrBuilder()

public TimestampStatsOrBuilder getTimestampStatsOrBuilder()

The statistics for TIMESTAMP DataType.

.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;

Returns
TypeDescription
TimestampStatsOrBuilder

getValidValueCount()

public long getValidValueCount()

The number of values that are valid.

int64 valid_value_count = 9;

Returns
TypeDescription
long

The validValueCount.

hasArrayStats()

public boolean hasArrayStats()

The statistics for ARRAY DataType.

.google.cloud.automl.v1beta1.ArrayStats array_stats = 6;

Returns
TypeDescription
boolean

Whether the arrayStats field is set.

hasCategoryStats()

public boolean hasCategoryStats()

The statistics for CATEGORY DataType.

.google.cloud.automl.v1beta1.CategoryStats category_stats = 8;

Returns
TypeDescription
boolean

Whether the categoryStats field is set.

hasFloat64Stats()

public boolean hasFloat64Stats()

The statistics for FLOAT64 DataType.

.google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;

Returns
TypeDescription
boolean

Whether the float64Stats field is set.

hasStringStats()

public boolean hasStringStats()

The statistics for STRING DataType.

.google.cloud.automl.v1beta1.StringStats string_stats = 4;

Returns
TypeDescription
boolean

Whether the stringStats field is set.

hasStructStats()

public boolean hasStructStats()

The statistics for STRUCT DataType.

.google.cloud.automl.v1beta1.StructStats struct_stats = 7;

Returns
TypeDescription
boolean

Whether the structStats field is set.

hasTimestampStats()

public boolean hasTimestampStats()

The statistics for TIMESTAMP DataType.

.google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;

Returns
TypeDescription
boolean

Whether the timestampStats field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DataStats.Builder newBuilderForType()
Returns
TypeDescription
DataStats.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DataStats.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DataStats.Builder toBuilder()
Returns
TypeDescription
DataStats.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException