Class StringStats.Builder (2.49.0)

public static final class StringStats.Builder extends GeneratedMessageV3.Builder<StringStats.Builder> implements StringStatsOrBuilder

The data statistics of a series of STRING values.

Protobuf type google.cloud.automl.v1beta1.StringStats

Static Methods

getDescriptor()

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

Methods

addAllTopUnigramStats(Iterable<? extends StringStats.UnigramStats> values)

public StringStats.Builder addAllTopUnigramStats(Iterable<? extends StringStats.UnigramStats> values)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTopUnigramStats(StringStats.UnigramStats value)

public StringStats.Builder addTopUnigramStats(StringStats.UnigramStats value)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameter
Name Description
value StringStats.UnigramStats
Returns
Type Description
StringStats.Builder

addTopUnigramStats(StringStats.UnigramStats.Builder builderForValue)

public StringStats.Builder addTopUnigramStats(StringStats.UnigramStats.Builder builderForValue)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameter
Name Description
builderForValue StringStats.UnigramStats.Builder
Returns
Type Description
StringStats.Builder

addTopUnigramStats(int index, StringStats.UnigramStats value)

public StringStats.Builder addTopUnigramStats(int index, StringStats.UnigramStats value)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameters
Name Description
index int
value StringStats.UnigramStats
Returns
Type Description
StringStats.Builder

addTopUnigramStats(int index, StringStats.UnigramStats.Builder builderForValue)

public StringStats.Builder addTopUnigramStats(int index, StringStats.UnigramStats.Builder builderForValue)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameters
Name Description
index int
builderForValue StringStats.UnigramStats.Builder
Returns
Type Description
StringStats.Builder

addTopUnigramStatsBuilder()

public StringStats.UnigramStats.Builder addTopUnigramStatsBuilder()

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Returns
Type Description
StringStats.UnigramStats.Builder

addTopUnigramStatsBuilder(int index)

public StringStats.UnigramStats.Builder addTopUnigramStatsBuilder(int index)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameter
Name Description
index int
Returns
Type Description
StringStats.UnigramStats.Builder

build()

public StringStats build()
Returns
Type Description
StringStats

buildPartial()

public StringStats buildPartial()
Returns
Type Description
StringStats

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTopUnigramStats()

public StringStats.Builder clearTopUnigramStats()

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Returns
Type Description
StringStats.Builder

clone()

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

getDefaultInstanceForType()

public StringStats getDefaultInstanceForType()
Returns
Type Description
StringStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTopUnigramStats(int index)

public StringStats.UnigramStats getTopUnigramStats(int index)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameter
Name Description
index int
Returns
Type Description
StringStats.UnigramStats

getTopUnigramStatsBuilder(int index)

public StringStats.UnigramStats.Builder getTopUnigramStatsBuilder(int index)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameter
Name Description
index int
Returns
Type Description
StringStats.UnigramStats.Builder

getTopUnigramStatsBuilderList()

public List<StringStats.UnigramStats.Builder> getTopUnigramStatsBuilderList()

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Returns
Type Description
List<Builder>

getTopUnigramStatsCount()

public int getTopUnigramStatsCount()

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Returns
Type Description
int

getTopUnigramStatsList()

public List<StringStats.UnigramStats> getTopUnigramStatsList()

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Returns
Type Description
List<UnigramStats>

getTopUnigramStatsOrBuilder(int index)

public StringStats.UnigramStatsOrBuilder getTopUnigramStatsOrBuilder(int index)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameter
Name Description
index int
Returns
Type Description
StringStats.UnigramStatsOrBuilder

getTopUnigramStatsOrBuilderList()

public List<? extends StringStats.UnigramStatsOrBuilder> getTopUnigramStatsOrBuilderList()

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Returns
Type Description
List<? extends com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StringStats other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTopUnigramStats(int index)

public StringStats.Builder removeTopUnigramStats(int index)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameter
Name Description
index int
Returns
Type Description
StringStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTopUnigramStats(int index, StringStats.UnigramStats value)

public StringStats.Builder setTopUnigramStats(int index, StringStats.UnigramStats value)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameters
Name Description
index int
value StringStats.UnigramStats
Returns
Type Description
StringStats.Builder

setTopUnigramStats(int index, StringStats.UnigramStats.Builder builderForValue)

public StringStats.Builder setTopUnigramStats(int index, StringStats.UnigramStats.Builder builderForValue)

The statistics of the top 20 unigrams, ordered by count.

repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1;

Parameters
Name Description
index int
builderForValue StringStats.UnigramStats.Builder
Returns
Type Description
StringStats.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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