Class QualityMetrics.TopkMetrics (0.49.0)

public static final class QualityMetrics.TopkMetrics extends GeneratedMessageV3 implements QualityMetrics.TopkMetricsOrBuilder

Stores the metric values at specific top-k levels.

Protobuf type google.cloud.discoveryengine.v1alpha.QualityMetrics.TopkMetrics

Static Fields

TOP_10_FIELD_NUMBER

public static final int TOP_10_FIELD_NUMBER
Field Value
Type Description
int

TOP_1_FIELD_NUMBER

public static final int TOP_1_FIELD_NUMBER
Field Value
Type Description
int

TOP_3_FIELD_NUMBER

public static final int TOP_3_FIELD_NUMBER
Field Value
Type Description
int

TOP_5_FIELD_NUMBER

public static final int TOP_5_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QualityMetrics.TopkMetrics getDefaultInstance()
Returns
Type Description
QualityMetrics.TopkMetrics

getDescriptor()

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

newBuilder()

public static QualityMetrics.TopkMetrics.Builder newBuilder()
Returns
Type Description
QualityMetrics.TopkMetrics.Builder

newBuilder(QualityMetrics.TopkMetrics prototype)

public static QualityMetrics.TopkMetrics.Builder newBuilder(QualityMetrics.TopkMetrics prototype)
Parameter
Name Description
prototype QualityMetrics.TopkMetrics
Returns
Type Description
QualityMetrics.TopkMetrics.Builder

parseDelimitedFrom(InputStream input)

public static QualityMetrics.TopkMetrics parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QualityMetrics.TopkMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static QualityMetrics.TopkMetrics parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QualityMetrics.TopkMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QualityMetrics.TopkMetrics parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QualityMetrics.TopkMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QualityMetrics.TopkMetrics parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QualityMetrics.TopkMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static QualityMetrics.TopkMetrics parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QualityMetrics.TopkMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static QualityMetrics.TopkMetrics parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QualityMetrics.TopkMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QualityMetrics.TopkMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<QualityMetrics.TopkMetrics> parser()
Returns
Type Description
Parser<TopkMetrics>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public QualityMetrics.TopkMetrics getDefaultInstanceForType()
Returns
Type Description
QualityMetrics.TopkMetrics

getParserForType()

public Parser<QualityMetrics.TopkMetrics> getParserForType()
Returns
Type Description
Parser<TopkMetrics>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTop1()

public double getTop1()

The top-1 value.

double top_1 = 1;

Returns
Type Description
double

The top1.

getTop10()

public double getTop10()

The top-10 value.

double top_10 = 4;

Returns
Type Description
double

The top10.

getTop3()

public double getTop3()

The top-3 value.

double top_3 = 2;

Returns
Type Description
double

The top3.

getTop5()

public double getTop5()

The top-5 value.

double top_5 = 3;

Returns
Type Description
double

The top5.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public QualityMetrics.TopkMetrics.Builder newBuilderForType()
Returns
Type Description
QualityMetrics.TopkMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QualityMetrics.TopkMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QualityMetrics.TopkMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public QualityMetrics.TopkMetrics.Builder toBuilder()
Returns
Type Description
QualityMetrics.TopkMetrics.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException