public static final class SmartReplyMetrics.TopNMetrics.Builder extends GeneratedMessageV3.Builder<SmartReplyMetrics.TopNMetrics.Builder> implements SmartReplyMetrics.TopNMetricsOrBuilder
Evaluation metrics when retrieving n
smart replies with the model.
Protobuf type google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.TopNMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SmartReplyMetrics.TopNMetrics build()
buildPartial()
public SmartReplyMetrics.TopNMetrics buildPartial()
clear()
public SmartReplyMetrics.TopNMetrics.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SmartReplyMetrics.TopNMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearN()
public SmartReplyMetrics.TopNMetrics.Builder clearN()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public SmartReplyMetrics.TopNMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRecall()
public SmartReplyMetrics.TopNMetrics.Builder clearRecall()
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;
clone()
public SmartReplyMetrics.TopNMetrics.Builder clone()
Overrides
getDefaultInstanceForType()
public SmartReplyMetrics.TopNMetrics getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
Type |
Description |
int |
The n.
|
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 |
Type |
Description |
float |
The recall.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SmartReplyMetrics.TopNMetrics other)
public SmartReplyMetrics.TopNMetrics.Builder mergeFrom(SmartReplyMetrics.TopNMetrics other)
public SmartReplyMetrics.TopNMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SmartReplyMetrics.TopNMetrics.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.TopNMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.TopNMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setN(int value)
public SmartReplyMetrics.TopNMetrics.Builder setN(int value)
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;
Parameter |
Name |
Description |
value |
int
The n to set.
|
setRecall(float value)
public SmartReplyMetrics.TopNMetrics.Builder setRecall(float value)
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;
Parameter |
Name |
Description |
value |
float
The recall to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SmartReplyMetrics.TopNMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.TopNMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides