Class CategoryStats (2.20.0)

public final class CategoryStats extends GeneratedMessageV3 implements CategoryStatsOrBuilder

The data statistics of a series of CATEGORY values.

Protobuf type google.cloud.automl.v1beta1.CategoryStats

Static Fields

TOP_CATEGORY_STATS_FIELD_NUMBER

public static final int TOP_CATEGORY_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CategoryStats getDefaultInstance()
Returns
TypeDescription
CategoryStats

getDescriptor()

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

newBuilder()

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

newBuilder(CategoryStats prototype)

public static CategoryStats.Builder newBuilder(CategoryStats prototype)
Parameter
NameDescription
prototypeCategoryStats
Returns
TypeDescription
CategoryStats.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CategoryStats getDefaultInstanceForType()
Returns
TypeDescription
CategoryStats

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTopCategoryStats(int index)

public CategoryStats.SingleCategoryStats getTopCategoryStats(int index)

The statistics of the top 20 CATEGORY values, ordered by

count.

repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
CategoryStats.SingleCategoryStats

getTopCategoryStatsCount()

public int getTopCategoryStatsCount()

The statistics of the top 20 CATEGORY values, ordered by

count.

repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1;

Returns
TypeDescription
int

getTopCategoryStatsList()

public List<CategoryStats.SingleCategoryStats> getTopCategoryStatsList()

The statistics of the top 20 CATEGORY values, ordered by

count.

repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1;

Returns
TypeDescription
List<SingleCategoryStats>

getTopCategoryStatsOrBuilder(int index)

public CategoryStats.SingleCategoryStatsOrBuilder getTopCategoryStatsOrBuilder(int index)

The statistics of the top 20 CATEGORY values, ordered by

count.

repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
CategoryStats.SingleCategoryStatsOrBuilder

getTopCategoryStatsOrBuilderList()

public List<? extends CategoryStats.SingleCategoryStatsOrBuilder> getTopCategoryStatsOrBuilderList()

The statistics of the top 20 CATEGORY values, ordered by

count.

repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1;

Returns
TypeDescription
List<? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder>

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 CategoryStats.Builder newBuilderForType()
Returns
TypeDescription
CategoryStats.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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