Class ConversationModelEvaluation.Builder (4.47.0)

public static final class ConversationModelEvaluation.Builder extends GeneratedMessageV3.Builder<ConversationModelEvaluation.Builder> implements ConversationModelEvaluationOrBuilder

Represents evaluation result of a conversation model.

Protobuf type google.cloud.dialogflow.v2.ConversationModelEvaluation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationModelEvaluation build()
Returns
TypeDescription
ConversationModelEvaluation

buildPartial()

public ConversationModelEvaluation buildPartial()
Returns
TypeDescription
ConversationModelEvaluation

clear()

public ConversationModelEvaluation.Builder clear()
Returns
TypeDescription
ConversationModelEvaluation.Builder
Overrides

clearCreateTime()

public ConversationModelEvaluation.Builder clearCreateTime()

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ConversationModelEvaluation.Builder

clearDisplayName()

public ConversationModelEvaluation.Builder clearDisplayName()

Optional. The display name of the model evaluation. At most 64 bytes long.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

clearEvaluationConfig()

public ConversationModelEvaluation.Builder clearEvaluationConfig()

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ConversationModelEvaluation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public ConversationModelEvaluation.Builder clearMetrics()
Returns
TypeDescription
ConversationModelEvaluation.Builder

clearName()

public ConversationModelEvaluation.Builder clearName()

The resource name of the evaluation. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>/evaluations/<Evaluation ID>

string name = 1;

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationModelEvaluation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConversationModelEvaluation.Builder
Overrides

clearRawHumanEvalTemplateCsv()

public ConversationModelEvaluation.Builder clearRawHumanEvalTemplateCsv()

Output only. Human eval template in csv format. It tooks real-world conversations provided through input dataset, generates example suggestions for customer to verify quality of the model. For Smart Reply, the generated csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest messages in the conversation prior to the current suggestion. Q1: "Would you send it as the next message of agent?" Evaluated based on whether the suggest is appropriate to be sent by agent in current context. Q2: "Does the suggestion move the conversation closer to resolution?" Evaluated based on whether the suggestion provide solutions, or answers customer's question or collect information from customer to resolve the customer's issue. Actual reply column contains the actual agent reply sent in the context.

string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

clearSmartReplyMetrics()

public ConversationModelEvaluation.Builder clearSmartReplyMetrics()

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ConversationModelEvaluation.Builder

clone()

public ConversationModelEvaluation.Builder clone()
Returns
TypeDescription
ConversationModelEvaluation.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ConversationModelEvaluation getDefaultInstanceForType()
Returns
TypeDescription
ConversationModelEvaluation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. The display name of the model evaluation. At most 64 bytes long.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the model evaluation. At most 64 bytes long.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for displayName.

getEvaluationConfig()

public EvaluationConfig getEvaluationConfig()

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EvaluationConfig

The evaluationConfig.

getEvaluationConfigBuilder()

public EvaluationConfig.Builder getEvaluationConfigBuilder()

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EvaluationConfig.Builder

getEvaluationConfigOrBuilder()

public EvaluationConfigOrBuilder getEvaluationConfigOrBuilder()

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EvaluationConfigOrBuilder

getMetricsCase()

public ConversationModelEvaluation.MetricsCase getMetricsCase()
Returns
TypeDescription
ConversationModelEvaluation.MetricsCase

getName()

public String getName()

The resource name of the evaluation. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>/evaluations/<Evaluation ID>

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the evaluation. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>/evaluations/<Evaluation ID>

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getRawHumanEvalTemplateCsv()

public String getRawHumanEvalTemplateCsv()

Output only. Human eval template in csv format. It tooks real-world conversations provided through input dataset, generates example suggestions for customer to verify quality of the model. For Smart Reply, the generated csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest messages in the conversation prior to the current suggestion. Q1: "Would you send it as the next message of agent?" Evaluated based on whether the suggest is appropriate to be sent by agent in current context. Q2: "Does the suggestion move the conversation closer to resolution?" Evaluated based on whether the suggestion provide solutions, or answers customer's question or collect information from customer to resolve the customer's issue. Actual reply column contains the actual agent reply sent in the context.

string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The rawHumanEvalTemplateCsv.

getRawHumanEvalTemplateCsvBytes()

public ByteString getRawHumanEvalTemplateCsvBytes()

Output only. Human eval template in csv format. It tooks real-world conversations provided through input dataset, generates example suggestions for customer to verify quality of the model. For Smart Reply, the generated csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest messages in the conversation prior to the current suggestion. Q1: "Would you send it as the next message of agent?" Evaluated based on whether the suggest is appropriate to be sent by agent in current context. Q2: "Does the suggestion move the conversation closer to resolution?" Evaluated based on whether the suggestion provide solutions, or answers customer's question or collect information from customer to resolve the customer's issue. Actual reply column contains the actual agent reply sent in the context.

string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for rawHumanEvalTemplateCsv.

getSmartReplyMetrics()

public SmartReplyMetrics getSmartReplyMetrics()

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SmartReplyMetrics

The smartReplyMetrics.

getSmartReplyMetricsBuilder()

public SmartReplyMetrics.Builder getSmartReplyMetricsBuilder()

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SmartReplyMetrics.Builder

getSmartReplyMetricsOrBuilder()

public SmartReplyMetricsOrBuilder getSmartReplyMetricsOrBuilder()

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SmartReplyMetricsOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEvaluationConfig()

public boolean hasEvaluationConfig()

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the evaluationConfig field is set.

hasSmartReplyMetrics()

public boolean hasSmartReplyMetrics()

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the smartReplyMetrics field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public ConversationModelEvaluation.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ConversationModelEvaluation.Builder

mergeEvaluationConfig(EvaluationConfig value)

public ConversationModelEvaluation.Builder mergeEvaluationConfig(EvaluationConfig value)

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueEvaluationConfig
Returns
TypeDescription
ConversationModelEvaluation.Builder

mergeFrom(ConversationModelEvaluation other)

public ConversationModelEvaluation.Builder mergeFrom(ConversationModelEvaluation other)
Parameter
NameDescription
otherConversationModelEvaluation
Returns
TypeDescription
ConversationModelEvaluation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSmartReplyMetrics(SmartReplyMetrics value)

public ConversationModelEvaluation.Builder mergeSmartReplyMetrics(SmartReplyMetrics value)

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSmartReplyMetrics
Returns
TypeDescription
ConversationModelEvaluation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationModelEvaluation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversationModelEvaluation.Builder
Overrides

setCreateTime(Timestamp value)

public ConversationModelEvaluation.Builder setCreateTime(Timestamp value)

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ConversationModelEvaluation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ConversationModelEvaluation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this model.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ConversationModelEvaluation.Builder

setDisplayName(String value)

public ConversationModelEvaluation.Builder setDisplayName(String value)

Optional. The display name of the model evaluation. At most 64 bytes long.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ConversationModelEvaluation.Builder setDisplayNameBytes(ByteString value)

Optional. The display name of the model evaluation. At most 64 bytes long.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

setEvaluationConfig(EvaluationConfig value)

public ConversationModelEvaluation.Builder setEvaluationConfig(EvaluationConfig value)

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueEvaluationConfig
Returns
TypeDescription
ConversationModelEvaluation.Builder

setEvaluationConfig(EvaluationConfig.Builder builderForValue)

public ConversationModelEvaluation.Builder setEvaluationConfig(EvaluationConfig.Builder builderForValue)

Optional. The configuration of the evaluation task.

.google.cloud.dialogflow.v2.EvaluationConfig evaluation_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueEvaluationConfig.Builder
Returns
TypeDescription
ConversationModelEvaluation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ConversationModelEvaluation.Builder setName(String value)

The resource name of the evaluation. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>/evaluations/<Evaluation ID>

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConversationModelEvaluation.Builder setNameBytes(ByteString value)

The resource name of the evaluation. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>/evaluations/<Evaluation ID>

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

setRawHumanEvalTemplateCsv(String value)

public ConversationModelEvaluation.Builder setRawHumanEvalTemplateCsv(String value)

Output only. Human eval template in csv format. It tooks real-world conversations provided through input dataset, generates example suggestions for customer to verify quality of the model. For Smart Reply, the generated csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest messages in the conversation prior to the current suggestion. Q1: "Would you send it as the next message of agent?" Evaluated based on whether the suggest is appropriate to be sent by agent in current context. Q2: "Does the suggestion move the conversation closer to resolution?" Evaluated based on whether the suggestion provide solutions, or answers customer's question or collect information from customer to resolve the customer's issue. Actual reply column contains the actual agent reply sent in the context.

string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The rawHumanEvalTemplateCsv to set.

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

setRawHumanEvalTemplateCsvBytes(ByteString value)

public ConversationModelEvaluation.Builder setRawHumanEvalTemplateCsvBytes(ByteString value)

Output only. Human eval template in csv format. It tooks real-world conversations provided through input dataset, generates example suggestions for customer to verify quality of the model. For Smart Reply, the generated csv file contains columns of Context, (Suggestions,Q1,Q2)*3, Actual reply. Context contains at most 10 latest messages in the conversation prior to the current suggestion. Q1: "Would you send it as the next message of agent?" Evaluated based on whether the suggest is appropriate to be sent by agent in current context. Q2: "Does the suggestion move the conversation closer to resolution?" Evaluated based on whether the suggestion provide solutions, or answers customer's question or collect information from customer to resolve the customer's issue. Actual reply column contains the actual agent reply sent in the context.

string raw_human_eval_template_csv = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for rawHumanEvalTemplateCsv to set.

Returns
TypeDescription
ConversationModelEvaluation.Builder

This builder for chaining.

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

public ConversationModelEvaluation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversationModelEvaluation.Builder
Overrides

setSmartReplyMetrics(SmartReplyMetrics value)

public ConversationModelEvaluation.Builder setSmartReplyMetrics(SmartReplyMetrics value)

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSmartReplyMetrics
Returns
TypeDescription
ConversationModelEvaluation.Builder

setSmartReplyMetrics(SmartReplyMetrics.Builder builderForValue)

public ConversationModelEvaluation.Builder setSmartReplyMetrics(SmartReplyMetrics.Builder builderForValue)

Output only. Only available when model is for smart reply.

.google.cloud.dialogflow.v2.SmartReplyMetrics smart_reply_metrics = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueSmartReplyMetrics.Builder
Returns
TypeDescription
ConversationModelEvaluation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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