Class Evaluation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
com.google.cloud.datalabeling.v1beta1.Evaluation.Builder
- All Implemented Interfaces:
EvaluationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Evaluation
public static final class Evaluation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
implements EvaluationOrBuilder
Describes an evaluation between a machine learning model's predictions and ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.Protobuf type
google.cloud.datalabeling.v1beta1.Evaluation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.intOutput only.Output only.Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.Output only.Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeConfig(EvaluationConfig value) Output only.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeEvaluationJobRunTime(com.google.protobuf.Timestamp value) Output only.Output only.mergeFrom(Evaluation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAnnotationType(AnnotationType value) Output only.setAnnotationTypeValue(int value) Output only.setConfig(EvaluationConfig value) Output only.setConfig(EvaluationConfig.Builder builderForValue) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEvaluatedItemCount(long value) Output only.setEvaluationJobRunTime(com.google.protobuf.Timestamp value) Output only.setEvaluationJobRunTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setEvaluationMetrics(EvaluationMetrics.Builder builderForValue) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Evaluation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Builder>
-
mergeFrom
public Evaluation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Evaluation.Builder>- Throws:
IOException
-
getName
Output only. Resource name of an evaluation. The name has the following format: "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'string name = 1;- Specified by:
getNamein interfaceEvaluationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Resource name of an evaluation. The name has the following format: "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'string name = 1;- Specified by:
getNameBytesin interfaceEvaluationOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Resource name of an evaluation. The name has the following format: "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Resource name of an evaluation. The name has the following format: "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Resource name of an evaluation. The name has the following format: "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasConfig
public boolean hasConfig()Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;- Specified by:
hasConfigin interfaceEvaluationOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;- Specified by:
getConfigin interfaceEvaluationOrBuilder- Returns:
- The config.
-
setConfig
Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; -
setConfig
Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; -
mergeConfig
Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; -
clearConfig
Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; -
getConfigBuilder
Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; -
getConfigOrBuilder
Output only. Options used in the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;- Specified by:
getConfigOrBuilderin interfaceEvaluationOrBuilder
-
hasEvaluationJobRunTime
public boolean hasEvaluationJobRunTime()Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3;- Specified by:
hasEvaluationJobRunTimein interfaceEvaluationOrBuilder- Returns:
- Whether the evaluationJobRunTime field is set.
-
getEvaluationJobRunTime
public com.google.protobuf.Timestamp getEvaluationJobRunTime()Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3;- Specified by:
getEvaluationJobRunTimein interfaceEvaluationOrBuilder- Returns:
- The evaluationJobRunTime.
-
setEvaluationJobRunTime
Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3; -
setEvaluationJobRunTime
public Evaluation.Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3; -
mergeEvaluationJobRunTime
Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3; -
clearEvaluationJobRunTime
Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3; -
getEvaluationJobRunTimeBuilder
public com.google.protobuf.Timestamp.Builder getEvaluationJobRunTimeBuilder()Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3; -
getEvaluationJobRunTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()Output only. Timestamp for when the evaluation job that created this evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3;- Specified by:
getEvaluationJobRunTimeOrBuilderin interfaceEvaluationOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
hasCreateTimein interfaceEvaluationOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimein interfaceEvaluationOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4; -
setCreateTime
Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4; -
mergeCreateTime
Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4; -
clearCreateTime
Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4;- Specified by:
getCreateTimeOrBuilderin interfaceEvaluationOrBuilder
-
hasEvaluationMetrics
public boolean hasEvaluationMetrics()Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5;- Specified by:
hasEvaluationMetricsin interfaceEvaluationOrBuilder- Returns:
- Whether the evaluationMetrics field is set.
-
getEvaluationMetrics
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5;- Specified by:
getEvaluationMetricsin interfaceEvaluationOrBuilder- Returns:
- The evaluationMetrics.
-
setEvaluationMetrics
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; -
setEvaluationMetrics
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; -
mergeEvaluationMetrics
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; -
clearEvaluationMetrics
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; -
getEvaluationMetricsBuilder
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; -
getEvaluationMetricsOrBuilder
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5;- Specified by:
getEvaluationMetricsOrBuilderin interfaceEvaluationOrBuilder
-
getAnnotationTypeValue
public int getAnnotationTypeValue()Output only. Type of task that the model version being evaluated performs, as defined in the [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config] field of the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;- Specified by:
getAnnotationTypeValuein interfaceEvaluationOrBuilder- Returns:
- The enum numeric value on the wire for annotationType.
-
setAnnotationTypeValue
Output only. Type of task that the model version being evaluated performs, as defined in the [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config] field of the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;- Parameters:
value- The enum numeric value on the wire for annotationType to set.- Returns:
- This builder for chaining.
-
getAnnotationType
Output only. Type of task that the model version being evaluated performs, as defined in the [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config] field of the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;- Specified by:
getAnnotationTypein interfaceEvaluationOrBuilder- Returns:
- The annotationType.
-
setAnnotationType
Output only. Type of task that the model version being evaluated performs, as defined in the [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config] field of the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;- Parameters:
value- The annotationType to set.- Returns:
- This builder for chaining.
-
clearAnnotationType
Output only. Type of task that the model version being evaluated performs, as defined in the [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config] field of the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;- Returns:
- This builder for chaining.
-
getEvaluatedItemCount
public long getEvaluatedItemCount()Output only. The number of items in the ground truth dataset that were used for this evaluation. Only populated when the evaulation is for certain AnnotationTypes.
int64 evaluated_item_count = 7;- Specified by:
getEvaluatedItemCountin interfaceEvaluationOrBuilder- Returns:
- The evaluatedItemCount.
-
setEvaluatedItemCount
Output only. The number of items in the ground truth dataset that were used for this evaluation. Only populated when the evaulation is for certain AnnotationTypes.
int64 evaluated_item_count = 7;- Parameters:
value- The evaluatedItemCount to set.- Returns:
- This builder for chaining.
-
clearEvaluatedItemCount
Output only. The number of items in the ground truth dataset that were used for this evaluation. Only populated when the evaulation is for certain AnnotationTypes.
int64 evaluated_item_count = 7;- Returns:
- This builder for chaining.
-