Class ModelEvaluation.Builder (2.41.0)

public static final class ModelEvaluation.Builder extends GeneratedMessageV3.Builder<ModelEvaluation.Builder> implements ModelEvaluationOrBuilder

Evaluation results of a model.

Protobuf type google.cloud.automl.v1.ModelEvaluation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelEvaluation build()
Returns
TypeDescription
ModelEvaluation

buildPartial()

public ModelEvaluation buildPartial()
Returns
TypeDescription
ModelEvaluation

clear()

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

clearAnnotationSpecId()

public ModelEvaluation.Builder clearAnnotationSpecId()

Output only. The ID of the annotation spec that the model evaluation applies to. The The ID is empty for the overall model evaluation. For Tables annotation specs in the dataset do not exist and this ID is always not set, but for CLASSIFICATION prediction_type-s the display_name field is used.

string annotation_spec_id = 2;

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

clearClassificationEvaluationMetrics()

public ModelEvaluation.Builder clearClassificationEvaluationMetrics()

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
TypeDescription
ModelEvaluation.Builder

clearCreateTime()

public ModelEvaluation.Builder clearCreateTime()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
ModelEvaluation.Builder

clearDisplayName()

public ModelEvaluation.Builder clearDisplayName()

Output only. The value of display_name at the moment when the model was trained. Because this field returns a value at model training time, for different models trained from the same dataset, the values may differ, since display names could had been changed between the two model's trainings. For Tables CLASSIFICATION prediction_type-s distinct values of the target column at the moment of the model evaluation are populated here. The display_name is empty for the overall model evaluation.

string display_name = 15;

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

clearEvaluatedExampleCount()

public ModelEvaluation.Builder clearEvaluatedExampleCount()

Output only. The number of examples used for model evaluation, i.e. for which ground truth from time of model creation is compared against the predicted annotations created by the model. For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is the total number of all examples used for evaluation. Otherwise, this is the count of examples that according to the ground truth were annotated by the annotation_spec_id.

int32 evaluated_example_count = 6;

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImageObjectDetectionEvaluationMetrics()

public ModelEvaluation.Builder clearImageObjectDetectionEvaluationMetrics()

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Returns
TypeDescription
ModelEvaluation.Builder

clearMetrics()

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

clearName()

public ModelEvaluation.Builder clearName()

Output only. Resource name of the model evaluation. Format: projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}

string name = 1;

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTextExtractionEvaluationMetrics()

public ModelEvaluation.Builder clearTextExtractionEvaluationMetrics()

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Returns
TypeDescription
ModelEvaluation.Builder

clearTextSentimentEvaluationMetrics()

public ModelEvaluation.Builder clearTextSentimentEvaluationMetrics()

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Returns
TypeDescription
ModelEvaluation.Builder

clearTranslationEvaluationMetrics()

public ModelEvaluation.Builder clearTranslationEvaluationMetrics()

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Returns
TypeDescription
ModelEvaluation.Builder

clone()

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

getAnnotationSpecId()

public String getAnnotationSpecId()

Output only. The ID of the annotation spec that the model evaluation applies to. The The ID is empty for the overall model evaluation. For Tables annotation specs in the dataset do not exist and this ID is always not set, but for CLASSIFICATION prediction_type-s the display_name field is used.

string annotation_spec_id = 2;

Returns
TypeDescription
String

The annotationSpecId.

getAnnotationSpecIdBytes()

public ByteString getAnnotationSpecIdBytes()

Output only. The ID of the annotation spec that the model evaluation applies to. The The ID is empty for the overall model evaluation. For Tables annotation specs in the dataset do not exist and this ID is always not set, but for CLASSIFICATION prediction_type-s the display_name field is used.

string annotation_spec_id = 2;

Returns
TypeDescription
ByteString

The bytes for annotationSpecId.

getClassificationEvaluationMetrics()

public ClassificationEvaluationMetrics getClassificationEvaluationMetrics()

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
TypeDescription
ClassificationEvaluationMetrics

The classificationEvaluationMetrics.

getClassificationEvaluationMetricsBuilder()

public ClassificationEvaluationMetrics.Builder getClassificationEvaluationMetricsBuilder()

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
TypeDescription
ClassificationEvaluationMetrics.Builder

getClassificationEvaluationMetricsOrBuilder()

public ClassificationEvaluationMetricsOrBuilder getClassificationEvaluationMetricsOrBuilder()

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
TypeDescription
ClassificationEvaluationMetricsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ModelEvaluation getDefaultInstanceForType()
Returns
TypeDescription
ModelEvaluation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Output only. The value of display_name at the moment when the model was trained. Because this field returns a value at model training time, for different models trained from the same dataset, the values may differ, since display names could had been changed between the two model's trainings. For Tables CLASSIFICATION prediction_type-s distinct values of the target column at the moment of the model evaluation are populated here. The display_name is empty for the overall model evaluation.

string display_name = 15;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The value of display_name at the moment when the model was trained. Because this field returns a value at model training time, for different models trained from the same dataset, the values may differ, since display names could had been changed between the two model's trainings. For Tables CLASSIFICATION prediction_type-s distinct values of the target column at the moment of the model evaluation are populated here. The display_name is empty for the overall model evaluation.

string display_name = 15;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEvaluatedExampleCount()

public int getEvaluatedExampleCount()

Output only. The number of examples used for model evaluation, i.e. for which ground truth from time of model creation is compared against the predicted annotations created by the model. For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is the total number of all examples used for evaluation. Otherwise, this is the count of examples that according to the ground truth were annotated by the annotation_spec_id.

int32 evaluated_example_count = 6;

Returns
TypeDescription
int

The evaluatedExampleCount.

getImageObjectDetectionEvaluationMetrics()

public ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics()

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Returns
TypeDescription
ImageObjectDetectionEvaluationMetrics

The imageObjectDetectionEvaluationMetrics.

getImageObjectDetectionEvaluationMetricsBuilder()

public ImageObjectDetectionEvaluationMetrics.Builder getImageObjectDetectionEvaluationMetricsBuilder()

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Returns
TypeDescription
ImageObjectDetectionEvaluationMetrics.Builder

getImageObjectDetectionEvaluationMetricsOrBuilder()

public ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder()

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Returns
TypeDescription
ImageObjectDetectionEvaluationMetricsOrBuilder

getMetricsCase()

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

getName()

public String getName()

Output only. Resource name of the model evaluation. Format: projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of the model evaluation. Format: projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getTextExtractionEvaluationMetrics()

public TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics()

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Returns
TypeDescription
TextExtractionEvaluationMetrics

The textExtractionEvaluationMetrics.

getTextExtractionEvaluationMetricsBuilder()

public TextExtractionEvaluationMetrics.Builder getTextExtractionEvaluationMetricsBuilder()

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder

getTextExtractionEvaluationMetricsOrBuilder()

public TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder()

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Returns
TypeDescription
TextExtractionEvaluationMetricsOrBuilder

getTextSentimentEvaluationMetrics()

public TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics()

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Returns
TypeDescription
TextSentimentEvaluationMetrics

The textSentimentEvaluationMetrics.

getTextSentimentEvaluationMetricsBuilder()

public TextSentimentEvaluationMetrics.Builder getTextSentimentEvaluationMetricsBuilder()

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Returns
TypeDescription
TextSentimentEvaluationMetrics.Builder

getTextSentimentEvaluationMetricsOrBuilder()

public TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder()

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Returns
TypeDescription
TextSentimentEvaluationMetricsOrBuilder

getTranslationEvaluationMetrics()

public TranslationEvaluationMetrics getTranslationEvaluationMetrics()

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Returns
TypeDescription
TranslationEvaluationMetrics

The translationEvaluationMetrics.

getTranslationEvaluationMetricsBuilder()

public TranslationEvaluationMetrics.Builder getTranslationEvaluationMetricsBuilder()

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Returns
TypeDescription
TranslationEvaluationMetrics.Builder

getTranslationEvaluationMetricsOrBuilder()

public TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder()

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Returns
TypeDescription
TranslationEvaluationMetricsOrBuilder

hasClassificationEvaluationMetrics()

public boolean hasClassificationEvaluationMetrics()

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
TypeDescription
boolean

Whether the classificationEvaluationMetrics field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasImageObjectDetectionEvaluationMetrics()

public boolean hasImageObjectDetectionEvaluationMetrics()

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Returns
TypeDescription
boolean

Whether the imageObjectDetectionEvaluationMetrics field is set.

hasTextExtractionEvaluationMetrics()

public boolean hasTextExtractionEvaluationMetrics()

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Returns
TypeDescription
boolean

Whether the textExtractionEvaluationMetrics field is set.

hasTextSentimentEvaluationMetrics()

public boolean hasTextSentimentEvaluationMetrics()

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Returns
TypeDescription
boolean

Whether the textSentimentEvaluationMetrics field is set.

hasTranslationEvaluationMetrics()

public boolean hasTranslationEvaluationMetrics()

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Returns
TypeDescription
boolean

Whether the translationEvaluationMetrics field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeClassificationEvaluationMetrics(ClassificationEvaluationMetrics value)

public ModelEvaluation.Builder mergeClassificationEvaluationMetrics(ClassificationEvaluationMetrics value)

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Parameter
NameDescription
valueClassificationEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

mergeCreateTime(Timestamp value)

public ModelEvaluation.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ModelEvaluation.Builder

mergeFrom(ModelEvaluation other)

public ModelEvaluation.Builder mergeFrom(ModelEvaluation other)
Parameter
NameDescription
otherModelEvaluation
Returns
TypeDescription
ModelEvaluation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

public ModelEvaluation.Builder mergeImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Parameter
NameDescription
valueImageObjectDetectionEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

mergeTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

public ModelEvaluation.Builder mergeTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Parameter
NameDescription
valueTextExtractionEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

mergeTextSentimentEvaluationMetrics(TextSentimentEvaluationMetrics value)

public ModelEvaluation.Builder mergeTextSentimentEvaluationMetrics(TextSentimentEvaluationMetrics value)

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Parameter
NameDescription
valueTextSentimentEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

mergeTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

public ModelEvaluation.Builder mergeTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Parameter
NameDescription
valueTranslationEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnnotationSpecId(String value)

public ModelEvaluation.Builder setAnnotationSpecId(String value)

Output only. The ID of the annotation spec that the model evaluation applies to. The The ID is empty for the overall model evaluation. For Tables annotation specs in the dataset do not exist and this ID is always not set, but for CLASSIFICATION prediction_type-s the display_name field is used.

string annotation_spec_id = 2;

Parameter
NameDescription
valueString

The annotationSpecId to set.

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

setAnnotationSpecIdBytes(ByteString value)

public ModelEvaluation.Builder setAnnotationSpecIdBytes(ByteString value)

Output only. The ID of the annotation spec that the model evaluation applies to. The The ID is empty for the overall model evaluation. For Tables annotation specs in the dataset do not exist and this ID is always not set, but for CLASSIFICATION prediction_type-s the display_name field is used.

string annotation_spec_id = 2;

Parameter
NameDescription
valueByteString

The bytes for annotationSpecId to set.

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

setClassificationEvaluationMetrics(ClassificationEvaluationMetrics value)

public ModelEvaluation.Builder setClassificationEvaluationMetrics(ClassificationEvaluationMetrics value)

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Parameter
NameDescription
valueClassificationEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

setClassificationEvaluationMetrics(ClassificationEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setClassificationEvaluationMetrics(ClassificationEvaluationMetrics.Builder builderForValue)

Model evaluation metrics for image, text, video and tables classification. Tables problem is considered a classification when the target column is CATEGORY DataType.

.google.cloud.automl.v1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Parameter
NameDescription
builderForValueClassificationEvaluationMetrics.Builder
Returns
TypeDescription
ModelEvaluation.Builder

setCreateTime(Timestamp value)

public ModelEvaluation.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ModelEvaluation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ModelEvaluation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ModelEvaluation.Builder

setDisplayName(String value)

public ModelEvaluation.Builder setDisplayName(String value)

Output only. The value of display_name at the moment when the model was trained. Because this field returns a value at model training time, for different models trained from the same dataset, the values may differ, since display names could had been changed between the two model's trainings. For Tables CLASSIFICATION prediction_type-s distinct values of the target column at the moment of the model evaluation are populated here. The display_name is empty for the overall model evaluation.

string display_name = 15;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ModelEvaluation.Builder setDisplayNameBytes(ByteString value)

Output only. The value of display_name at the moment when the model was trained. Because this field returns a value at model training time, for different models trained from the same dataset, the values may differ, since display names could had been changed between the two model's trainings. For Tables CLASSIFICATION prediction_type-s distinct values of the target column at the moment of the model evaluation are populated here. The display_name is empty for the overall model evaluation.

string display_name = 15;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

setEvaluatedExampleCount(int value)

public ModelEvaluation.Builder setEvaluatedExampleCount(int value)

Output only. The number of examples used for model evaluation, i.e. for which ground truth from time of model creation is compared against the predicted annotations created by the model. For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is the total number of all examples used for evaluation. Otherwise, this is the count of examples that according to the ground truth were annotated by the annotation_spec_id.

int32 evaluated_example_count = 6;

Parameter
NameDescription
valueint

The evaluatedExampleCount to set.

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

public ModelEvaluation.Builder setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Parameter
NameDescription
valueImageObjectDetectionEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics.Builder builderForValue)

Model evaluation metrics for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12;

Parameter
NameDescription
builderForValueImageObjectDetectionEvaluationMetrics.Builder
Returns
TypeDescription
ModelEvaluation.Builder

setName(String value)

public ModelEvaluation.Builder setName(String value)

Output only. Resource name of the model evaluation. Format: projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ModelEvaluation.Builder setNameBytes(ByteString value)

Output only. Resource name of the model evaluation. Format: projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ModelEvaluation.Builder

This builder for chaining.

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

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

setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

public ModelEvaluation.Builder setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Parameter
NameDescription
valueTextExtractionEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics.Builder builderForValue)

Evaluation metrics for text extraction models.

.google.cloud.automl.v1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13;

Parameter
NameDescription
builderForValueTextExtractionEvaluationMetrics.Builder
Returns
TypeDescription
ModelEvaluation.Builder

setTextSentimentEvaluationMetrics(TextSentimentEvaluationMetrics value)

public ModelEvaluation.Builder setTextSentimentEvaluationMetrics(TextSentimentEvaluationMetrics value)

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Parameter
NameDescription
valueTextSentimentEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

setTextSentimentEvaluationMetrics(TextSentimentEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setTextSentimentEvaluationMetrics(TextSentimentEvaluationMetrics.Builder builderForValue)

Evaluation metrics for text sentiment models.

.google.cloud.automl.v1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11;

Parameter
NameDescription
builderForValueTextSentimentEvaluationMetrics.Builder
Returns
TypeDescription
ModelEvaluation.Builder

setTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

public ModelEvaluation.Builder setTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Parameter
NameDescription
valueTranslationEvaluationMetrics
Returns
TypeDescription
ModelEvaluation.Builder

setTranslationEvaluationMetrics(TranslationEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setTranslationEvaluationMetrics(TranslationEvaluationMetrics.Builder builderForValue)

Model evaluation metrics for translation.

.google.cloud.automl.v1.TranslationEvaluationMetrics translation_evaluation_metrics = 9;

Parameter
NameDescription
builderForValueTranslationEvaluationMetrics.Builder
Returns
TypeDescription
ModelEvaluation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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