Class SmartReplyMetrics.Builder (4.6.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics>
Returns
TypeDescription
SmartReplyMetrics.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSmartReplyMetrics.TopNMetrics
Returns
TypeDescription
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
NameDescription
builderForValueSmartReplyMetrics.TopNMetrics.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSmartReplyMetrics.TopNMetrics
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSmartReplyMetrics.TopNMetrics.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SmartReplyMetrics.TopNMetrics.Builder

build()

public SmartReplyMetrics build()
Returns
TypeDescription
SmartReplyMetrics

buildPartial()

public SmartReplyMetrics buildPartial()
Returns
TypeDescription
SmartReplyMetrics

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SmartReplyMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SmartReplyMetrics.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SmartReplyMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SmartReplyMetrics.Builder

clone()

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

The allowlistCoverage.

getConversationCount()

public long getConversationCount()

Total number of conversations used to generate this metric.

int64 conversation_count = 3;

Returns
TypeDescription
long

The conversationCount.

getDefaultInstanceForType()

public SmartReplyMetrics getDefaultInstanceForType()
Returns
TypeDescription
SmartReplyMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetricsOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SmartReplyMetrics other)

public SmartReplyMetrics.Builder mergeFrom(SmartReplyMetrics other)
Parameter
NameDescription
otherSmartReplyMetrics
Returns
TypeDescription
SmartReplyMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SmartReplyMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SmartReplyMetrics.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SmartReplyMetrics.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SmartReplyMetrics.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuefloat

The allowlistCoverage to set.

Returns
TypeDescription
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
NameDescription
valuelong

The conversationCount to set.

Returns
TypeDescription
SmartReplyMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SmartReplyMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SmartReplyMetrics.Builder
Overrides

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

public SmartReplyMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSmartReplyMetrics.TopNMetrics
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSmartReplyMetrics.TopNMetrics.Builder
Returns
TypeDescription
SmartReplyMetrics.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SmartReplyMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SmartReplyMetrics.Builder
Overrides