Class StringStats.UnigramStats (2.7.0)

public static final class StringStats.UnigramStats extends GeneratedMessageV3 implements StringStats.UnigramStatsOrBuilder

The statistics of a unigram.

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

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StringStats.UnigramStats getDefaultInstance()
Returns
TypeDescription
StringStats.UnigramStats

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static StringStats.UnigramStats.Builder newBuilder()
Returns
TypeDescription
StringStats.UnigramStats.Builder

newBuilder(StringStats.UnigramStats prototype)

public static StringStats.UnigramStats.Builder newBuilder(StringStats.UnigramStats prototype)
Parameter
NameDescription
prototypeStringStats.UnigramStats
Returns
TypeDescription
StringStats.UnigramStats.Builder

parseDelimitedFrom(InputStream input)

public static StringStats.UnigramStats parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StringStats.UnigramStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StringStats.UnigramStats parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StringStats.UnigramStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StringStats.UnigramStats parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StringStats.UnigramStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StringStats.UnigramStats parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StringStats.UnigramStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StringStats.UnigramStats parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StringStats.UnigramStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StringStats.UnigramStats parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StringStats.UnigramStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StringStats.UnigramStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StringStats.UnigramStats> parser()
Returns
TypeDescription
Parser<UnigramStats>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<StringStats.UnigramStats> getParserForType()
Returns
TypeDescription
Parser<UnigramStats>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StringStats.UnigramStats.Builder newBuilderForType()
Returns
TypeDescription
StringStats.UnigramStats.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StringStats.UnigramStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StringStats.UnigramStats.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StringStats.UnigramStats.Builder toBuilder()
Returns
TypeDescription
StringStats.UnigramStats.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException