Class DataStats

  • All Implemented Interfaces:
    DataStatsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class DataStats
    extends com.google.protobuf.GeneratedMessageV3
    implements DataStatsOrBuilder
     The data statistics of a series of values that share the same DataType.
     
    Protobuf type google.cloud.automl.v1beta1.DataStats
    See Also:
    Serialized Form
    • Field Detail

      • FLOAT64_STATS_FIELD_NUMBER

        public static final int FLOAT64_STATS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STRING_STATS_FIELD_NUMBER

        public static final int STRING_STATS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TIMESTAMP_STATS_FIELD_NUMBER

        public static final int TIMESTAMP_STATS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ARRAY_STATS_FIELD_NUMBER

        public static final int ARRAY_STATS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STRUCT_STATS_FIELD_NUMBER

        public static final int STRUCT_STATS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CATEGORY_STATS_FIELD_NUMBER

        public static final int CATEGORY_STATS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISTINCT_VALUE_COUNT_FIELD_NUMBER

        public static final int DISTINCT_VALUE_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NULL_VALUE_COUNT_FIELD_NUMBER

        public static final int NULL_VALUE_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VALID_VALUE_COUNT_FIELD_NUMBER

        public static final int VALID_VALUE_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasFloat64Stats

        public boolean hasFloat64Stats()
         The statistics for FLOAT64 DataType.
         
        .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
        Specified by:
        hasFloat64Stats in interface DataStatsOrBuilder
        Returns:
        Whether the float64Stats field is set.
      • getFloat64Stats

        public Float64Stats getFloat64Stats()
         The statistics for FLOAT64 DataType.
         
        .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3;
        Specified by:
        getFloat64Stats in interface DataStatsOrBuilder
        Returns:
        The float64Stats.
      • hasStringStats

        public boolean hasStringStats()
         The statistics for STRING DataType.
         
        .google.cloud.automl.v1beta1.StringStats string_stats = 4;
        Specified by:
        hasStringStats in interface DataStatsOrBuilder
        Returns:
        Whether the stringStats field is set.
      • getStringStats

        public StringStats getStringStats()
         The statistics for STRING DataType.
         
        .google.cloud.automl.v1beta1.StringStats string_stats = 4;
        Specified by:
        getStringStats in interface DataStatsOrBuilder
        Returns:
        The stringStats.
      • hasTimestampStats

        public boolean hasTimestampStats()
         The statistics for TIMESTAMP DataType.
         
        .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
        Specified by:
        hasTimestampStats in interface DataStatsOrBuilder
        Returns:
        Whether the timestampStats field is set.
      • getTimestampStats

        public TimestampStats getTimestampStats()
         The statistics for TIMESTAMP DataType.
         
        .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5;
        Specified by:
        getTimestampStats in interface DataStatsOrBuilder
        Returns:
        The timestampStats.
      • hasArrayStats

        public boolean hasArrayStats()
         The statistics for ARRAY DataType.
         
        .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
        Specified by:
        hasArrayStats in interface DataStatsOrBuilder
        Returns:
        Whether the arrayStats field is set.
      • getArrayStats

        public ArrayStats getArrayStats()
         The statistics for ARRAY DataType.
         
        .google.cloud.automl.v1beta1.ArrayStats array_stats = 6;
        Specified by:
        getArrayStats in interface DataStatsOrBuilder
        Returns:
        The arrayStats.
      • hasStructStats

        public boolean hasStructStats()
         The statistics for STRUCT DataType.
         
        .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
        Specified by:
        hasStructStats in interface DataStatsOrBuilder
        Returns:
        Whether the structStats field is set.
      • getStructStats

        public StructStats getStructStats()
         The statistics for STRUCT DataType.
         
        .google.cloud.automl.v1beta1.StructStats struct_stats = 7;
        Specified by:
        getStructStats in interface DataStatsOrBuilder
        Returns:
        The structStats.
      • hasCategoryStats

        public boolean hasCategoryStats()
         The statistics for CATEGORY DataType.
         
        .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
        Specified by:
        hasCategoryStats in interface DataStatsOrBuilder
        Returns:
        Whether the categoryStats field is set.
      • getCategoryStats

        public CategoryStats getCategoryStats()
         The statistics for CATEGORY DataType.
         
        .google.cloud.automl.v1beta1.CategoryStats category_stats = 8;
        Specified by:
        getCategoryStats in interface DataStatsOrBuilder
        Returns:
        The categoryStats.
      • getDistinctValueCount

        public long getDistinctValueCount()
         The number of distinct values.
         
        int64 distinct_value_count = 1;
        Specified by:
        getDistinctValueCount in interface DataStatsOrBuilder
        Returns:
        The distinctValueCount.
      • getNullValueCount

        public long getNullValueCount()
         The number of values that are null.
         
        int64 null_value_count = 2;
        Specified by:
        getNullValueCount in interface DataStatsOrBuilder
        Returns:
        The nullValueCount.
      • getValidValueCount

        public long getValidValueCount()
         The number of values that are valid.
         
        int64 valid_value_count = 9;
        Specified by:
        getValidValueCount in interface DataStatsOrBuilder
        Returns:
        The validValueCount.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DataStats parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataStats parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataStats parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataStats parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataStats parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataStats parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataStats parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DataStats.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DataStats.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DataStats.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static DataStats getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<DataStats> parser()
      • getParserForType

        public com.google.protobuf.Parser<DataStats> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DataStats getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder