Class CategoryStats.SingleCategoryStats (2.8.0)

public static final class CategoryStats.SingleCategoryStats extends GeneratedMessageV3 implements CategoryStats.SingleCategoryStatsOrBuilder

The statistics of a single CATEGORY value.

Protobuf type google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CategoryStats.SingleCategoryStats

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 CategoryStats.SingleCategoryStats getDefaultInstance()
Returns
TypeDescription
CategoryStats.SingleCategoryStats

getDescriptor()

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

newBuilder()

public static CategoryStats.SingleCategoryStats.Builder newBuilder()
Returns
TypeDescription
CategoryStats.SingleCategoryStats.Builder

newBuilder(CategoryStats.SingleCategoryStats prototype)

public static CategoryStats.SingleCategoryStats.Builder newBuilder(CategoryStats.SingleCategoryStats prototype)
Parameter
NameDescription
prototypeCategoryStats.SingleCategoryStats
Returns
TypeDescription
CategoryStats.SingleCategoryStats.Builder

parseDelimitedFrom(InputStream input)

public static CategoryStats.SingleCategoryStats parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CategoryStats.SingleCategoryStats
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CategoryStats.SingleCategoryStats parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CategoryStats.SingleCategoryStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CategoryStats.SingleCategoryStats parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CategoryStats.SingleCategoryStats
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CategoryStats.SingleCategoryStats parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CategoryStats.SingleCategoryStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CategoryStats.SingleCategoryStats parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CategoryStats.SingleCategoryStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CategoryStats.SingleCategoryStats> parser()
Returns
TypeDescription
Parser<SingleCategoryStats>

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 value in the series.

int64 count = 2;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public CategoryStats.SingleCategoryStats getDefaultInstanceForType()
Returns
TypeDescription
CategoryStats.SingleCategoryStats

getParserForType()

public Parser<CategoryStats.SingleCategoryStats> getParserForType()
Returns
TypeDescription
Parser<SingleCategoryStats>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValue()

public String getValue()

The CATEGORY value.

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The CATEGORY value.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CategoryStats.SingleCategoryStats.Builder toBuilder()
Returns
TypeDescription
CategoryStats.SingleCategoryStats.Builder

writeTo(CodedOutputStream output)

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