Class CategoryStats.Builder (2.10.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats>
Returns
TypeDescription
CategoryStats.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CategoryStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueCategoryStats.SingleCategoryStats
Returns
TypeDescription
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
NameDescription
builderForValueCategoryStats.SingleCategoryStats.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCategoryStats.SingleCategoryStats
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCategoryStats.SingleCategoryStats.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CategoryStats.SingleCategoryStats.Builder

build()

public CategoryStats build()
Returns
TypeDescription
CategoryStats

buildPartial()

public CategoryStats buildPartial()
Returns
TypeDescription
CategoryStats

clear()

public CategoryStats.Builder clear()
Returns
TypeDescription
CategoryStats.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CategoryStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CategoryStats.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CategoryStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CategoryStats.Builder

clone()

public CategoryStats.Builder clone()
Returns
TypeDescription
CategoryStats.Builder
Overrides

getDefaultInstanceForType()

public CategoryStats getDefaultInstanceForType()
Returns
TypeDescription
CategoryStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CategoryStats other)

public CategoryStats.Builder mergeFrom(CategoryStats other)
Parameter
NameDescription
otherCategoryStats
Returns
TypeDescription
CategoryStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CategoryStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CategoryStats.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CategoryStats.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CategoryStats.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CategoryStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CategoryStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CategoryStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CategoryStats.Builder
Overrides

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

public CategoryStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueCategoryStats.SingleCategoryStats
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCategoryStats.SingleCategoryStats.Builder
Returns
TypeDescription
CategoryStats.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CategoryStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CategoryStats.Builder
Overrides