Class EvaluationJob
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.datalabeling.v1beta1.EvaluationJob
-
- All Implemented Interfaces:
EvaluationJobOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class EvaluationJob extends com.google.protobuf.GeneratedMessageV3 implements EvaluationJobOrBuilder
Defines an evaluation job that runs periodically to generate [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point for using continuous evaluation.
Protobuf typegoogle.cloud.datalabeling.v1beta1.EvaluationJob- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvaluationJob.BuilderDefines an evaluation job that runs periodically to generate [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation].static classEvaluationJob.StateState of the job.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATION_SPEC_SET_FIELD_NUMBERstatic intATTEMPTS_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intEVALUATION_JOB_CONFIG_FIELD_NUMBERstatic intLABEL_MISSING_GROUND_TRUTH_FIELD_NUMBERstatic intMODEL_VERSION_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSCHEDULE_FIELD_NUMBERstatic intSTATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAnnotationSpecSet()Required.com.google.protobuf.ByteStringgetAnnotationSpecSetBytes()Required.AttemptgetAttempts(int index)Output only.intgetAttemptsCount()Output only.List<Attempt>getAttemptsList()Output only.AttemptOrBuildergetAttemptsOrBuilder(int index)Output only.List<? extends AttemptOrBuilder>getAttemptsOrBuilderList()Output only.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.static EvaluationJobgetDefaultInstance()EvaluationJobgetDefaultInstanceForType()StringgetDescription()Required.com.google.protobuf.ByteStringgetDescriptionBytes()Required.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()EvaluationJobConfiggetEvaluationJobConfig()Required.EvaluationJobConfigOrBuildergetEvaluationJobConfigOrBuilder()Required.booleangetLabelMissingGroundTruth()Required.StringgetModelVersion()Required.com.google.protobuf.ByteStringgetModelVersionBytes()Required.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<EvaluationJob>getParserForType()StringgetSchedule()Required.com.google.protobuf.ByteStringgetScheduleBytes()Required.intgetSerializedSize()EvaluationJob.StategetState()Output only.intgetStateValue()Output only.booleanhasCreateTime()Output only.booleanhasEvaluationJobConfig()Required.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static EvaluationJob.BuildernewBuilder()static EvaluationJob.BuildernewBuilder(EvaluationJob prototype)EvaluationJob.BuildernewBuilderForType()protected EvaluationJob.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static EvaluationJobparseDelimitedFrom(InputStream input)static EvaluationJobparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationJobparseFrom(byte[] data)static EvaluationJobparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationJobparseFrom(com.google.protobuf.ByteString data)static EvaluationJobparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationJobparseFrom(com.google.protobuf.CodedInputStream input)static EvaluationJobparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationJobparseFrom(InputStream input)static EvaluationJobparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationJobparseFrom(ByteBuffer data)static EvaluationJobparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<EvaluationJob>parser()EvaluationJob.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEDULE_FIELD_NUMBER
public static final int SCHEDULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODEL_VERSION_FIELD_NUMBER
public static final int MODEL_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVALUATION_JOB_CONFIG_FIELD_NUMBER
public static final int EVALUATION_JOB_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATION_SPEC_SET_FIELD_NUMBER
public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER
public static final int LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTEMPTS_FIELD_NUMBER
public static final int ATTEMPTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format: "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"string name = 1;- Specified by:
getNamein interfaceEvaluationJobOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format: "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"string name = 1;- Specified by:
getNameBytesin interfaceEvaluationJobOrBuilder- Returns:
- The bytes for name.
-
getDescription
public String getDescription()
Required. Description of the job. The description can be up to 25,000 characters long.
string description = 2;- Specified by:
getDescriptionin interfaceEvaluationJobOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Required. Description of the job. The description can be up to 25,000 characters long.
string description = 2;- Specified by:
getDescriptionBytesin interfaceEvaluationJobOrBuilder- Returns:
- The bytes for description.
-
getStateValue
public int getStateValue()
Output only. Describes the current state of the job.
.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;- Specified by:
getStateValuein interfaceEvaluationJobOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public EvaluationJob.State getState()
Output only. Describes the current state of the job.
.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;- Specified by:
getStatein interfaceEvaluationJobOrBuilder- Returns:
- The state.
-
getSchedule
public String getSchedule()
Required. Describes the interval at which the job runs. This interval must be at least 1 day, and it is rounded to the nearest day. For example, if you specify a 50-hour interval, the job runs every 2 days. You can provide the schedule in [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an [English-like format](/appengine/docs/standard/python/config/cronref#schedule_format). Regardless of what you specify, the job will run at 10:00 AM UTC. Only the interval from this schedule is used, not the specific time of day.
string schedule = 4;- Specified by:
getSchedulein interfaceEvaluationJobOrBuilder- Returns:
- The schedule.
-
getScheduleBytes
public com.google.protobuf.ByteString getScheduleBytes()
Required. Describes the interval at which the job runs. This interval must be at least 1 day, and it is rounded to the nearest day. For example, if you specify a 50-hour interval, the job runs every 2 days. You can provide the schedule in [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an [English-like format](/appengine/docs/standard/python/config/cronref#schedule_format). Regardless of what you specify, the job will run at 10:00 AM UTC. Only the interval from this schedule is used, not the specific time of day.
string schedule = 4;- Specified by:
getScheduleBytesin interfaceEvaluationJobOrBuilder- Returns:
- The bytes for schedule.
-
getModelVersion
public String getModelVersion()
Required. The [AI Platform Prediction model version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction input and output is sampled from this model version. When creating an evaluation job, specify the model version in the following format: "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>" There can only be one evaluation job per model version.string model_version = 5;- Specified by:
getModelVersionin interfaceEvaluationJobOrBuilder- Returns:
- The modelVersion.
-
getModelVersionBytes
public com.google.protobuf.ByteString getModelVersionBytes()
Required. The [AI Platform Prediction model version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction input and output is sampled from this model version. When creating an evaluation job, specify the model version in the following format: "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>" There can only be one evaluation job per model version.string model_version = 5;- Specified by:
getModelVersionBytesin interfaceEvaluationJobOrBuilder- Returns:
- The bytes for modelVersion.
-
hasEvaluationJobConfig
public boolean hasEvaluationJobConfig()
Required. Configuration details for the evaluation job.
.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;- Specified by:
hasEvaluationJobConfigin interfaceEvaluationJobOrBuilder- Returns:
- Whether the evaluationJobConfig field is set.
-
getEvaluationJobConfig
public EvaluationJobConfig getEvaluationJobConfig()
Required. Configuration details for the evaluation job.
.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;- Specified by:
getEvaluationJobConfigin interfaceEvaluationJobOrBuilder- Returns:
- The evaluationJobConfig.
-
getEvaluationJobConfigOrBuilder
public EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder()
Required. Configuration details for the evaluation job.
.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;- Specified by:
getEvaluationJobConfigOrBuilderin interfaceEvaluationJobOrBuilder
-
getAnnotationSpecSet
public String getAnnotationSpecSet()
Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the labels that your machine learning model outputs. You must create this resource before you create an evaluation job and provide its name in the following format: "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"string annotation_spec_set = 7;- Specified by:
getAnnotationSpecSetin interfaceEvaluationJobOrBuilder- Returns:
- The annotationSpecSet.
-
getAnnotationSpecSetBytes
public com.google.protobuf.ByteString getAnnotationSpecSetBytes()
Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the labels that your machine learning model outputs. You must create this resource before you create an evaluation job and provide its name in the following format: "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"string annotation_spec_set = 7;- Specified by:
getAnnotationSpecSetBytesin interfaceEvaluationJobOrBuilder- Returns:
- The bytes for annotationSpecSet.
-
getLabelMissingGroundTruth
public boolean getLabelMissingGroundTruth()
Required. Whether you want Data Labeling Service to provide ground truth labels for prediction input. If you want the service to assign human labelers to annotate your data, set this to `true`. If you want to provide your own ground truth labels in the evaluation job's BigQuery table, set this to `false`.
bool label_missing_ground_truth = 8;- Specified by:
getLabelMissingGroundTruthin interfaceEvaluationJobOrBuilder- Returns:
- The labelMissingGroundTruth.
-
getAttemptsList
public List<Attempt> getAttemptsList()
Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.
repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;- Specified by:
getAttemptsListin interfaceEvaluationJobOrBuilder
-
getAttemptsOrBuilderList
public List<? extends AttemptOrBuilder> getAttemptsOrBuilderList()
Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.
repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;- Specified by:
getAttemptsOrBuilderListin interfaceEvaluationJobOrBuilder
-
getAttemptsCount
public int getAttemptsCount()
Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.
repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;- Specified by:
getAttemptsCountin interfaceEvaluationJobOrBuilder
-
getAttempts
public Attempt getAttempts(int index)
Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.
repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;- Specified by:
getAttemptsin interfaceEvaluationJobOrBuilder
-
getAttemptsOrBuilder
public AttemptOrBuilder getAttemptsOrBuilder(int index)
Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.
repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;- Specified by:
getAttemptsOrBuilderin interfaceEvaluationJobOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. Timestamp of when this evaluation job was created.
.google.protobuf.Timestamp create_time = 10;- Specified by:
hasCreateTimein interfaceEvaluationJobOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Timestamp of when this evaluation job was created.
.google.protobuf.Timestamp create_time = 10;- Specified by:
getCreateTimein interfaceEvaluationJobOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp of when this evaluation job was created.
.google.protobuf.Timestamp create_time = 10;- Specified by:
getCreateTimeOrBuilderin interfaceEvaluationJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EvaluationJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EvaluationJob parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EvaluationJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EvaluationJob parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EvaluationJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static EvaluationJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EvaluationJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public EvaluationJob.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static EvaluationJob.Builder newBuilder()
-
newBuilder
public static EvaluationJob.Builder newBuilder(EvaluationJob prototype)
-
toBuilder
public EvaluationJob.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EvaluationJob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static EvaluationJob getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<EvaluationJob> parser()
-
getParserForType
public com.google.protobuf.Parser<EvaluationJob> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public EvaluationJob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-