Class ModelEvaluation.Builder (2.49.0)

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

Evaluation results of a model.

Protobuf type google.cloud.automl.v1beta1.ModelEvaluation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelEvaluation build()
Returns
Type Description
ModelEvaluation

buildPartial()

public ModelEvaluation buildPartial()
Returns
Type Description
ModelEvaluation

clear()

public ModelEvaluation.Builder clear()
Returns
Type Description
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
Type Description
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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
Type Description
ModelEvaluation.Builder

clearCreateTime()

public ModelEvaluation.Builder clearCreateTime()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImageObjectDetectionEvaluationMetrics()

public ModelEvaluation.Builder clearImageObjectDetectionEvaluationMetrics()

Model evaluation metrics for image object detection.

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

Returns
Type Description
ModelEvaluation.Builder

clearMetrics()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelEvaluation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModelEvaluation.Builder
Overrides

clearRegressionEvaluationMetrics()

public ModelEvaluation.Builder clearRegressionEvaluationMetrics()

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Returns
Type Description
ModelEvaluation.Builder

clearTextExtractionEvaluationMetrics()

public ModelEvaluation.Builder clearTextExtractionEvaluationMetrics()

Evaluation metrics for text extraction models.

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

Returns
Type Description
ModelEvaluation.Builder

clearTextSentimentEvaluationMetrics()

public ModelEvaluation.Builder clearTextSentimentEvaluationMetrics()

Evaluation metrics for text sentiment models.

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

Returns
Type Description
ModelEvaluation.Builder

clearTranslationEvaluationMetrics()

public ModelEvaluation.Builder clearTranslationEvaluationMetrics()

Model evaluation metrics for translation.

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

Returns
Type Description
ModelEvaluation.Builder

clearVideoObjectTrackingEvaluationMetrics()

public ModelEvaluation.Builder clearVideoObjectTrackingEvaluationMetrics()

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Returns
Type Description
ModelEvaluation.Builder

clone()

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

The bytes for annotationSpecId.

getClassificationEvaluationMetrics()

public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics

The classificationEvaluationMetrics.

getClassificationEvaluationMetricsBuilder()

public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
Type Description
ClassificationProto.ClassificationEvaluationMetrics.Builder

getClassificationEvaluationMetricsOrBuilder()

public ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
Type Description
ClassificationProto.ClassificationEvaluationMetricsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this model evaluation was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ModelEvaluation getDefaultInstanceForType()
Returns
Type Description
ModelEvaluation

getDescriptorForType()

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

The evaluatedExampleCount.

getImageObjectDetectionEvaluationMetrics()

public ImageObjectDetectionEvaluationMetrics getImageObjectDetectionEvaluationMetrics()

Model evaluation metrics for image object detection.

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

Returns
Type Description
ImageObjectDetectionEvaluationMetrics

The imageObjectDetectionEvaluationMetrics.

getImageObjectDetectionEvaluationMetricsBuilder()

public ImageObjectDetectionEvaluationMetrics.Builder getImageObjectDetectionEvaluationMetricsBuilder()

Model evaluation metrics for image object detection.

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

Returns
Type Description
ImageObjectDetectionEvaluationMetrics.Builder

getImageObjectDetectionEvaluationMetricsOrBuilder()

public ImageObjectDetectionEvaluationMetricsOrBuilder getImageObjectDetectionEvaluationMetricsOrBuilder()

Model evaluation metrics for image object detection.

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

Returns
Type Description
ImageObjectDetectionEvaluationMetricsOrBuilder

getMetricsCase()

public ModelEvaluation.MetricsCase getMetricsCase()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getRegressionEvaluationMetrics()

public RegressionProto.RegressionEvaluationMetrics getRegressionEvaluationMetrics()

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Returns
Type Description
RegressionProto.RegressionEvaluationMetrics

The regressionEvaluationMetrics.

getRegressionEvaluationMetricsBuilder()

public RegressionProto.RegressionEvaluationMetrics.Builder getRegressionEvaluationMetricsBuilder()

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Returns
Type Description
RegressionProto.RegressionEvaluationMetrics.Builder

getRegressionEvaluationMetricsOrBuilder()

public RegressionProto.RegressionEvaluationMetricsOrBuilder getRegressionEvaluationMetricsOrBuilder()

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Returns
Type Description
RegressionProto.RegressionEvaluationMetricsOrBuilder

getTextExtractionEvaluationMetrics()

public TextExtractionEvaluationMetrics getTextExtractionEvaluationMetrics()

Evaluation metrics for text extraction models.

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

Returns
Type Description
TextExtractionEvaluationMetrics

The textExtractionEvaluationMetrics.

getTextExtractionEvaluationMetricsBuilder()

public TextExtractionEvaluationMetrics.Builder getTextExtractionEvaluationMetricsBuilder()

Evaluation metrics for text extraction models.

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

Returns
Type Description
TextExtractionEvaluationMetrics.Builder

getTextExtractionEvaluationMetricsOrBuilder()

public TextExtractionEvaluationMetricsOrBuilder getTextExtractionEvaluationMetricsOrBuilder()

Evaluation metrics for text extraction models.

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

Returns
Type Description
TextExtractionEvaluationMetricsOrBuilder

getTextSentimentEvaluationMetrics()

public TextSentimentProto.TextSentimentEvaluationMetrics getTextSentimentEvaluationMetrics()

Evaluation metrics for text sentiment models.

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

Returns
Type Description
TextSentimentProto.TextSentimentEvaluationMetrics

The textSentimentEvaluationMetrics.

getTextSentimentEvaluationMetricsBuilder()

public TextSentimentProto.TextSentimentEvaluationMetrics.Builder getTextSentimentEvaluationMetricsBuilder()

Evaluation metrics for text sentiment models.

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

Returns
Type Description
TextSentimentProto.TextSentimentEvaluationMetrics.Builder

getTextSentimentEvaluationMetricsOrBuilder()

public TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder getTextSentimentEvaluationMetricsOrBuilder()

Evaluation metrics for text sentiment models.

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

Returns
Type Description
TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder

getTranslationEvaluationMetrics()

public TranslationEvaluationMetrics getTranslationEvaluationMetrics()

Model evaluation metrics for translation.

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

Returns
Type Description
TranslationEvaluationMetrics

The translationEvaluationMetrics.

getTranslationEvaluationMetricsBuilder()

public TranslationEvaluationMetrics.Builder getTranslationEvaluationMetricsBuilder()

Model evaluation metrics for translation.

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

Returns
Type Description
TranslationEvaluationMetrics.Builder

getTranslationEvaluationMetricsOrBuilder()

public TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder()

Model evaluation metrics for translation.

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

Returns
Type Description
TranslationEvaluationMetricsOrBuilder

getVideoObjectTrackingEvaluationMetrics()

public VideoObjectTrackingEvaluationMetrics getVideoObjectTrackingEvaluationMetrics()

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Returns
Type Description
VideoObjectTrackingEvaluationMetrics

The videoObjectTrackingEvaluationMetrics.

getVideoObjectTrackingEvaluationMetricsBuilder()

public VideoObjectTrackingEvaluationMetrics.Builder getVideoObjectTrackingEvaluationMetricsBuilder()

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Returns
Type Description
VideoObjectTrackingEvaluationMetrics.Builder

getVideoObjectTrackingEvaluationMetricsOrBuilder()

public VideoObjectTrackingEvaluationMetricsOrBuilder getVideoObjectTrackingEvaluationMetricsOrBuilder()

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Returns
Type Description
VideoObjectTrackingEvaluationMetricsOrBuilder

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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Returns
Type Description
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
Type Description
boolean

Whether the createTime field is set.

hasImageObjectDetectionEvaluationMetrics()

public boolean hasImageObjectDetectionEvaluationMetrics()

Model evaluation metrics for image object detection.

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

Returns
Type Description
boolean

Whether the imageObjectDetectionEvaluationMetrics field is set.

hasRegressionEvaluationMetrics()

public boolean hasRegressionEvaluationMetrics()

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Returns
Type Description
boolean

Whether the regressionEvaluationMetrics field is set.

hasTextExtractionEvaluationMetrics()

public boolean hasTextExtractionEvaluationMetrics()

Evaluation metrics for text extraction models.

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

Returns
Type Description
boolean

Whether the textExtractionEvaluationMetrics field is set.

hasTextSentimentEvaluationMetrics()

public boolean hasTextSentimentEvaluationMetrics()

Evaluation metrics for text sentiment models.

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

Returns
Type Description
boolean

Whether the textSentimentEvaluationMetrics field is set.

hasTranslationEvaluationMetrics()

public boolean hasTranslationEvaluationMetrics()

Model evaluation metrics for translation.

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

Returns
Type Description
boolean

Whether the translationEvaluationMetrics field is set.

hasVideoObjectTrackingEvaluationMetrics()

public boolean hasVideoObjectTrackingEvaluationMetrics()

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Returns
Type Description
boolean

Whether the videoObjectTrackingEvaluationMetrics field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeClassificationEvaluationMetrics(ClassificationProto.ClassificationEvaluationMetrics value)

public ModelEvaluation.Builder mergeClassificationEvaluationMetrics(ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Parameter
Name Description
value ClassificationProto.ClassificationEvaluationMetrics
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
ModelEvaluation.Builder

mergeFrom(ModelEvaluation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

public ModelEvaluation.Builder mergeImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

Model evaluation metrics for image object detection.

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

Parameter
Name Description
value ImageObjectDetectionEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

mergeRegressionEvaluationMetrics(RegressionProto.RegressionEvaluationMetrics value)

public ModelEvaluation.Builder mergeRegressionEvaluationMetrics(RegressionProto.RegressionEvaluationMetrics value)

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Parameter
Name Description
value RegressionProto.RegressionEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

mergeTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

public ModelEvaluation.Builder mergeTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

Evaluation metrics for text extraction models.

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

Parameter
Name Description
value TextExtractionEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

mergeTextSentimentEvaluationMetrics(TextSentimentProto.TextSentimentEvaluationMetrics value)

public ModelEvaluation.Builder mergeTextSentimentEvaluationMetrics(TextSentimentProto.TextSentimentEvaluationMetrics value)

Evaluation metrics for text sentiment models.

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

Parameter
Name Description
value TextSentimentProto.TextSentimentEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

mergeTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

public ModelEvaluation.Builder mergeTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

Model evaluation metrics for translation.

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

Parameter
Name Description
value TranslationEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelEvaluation.Builder
Overrides

mergeVideoObjectTrackingEvaluationMetrics(VideoObjectTrackingEvaluationMetrics value)

public ModelEvaluation.Builder mergeVideoObjectTrackingEvaluationMetrics(VideoObjectTrackingEvaluationMetrics value)

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Parameter
Name Description
value VideoObjectTrackingEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

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
Name Description
value String

The annotationSpecId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for annotationSpecId to set.

Returns
Type Description
ModelEvaluation.Builder

This builder for chaining.

setClassificationEvaluationMetrics(ClassificationProto.ClassificationEvaluationMetrics value)

public ModelEvaluation.Builder setClassificationEvaluationMetrics(ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Parameter
Name Description
value ClassificationProto.ClassificationEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

setClassificationEvaluationMetrics(ClassificationProto.ClassificationEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setClassificationEvaluationMetrics(ClassificationProto.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.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8;

Parameter
Name Description
builderForValue ClassificationProto.ClassificationEvaluationMetrics.Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
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
Name Description
value int

The evaluatedExampleCount to set.

Returns
Type Description
ModelEvaluation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

public ModelEvaluation.Builder setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics value)

Model evaluation metrics for image object detection.

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

Parameter
Name Description
value ImageObjectDetectionEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setImageObjectDetectionEvaluationMetrics(ImageObjectDetectionEvaluationMetrics.Builder builderForValue)

Model evaluation metrics for image object detection.

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

Parameter
Name Description
builderForValue ImageObjectDetectionEvaluationMetrics.Builder
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ModelEvaluation.Builder

This builder for chaining.

setRegressionEvaluationMetrics(RegressionProto.RegressionEvaluationMetrics value)

public ModelEvaluation.Builder setRegressionEvaluationMetrics(RegressionProto.RegressionEvaluationMetrics value)

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Parameter
Name Description
value RegressionProto.RegressionEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

setRegressionEvaluationMetrics(RegressionProto.RegressionEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setRegressionEvaluationMetrics(RegressionProto.RegressionEvaluationMetrics.Builder builderForValue)

Model evaluation metrics for Tables regression. Tables problem is considered a regression when the target column has FLOAT64 DataType.

.google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24;

Parameter
Name Description
builderForValue RegressionProto.RegressionEvaluationMetrics.Builder
Returns
Type Description
ModelEvaluation.Builder

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

public ModelEvaluation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ModelEvaluation.Builder
Overrides

setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

public ModelEvaluation.Builder setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics value)

Evaluation metrics for text extraction models.

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

Parameter
Name Description
value TextExtractionEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setTextExtractionEvaluationMetrics(TextExtractionEvaluationMetrics.Builder builderForValue)

Evaluation metrics for text extraction models.

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

Parameter
Name Description
builderForValue TextExtractionEvaluationMetrics.Builder
Returns
Type Description
ModelEvaluation.Builder

setTextSentimentEvaluationMetrics(TextSentimentProto.TextSentimentEvaluationMetrics value)

public ModelEvaluation.Builder setTextSentimentEvaluationMetrics(TextSentimentProto.TextSentimentEvaluationMetrics value)

Evaluation metrics for text sentiment models.

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

Parameter
Name Description
value TextSentimentProto.TextSentimentEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

setTextSentimentEvaluationMetrics(TextSentimentProto.TextSentimentEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setTextSentimentEvaluationMetrics(TextSentimentProto.TextSentimentEvaluationMetrics.Builder builderForValue)

Evaluation metrics for text sentiment models.

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

Parameter
Name Description
builderForValue TextSentimentProto.TextSentimentEvaluationMetrics.Builder
Returns
Type Description
ModelEvaluation.Builder

setTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

public ModelEvaluation.Builder setTranslationEvaluationMetrics(TranslationEvaluationMetrics value)

Model evaluation metrics for translation.

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

Parameter
Name Description
value TranslationEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

setTranslationEvaluationMetrics(TranslationEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setTranslationEvaluationMetrics(TranslationEvaluationMetrics.Builder builderForValue)

Model evaluation metrics for translation.

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

Parameter
Name Description
builderForValue TranslationEvaluationMetrics.Builder
Returns
Type Description
ModelEvaluation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVideoObjectTrackingEvaluationMetrics(VideoObjectTrackingEvaluationMetrics value)

public ModelEvaluation.Builder setVideoObjectTrackingEvaluationMetrics(VideoObjectTrackingEvaluationMetrics value)

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Parameter
Name Description
value VideoObjectTrackingEvaluationMetrics
Returns
Type Description
ModelEvaluation.Builder

setVideoObjectTrackingEvaluationMetrics(VideoObjectTrackingEvaluationMetrics.Builder builderForValue)

public ModelEvaluation.Builder setVideoObjectTrackingEvaluationMetrics(VideoObjectTrackingEvaluationMetrics.Builder builderForValue)

Model evaluation metrics for video object tracking.

.google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics video_object_tracking_evaluation_metrics = 14;

Parameter
Name Description
builderForValue VideoObjectTrackingEvaluationMetrics.Builder
Returns
Type Description
ModelEvaluation.Builder