Class StringStats.Builder (2.32.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.automl.v1beta1.StringStats.UnigramStats>
Returns
TypeDescription
StringStats.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StringStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueStringStats.UnigramStats
Returns
TypeDescription
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
NameDescription
builderForValueStringStats.UnigramStats.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueStringStats.UnigramStats
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStringStats.UnigramStats.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
StringStats.UnigramStats.Builder

build()

public StringStats build()
Returns
TypeDescription
StringStats

buildPartial()

public StringStats buildPartial()
Returns
TypeDescription
StringStats

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public StringStats getDefaultInstanceForType()
Returns
TypeDescription
StringStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StringStats other)

public StringStats.Builder mergeFrom(StringStats other)
Parameter
NameDescription
otherStringStats
Returns
TypeDescription
StringStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public StringStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueStringStats.UnigramStats
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStringStats.UnigramStats.Builder
Returns
TypeDescription
StringStats.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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