Class EvaluationJob (0.135.0)

public final class EvaluationJob extends GeneratedMessageV3 implements EvaluationJobOrBuilder

Defines an evaluation job that runs periodically to generate Evaluations. Creating an evaluation job is the starting point for using continuous evaluation.

Protobuf type google.cloud.datalabeling.v1beta1.EvaluationJob

Static Fields

ANNOTATION_SPEC_SET_FIELD_NUMBER

public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER
Field Value
TypeDescription
int

ATTEMPTS_FIELD_NUMBER

public static final int ATTEMPTS_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

EVALUATION_JOB_CONFIG_FIELD_NUMBER

public static final int EVALUATION_JOB_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER

public static final int LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER
Field Value
TypeDescription
int

MODEL_VERSION_FIELD_NUMBER

public static final int MODEL_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEDULE_FIELD_NUMBER

public static final int SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EvaluationJob getDefaultInstance()
Returns
TypeDescription
EvaluationJob

getDescriptor()

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

newBuilder()

public static EvaluationJob.Builder newBuilder()
Returns
TypeDescription
EvaluationJob.Builder

newBuilder(EvaluationJob prototype)

public static EvaluationJob.Builder newBuilder(EvaluationJob prototype)
Parameter
NameDescription
prototypeEvaluationJob
Returns
TypeDescription
EvaluationJob.Builder

parseDelimitedFrom(InputStream input)

public static EvaluationJob parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluationJob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EvaluationJob parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EvaluationJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EvaluationJob parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EvaluationJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EvaluationJob parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluationJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EvaluationJob parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluationJob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EvaluationJob parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EvaluationJob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EvaluationJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EvaluationJob> parser()
Returns
TypeDescription
Parser<EvaluationJob>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnnotationSpecSet()

public String getAnnotationSpecSet()

Required. Name of the 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;

Returns
TypeDescription
String

The annotationSpecSet.

getAnnotationSpecSetBytes()

public ByteString getAnnotationSpecSetBytes()

Required. Name of the 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;

Returns
TypeDescription
ByteString

The bytes for annotationSpecSet.

getAttempts(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Attempt

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<Attempt>

getAttemptsOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AttemptOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp of when this evaluation job was created.

.google.protobuf.Timestamp create_time = 10;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp of when this evaluation job was created.

.google.protobuf.Timestamp create_time = 10;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public EvaluationJob getDefaultInstanceForType()
Returns
TypeDescription
EvaluationJob

getDescription()

public String getDescription()

Required. Description of the job. The description can be up to 25,000 characters long.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Required. Description of the job. The description can be up to 25,000 characters long.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getEvaluationJobConfig()

public EvaluationJobConfig getEvaluationJobConfig()

Required. Configuration details for the evaluation job.

.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;

Returns
TypeDescription
EvaluationJobConfig

The evaluationJobConfig.

getEvaluationJobConfigOrBuilder()

public EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder()

Required. Configuration details for the evaluation job.

.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;

Returns
TypeDescription
EvaluationJobConfigOrBuilder

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;

Returns
TypeDescription
boolean

The labelMissingGroundTruth.

getModelVersion()

public String getModelVersion()

Required. The AI Platform Prediction model version 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;

Returns
TypeDescription
String

The modelVersion.

getModelVersionBytes()

public ByteString getModelVersionBytes()

Required. The AI Platform Prediction model version 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;

Returns
TypeDescription
ByteString

The bytes for modelVersion.

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<EvaluationJob> getParserForType()
Returns
TypeDescription
Parser<EvaluationJob>
Overrides

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 or in an English-like 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;

Returns
TypeDescription
String

The schedule.

getScheduleBytes()

public 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 or in an English-like 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;

Returns
TypeDescription
ByteString

The bytes for schedule.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public EvaluationJob.State getState()

Output only. Describes the current state of the job.

.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;

Returns
TypeDescription
EvaluationJob.State

The state.

getStateValue()

public int getStateValue()

Output only. Describes the current state of the job.

.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp of when this evaluation job was created.

.google.protobuf.Timestamp create_time = 10;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEvaluationJobConfig()

public boolean hasEvaluationJobConfig()

Required. Configuration details for the evaluation job.

.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;

Returns
TypeDescription
boolean

Whether the evaluationJobConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EvaluationJob.Builder newBuilderForType()
Returns
TypeDescription
EvaluationJob.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EvaluationJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EvaluationJob.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EvaluationJob.Builder toBuilder()
Returns
TypeDescription
EvaluationJob.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException