Class StringStats (2.28.0)

public final class StringStats extends GeneratedMessageV3 implements StringStatsOrBuilder

The data statistics of a series of STRING values.

Protobuf type google.cloud.automl.v1beta1.StringStats

Static Fields

TOP_UNIGRAM_STATS_FIELD_NUMBER

public static final int TOP_UNIGRAM_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StringStats getDefaultInstance()
Returns
TypeDescription
StringStats

getDescriptor()

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

newBuilder()

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

newBuilder(StringStats prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public StringStats getDefaultInstanceForType()
Returns
TypeDescription
StringStats

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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

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>

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.Builder newBuilderForType()
Returns
TypeDescription
StringStats.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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