Class StringStats.UnigramStats.Builder

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StringStats.UnigramStats build()
Returns
TypeDescription
StringStats.UnigramStats

buildPartial()

public StringStats.UnigramStats buildPartial()
Returns
TypeDescription
StringStats.UnigramStats

clear()

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

clearCount()

public StringStats.UnigramStats.Builder clearCount()

The number of occurrences of this unigram in the series.

int64 count = 2;

Returns
TypeDescription
StringStats.UnigramStats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public StringStats.UnigramStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StringStats.UnigramStats.Builder
Overrides

clearValue()

public StringStats.UnigramStats.Builder clearValue()

The unigram.

string value = 1;

Returns
TypeDescription
StringStats.UnigramStats.Builder

This builder for chaining.

clone()

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

getCount()

public long getCount()

The number of occurrences of this unigram in the series.

int64 count = 2;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public StringStats.UnigramStats getDefaultInstanceForType()
Returns
TypeDescription
StringStats.UnigramStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValue()

public String getValue()

The unigram.

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The unigram.

string value = 1;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StringStats.UnigramStats other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The count to set.

Returns
TypeDescription
StringStats.UnigramStats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public StringStats.UnigramStats.Builder setValue(String value)

The unigram.

string value = 1;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
StringStats.UnigramStats.Builder

This builder for chaining.

setValueBytes(ByteString value)

public StringStats.UnigramStats.Builder setValueBytes(ByteString value)

The unigram.

string value = 1;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
StringStats.UnigramStats.Builder

This builder for chaining.