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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.TopNMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SmartReplyMetrics.TopNMetrics build()
Returns
buildPartial()
public SmartReplyMetrics.TopNMetrics buildPartial()
Returns
clear()
public SmartReplyMetrics.TopNMetrics.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SmartReplyMetrics.TopNMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SmartReplyMetrics.TopNMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
clone()
public SmartReplyMetrics.TopNMetrics.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SmartReplyMetrics.TopNMetrics getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SmartReplyMetrics.TopNMetrics other)
public SmartReplyMetrics.TopNMetrics.Builder mergeFrom(SmartReplyMetrics.TopNMetrics other)
Parameter
Returns
public SmartReplyMetrics.TopNMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SmartReplyMetrics.TopNMetrics.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.TopNMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.TopNMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SmartReplyMetrics.TopNMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.TopNMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides