public static final class SmartReplyMetrics.Builder extends GeneratedMessageV3.Builder<SmartReplyMetrics.Builder> implements SmartReplyMetricsOrBuilder
The evaluation metrics for smart reply model.
Protobuf type google.cloud.dialogflow.v2.SmartReplyMetrics
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
addAllTopNMetrics(Iterable<? extends SmartReplyMetrics.TopNMetrics> values)
public SmartReplyMetrics.Builder addAllTopNMetrics(Iterable<? extends SmartReplyMetrics.TopNMetrics> values)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addTopNMetrics(SmartReplyMetrics.TopNMetrics value)
public SmartReplyMetrics.Builder addTopNMetrics(SmartReplyMetrics.TopNMetrics value)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
addTopNMetrics(SmartReplyMetrics.TopNMetrics.Builder builderForValue)
public SmartReplyMetrics.Builder addTopNMetrics(SmartReplyMetrics.TopNMetrics.Builder builderForValue)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
addTopNMetrics(int index, SmartReplyMetrics.TopNMetrics value)
public SmartReplyMetrics.Builder addTopNMetrics(int index, SmartReplyMetrics.TopNMetrics value)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
addTopNMetrics(int index, SmartReplyMetrics.TopNMetrics.Builder builderForValue)
public SmartReplyMetrics.Builder addTopNMetrics(int index, SmartReplyMetrics.TopNMetrics.Builder builderForValue)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
addTopNMetricsBuilder()
public SmartReplyMetrics.TopNMetrics.Builder addTopNMetricsBuilder()
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
addTopNMetricsBuilder(int index)
public SmartReplyMetrics.TopNMetrics.Builder addTopNMetricsBuilder(int index)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Parameter |
Name |
Description |
index |
int
|
build()
public SmartReplyMetrics build()
buildPartial()
public SmartReplyMetrics buildPartial()
clear()
public SmartReplyMetrics.Builder clear()
Overrides
clearAllowlistCoverage()
public SmartReplyMetrics.Builder clearAllowlistCoverage()
Percentage of target participant messages in the evaluation dataset for
which similar messages have appeared at least once in the allowlist. Should
be [0, 1].
float allowlist_coverage = 1;
clearConversationCount()
public SmartReplyMetrics.Builder clearConversationCount()
Total number of conversations used to generate this metric.
int64 conversation_count = 3;
clearField(Descriptors.FieldDescriptor field)
public SmartReplyMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SmartReplyMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTopNMetrics()
public SmartReplyMetrics.Builder clearTopNMetrics()
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
clone()
public SmartReplyMetrics.Builder clone()
Overrides
getAllowlistCoverage()
public float getAllowlistCoverage()
Percentage of target participant messages in the evaluation dataset for
which similar messages have appeared at least once in the allowlist. Should
be [0, 1].
float allowlist_coverage = 1;
Returns |
Type |
Description |
float |
The allowlistCoverage.
|
getConversationCount()
public long getConversationCount()
Total number of conversations used to generate this metric.
int64 conversation_count = 3;
Returns |
Type |
Description |
long |
The conversationCount.
|
getDefaultInstanceForType()
public SmartReplyMetrics getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTopNMetrics(int index)
public SmartReplyMetrics.TopNMetrics getTopNMetrics(int index)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Parameter |
Name |
Description |
index |
int
|
getTopNMetricsBuilder(int index)
public SmartReplyMetrics.TopNMetrics.Builder getTopNMetricsBuilder(int index)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Parameter |
Name |
Description |
index |
int
|
getTopNMetricsBuilderList()
public List<SmartReplyMetrics.TopNMetrics.Builder> getTopNMetricsBuilderList()
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
getTopNMetricsCount()
public int getTopNMetricsCount()
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Returns |
Type |
Description |
int |
|
getTopNMetricsList()
public List<SmartReplyMetrics.TopNMetrics> getTopNMetricsList()
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
getTopNMetricsOrBuilder(int index)
public SmartReplyMetrics.TopNMetricsOrBuilder getTopNMetricsOrBuilder(int index)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Parameter |
Name |
Description |
index |
int
|
getTopNMetricsOrBuilderList()
public List<? extends SmartReplyMetrics.TopNMetricsOrBuilder> getTopNMetricsOrBuilderList()
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetricsOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SmartReplyMetrics other)
public SmartReplyMetrics.Builder mergeFrom(SmartReplyMetrics other)
public SmartReplyMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SmartReplyMetrics.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeTopNMetrics(int index)
public SmartReplyMetrics.Builder removeTopNMetrics(int index)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
Parameter |
Name |
Description |
index |
int
|
setAllowlistCoverage(float value)
public SmartReplyMetrics.Builder setAllowlistCoverage(float value)
Percentage of target participant messages in the evaluation dataset for
which similar messages have appeared at least once in the allowlist. Should
be [0, 1].
float allowlist_coverage = 1;
Parameter |
Name |
Description |
value |
float
The allowlistCoverage to set.
|
setConversationCount(long value)
public SmartReplyMetrics.Builder setConversationCount(long value)
Total number of conversations used to generate this metric.
int64 conversation_count = 3;
Parameter |
Name |
Description |
value |
long
The conversationCount to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SmartReplyMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTopNMetrics(int index, SmartReplyMetrics.TopNMetrics value)
public SmartReplyMetrics.Builder setTopNMetrics(int index, SmartReplyMetrics.TopNMetrics value)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
setTopNMetrics(int index, SmartReplyMetrics.TopNMetrics.Builder builderForValue)
public SmartReplyMetrics.Builder setTopNMetrics(int index, SmartReplyMetrics.TopNMetrics.Builder builderForValue)
Metrics of top n smart replies, sorted by [TopNMetric.n][].
repeated .google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics top_n_metrics = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides