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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Returns
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
Returns
build()
public SmartReplyMetrics build()
Returns
buildPartial()
public SmartReplyMetrics buildPartial()
Returns
clear()
public SmartReplyMetrics.Builder clear()
Returns
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;
Returns
clearConversationCount()
public SmartReplyMetrics.Builder clearConversationCount()
Total number of conversations used to generate this metric.
int64 conversation_count = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public SmartReplyMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SmartReplyMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
clone()
public SmartReplyMetrics.Builder clone()
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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;
Returns
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
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;
Returns
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
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SmartReplyMetrics other)
public SmartReplyMetrics.Builder mergeFrom(SmartReplyMetrics other)
Parameter
Returns
public SmartReplyMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SmartReplyMetrics.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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.
|
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SmartReplyMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SmartReplyMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SmartReplyMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides