Class SmartReplyMetrics.Builder (4.54.0)

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
Type Description
Descriptor

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
Type Description
SmartReplyMetrics.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SmartReplyMetrics.Builder
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
Name Description
value SmartReplyMetrics.TopNMetrics
Returns
Type Description
SmartReplyMetrics.Builder

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
Name Description
builderForValue SmartReplyMetrics.TopNMetrics.Builder
Returns
Type Description
SmartReplyMetrics.Builder

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
Name Description
index int
value SmartReplyMetrics.TopNMetrics
Returns
Type Description
SmartReplyMetrics.Builder

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
Name Description
index int
builderForValue SmartReplyMetrics.TopNMetrics.Builder
Returns
Type Description
SmartReplyMetrics.Builder

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
Type Description
SmartReplyMetrics.TopNMetrics.Builder

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
Returns
Type Description
SmartReplyMetrics.TopNMetrics.Builder

build()

public SmartReplyMetrics build()
Returns
Type Description
SmartReplyMetrics

buildPartial()

public SmartReplyMetrics buildPartial()
Returns
Type Description
SmartReplyMetrics

clear()

public SmartReplyMetrics.Builder clear()
Returns
Type Description
SmartReplyMetrics.Builder
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
Type Description
SmartReplyMetrics.Builder

This builder for chaining.

clearConversationCount()

public SmartReplyMetrics.Builder clearConversationCount()

Total number of conversations used to generate this metric.

int64 conversation_count = 3;

Returns
Type Description
SmartReplyMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SmartReplyMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SmartReplyMetrics.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SmartReplyMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SmartReplyMetrics.Builder
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
Type Description
SmartReplyMetrics.Builder

clone()

public SmartReplyMetrics.Builder clone()
Returns
Type Description
SmartReplyMetrics.Builder
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
Type Description
SmartReplyMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
SmartReplyMetrics.TopNMetrics

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
Returns
Type Description
SmartReplyMetrics.TopNMetrics.Builder

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
Type Description
List<Builder>

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;

Returns
Type Description
List<TopNMetrics>

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
Returns
Type Description
SmartReplyMetrics.TopNMetricsOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SmartReplyMetrics other)

public SmartReplyMetrics.Builder mergeFrom(SmartReplyMetrics other)
Parameter
Name Description
other SmartReplyMetrics
Returns
Type Description
SmartReplyMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SmartReplyMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SmartReplyMetrics.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SmartReplyMetrics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SmartReplyMetrics.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SmartReplyMetrics.Builder
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
Returns
Type Description
SmartReplyMetrics.Builder

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
Type Description
SmartReplyMetrics.Builder

This builder for chaining.

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
Type Description
SmartReplyMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SmartReplyMetrics.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SmartReplyMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SmartReplyMetrics.Builder
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
Name Description
index int
value SmartReplyMetrics.TopNMetrics
Returns
Type Description
SmartReplyMetrics.Builder

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
Name Description
index int
builderForValue SmartReplyMetrics.TopNMetrics.Builder
Returns
Type Description
SmartReplyMetrics.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SmartReplyMetrics.Builder
Overrides