Class CategoryStats.Builder (2.42.0)

public static final class CategoryStats.Builder extends GeneratedMessageV3.Builder<CategoryStats.Builder> implements CategoryStatsOrBuilder

The data statistics of a series of CATEGORY values.

Protobuf type google.cloud.automl.v1beta1.CategoryStats

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTopCategoryStats(Iterable<? extends CategoryStats.SingleCategoryStats> values)

public CategoryStats.Builder addAllTopCategoryStats(Iterable<? extends CategoryStats.SingleCategoryStats> values)

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats>
Returns
Type Description
CategoryStats.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CategoryStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CategoryStats.Builder
Overrides

addTopCategoryStats(CategoryStats.SingleCategoryStats value)

public CategoryStats.Builder addTopCategoryStats(CategoryStats.SingleCategoryStats value)

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Parameter
Name Description
value CategoryStats.SingleCategoryStats
Returns
Type Description
CategoryStats.Builder

addTopCategoryStats(CategoryStats.SingleCategoryStats.Builder builderForValue)

public CategoryStats.Builder addTopCategoryStats(CategoryStats.SingleCategoryStats.Builder builderForValue)

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Parameter
Name Description
builderForValue CategoryStats.SingleCategoryStats.Builder
Returns
Type Description
CategoryStats.Builder

addTopCategoryStats(int index, CategoryStats.SingleCategoryStats value)

public CategoryStats.Builder addTopCategoryStats(int index, CategoryStats.SingleCategoryStats value)

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Parameters
Name Description
index int
value CategoryStats.SingleCategoryStats
Returns
Type Description
CategoryStats.Builder

addTopCategoryStats(int index, CategoryStats.SingleCategoryStats.Builder builderForValue)

public CategoryStats.Builder addTopCategoryStats(int index, CategoryStats.SingleCategoryStats.Builder builderForValue)

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Parameters
Name Description
index int
builderForValue CategoryStats.SingleCategoryStats.Builder
Returns
Type Description
CategoryStats.Builder

addTopCategoryStatsBuilder()

public CategoryStats.SingleCategoryStats.Builder addTopCategoryStatsBuilder()

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Returns
Type Description
CategoryStats.SingleCategoryStats.Builder

addTopCategoryStatsBuilder(int index)

public CategoryStats.SingleCategoryStats.Builder addTopCategoryStatsBuilder(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
Name Description
index int
Returns
Type Description
CategoryStats.SingleCategoryStats.Builder

build()

public CategoryStats build()
Returns
Type Description
CategoryStats

buildPartial()

public CategoryStats buildPartial()
Returns
Type Description
CategoryStats

clear()

public CategoryStats.Builder clear()
Returns
Type Description
CategoryStats.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CategoryStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CategoryStats.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CategoryStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CategoryStats.Builder
Overrides

clearTopCategoryStats()

public CategoryStats.Builder clearTopCategoryStats()

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Returns
Type Description
CategoryStats.Builder

clone()

public CategoryStats.Builder clone()
Returns
Type Description
CategoryStats.Builder
Overrides

getDefaultInstanceForType()

public CategoryStats getDefaultInstanceForType()
Returns
Type Description
CategoryStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
CategoryStats.SingleCategoryStats

getTopCategoryStatsBuilder(int index)

public CategoryStats.SingleCategoryStats.Builder getTopCategoryStatsBuilder(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
Name Description
index int
Returns
Type Description
CategoryStats.SingleCategoryStats.Builder

getTopCategoryStatsBuilderList()

public List<CategoryStats.SingleCategoryStats.Builder> getTopCategoryStatsBuilderList()

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Returns
Type Description
List<Builder>

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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CategoryStats other)

public CategoryStats.Builder mergeFrom(CategoryStats other)
Parameter
Name Description
other CategoryStats
Returns
Type Description
CategoryStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CategoryStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CategoryStats.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CategoryStats.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CategoryStats.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CategoryStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CategoryStats.Builder
Overrides

removeTopCategoryStats(int index)

public CategoryStats.Builder removeTopCategoryStats(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
Name Description
index int
Returns
Type Description
CategoryStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CategoryStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CategoryStats.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CategoryStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CategoryStats.Builder
Overrides

setTopCategoryStats(int index, CategoryStats.SingleCategoryStats value)

public CategoryStats.Builder setTopCategoryStats(int index, CategoryStats.SingleCategoryStats value)

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Parameters
Name Description
index int
value CategoryStats.SingleCategoryStats
Returns
Type Description
CategoryStats.Builder

setTopCategoryStats(int index, CategoryStats.SingleCategoryStats.Builder builderForValue)

public CategoryStats.Builder setTopCategoryStats(int index, CategoryStats.SingleCategoryStats.Builder builderForValue)

The statistics of the top 20 CATEGORY values, ordered by

count.

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

Parameters
Name Description
index int
builderForValue CategoryStats.SingleCategoryStats.Builder
Returns
Type Description
CategoryStats.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CategoryStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CategoryStats.Builder
Overrides