Class StringStats.UnigramStats.Builder (2.45.0)

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

The statistics of a unigram.

Protobuf type google.cloud.automl.v1beta1.StringStats.UnigramStats

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StringStats.UnigramStats build()
Returns
Type Description
StringStats.UnigramStats

buildPartial()

public StringStats.UnigramStats buildPartial()
Returns
Type Description
StringStats.UnigramStats

clear()

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

clearCount()

public StringStats.UnigramStats.Builder clearCount()

The number of occurrences of this unigram in the series.

int64 count = 2;

Returns
Type Description
StringStats.UnigramStats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public StringStats.UnigramStats.Builder clearValue()

The unigram.

string value = 1;

Returns
Type Description
StringStats.UnigramStats.Builder

This builder for chaining.

clone()

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

getCount()

public long getCount()

The number of occurrences of this unigram in the series.

int64 count = 2;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public StringStats.UnigramStats getDefaultInstanceForType()
Returns
Type Description
StringStats.UnigramStats

getDescriptorForType()

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

getValue()

public String getValue()

The unigram.

string value = 1;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The unigram.

string value = 1;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StringStats.UnigramStats other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(long value)

public StringStats.UnigramStats.Builder setCount(long value)

The number of occurrences of this unigram in the series.

int64 count = 2;

Parameter
Name Description
value long

The count to set.

Returns
Type Description
StringStats.UnigramStats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public StringStats.UnigramStats.Builder setValue(String value)

The unigram.

string value = 1;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
StringStats.UnigramStats.Builder

This builder for chaining.

setValueBytes(ByteString value)

public StringStats.UnigramStats.Builder setValueBytes(ByteString value)

The unigram.

string value = 1;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
StringStats.UnigramStats.Builder

This builder for chaining.