Class SmartReplyMetrics.TopNMetrics (4.6.0)

public static final class SmartReplyMetrics.TopNMetrics extends GeneratedMessageV3 implements SmartReplyMetrics.TopNMetricsOrBuilder

Evaluation metrics when retrieving n smart replies with the model.

Protobuf type google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics

Static Fields

N_FIELD_NUMBER

public static final int N_FIELD_NUMBER
Field Value
TypeDescription
int

RECALL_FIELD_NUMBER

public static final int RECALL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SmartReplyMetrics.TopNMetrics getDefaultInstance()
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics

getDescriptor()

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

newBuilder()

public static SmartReplyMetrics.TopNMetrics.Builder newBuilder()
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics.Builder

newBuilder(SmartReplyMetrics.TopNMetrics prototype)

public static SmartReplyMetrics.TopNMetrics.Builder newBuilder(SmartReplyMetrics.TopNMetrics prototype)
Parameter
NameDescription
prototypeSmartReplyMetrics.TopNMetrics
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics.Builder

parseDelimitedFrom(InputStream input)

public static SmartReplyMetrics.TopNMetrics parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SmartReplyMetrics.TopNMetrics parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SmartReplyMetrics.TopNMetrics parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SmartReplyMetrics.TopNMetrics parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SmartReplyMetrics.TopNMetrics parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SmartReplyMetrics.TopNMetrics> parser()
Returns
TypeDescription
Parser<TopNMetrics>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SmartReplyMetrics.TopNMetrics getDefaultInstanceForType()
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics

getN()

public int getN()

Number of retrieved smart replies. For example, when n is 3, this evaluation contains metrics for when Dialogflow retrieves 3 smart replies with the model.

int32 n = 1;

Returns
TypeDescription
int

The n.

getParserForType()

public Parser<SmartReplyMetrics.TopNMetrics> getParserForType()
Returns
TypeDescription
Parser<TopNMetrics>
Overrides

getRecall()

public float getRecall()

Defined as number of queries whose top n smart replies have at least one similar (token match similarity above the defined threshold) reply as the real reply divided by number of queries with at least one smart reply. Value ranges from 0.0 to 1.0 inclusive.

float recall = 2;

Returns
TypeDescription
float

The recall.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SmartReplyMetrics.TopNMetrics.Builder toBuilder()
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics.Builder

writeTo(CodedOutputStream output)

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