• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/datalabeling/v1beta1/evaluation_job.proto
18 
19 package com.google.cloud.datalabeling.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Defines an evaluation job that runs periodically to generate
26  * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
27  * job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point
28  * for using continuous evaluation.
29  * </pre>
30  *
31  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob}
32  */
33 public final class EvaluationJob extends com.google.protobuf.GeneratedMessageV3
34     implements
35     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJob)
36     EvaluationJobOrBuilder {
37   private static final long serialVersionUID = 0L;
38   // Use EvaluationJob.newBuilder() to construct.
EvaluationJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39   private EvaluationJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
40     super(builder);
41   }
42 
EvaluationJob()43   private EvaluationJob() {
44     name_ = "";
45     description_ = "";
46     state_ = 0;
47     schedule_ = "";
48     modelVersion_ = "";
49     annotationSpecSet_ = "";
50     attempts_ = java.util.Collections.emptyList();
51   }
52 
53   @java.lang.Override
54   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)55   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
56     return new EvaluationJob();
57   }
58 
59   @java.lang.Override
getUnknownFields()60   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
61     return this.unknownFields;
62   }
63 
getDescriptor()64   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
65     return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
66         .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
67   }
68 
69   @java.lang.Override
70   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()71       internalGetFieldAccessorTable() {
72     return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
73         .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
74         .ensureFieldAccessorsInitialized(
75             com.google.cloud.datalabeling.v1beta1.EvaluationJob.class,
76             com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
77   }
78 
79   /**
80    *
81    *
82    * <pre>
83    * State of the job.
84    * </pre>
85    *
86    * Protobuf enum {@code google.cloud.datalabeling.v1beta1.EvaluationJob.State}
87    */
88   public enum State implements com.google.protobuf.ProtocolMessageEnum {
89     /** <code>STATE_UNSPECIFIED = 0;</code> */
90     STATE_UNSPECIFIED(0),
91     /**
92      *
93      *
94      * <pre>
95      * The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
96      * can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
97      * [delete][google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob] the job.
98      * When the job is in this state, it samples prediction input and output
99      * from your model version into your BigQuery table as predictions occur.
100      * </pre>
101      *
102      * <code>SCHEDULED = 1;</code>
103      */
104     SCHEDULED(1),
105     /**
106      *
107      *
108      * <pre>
109      * The job is currently running. When the job runs, Data Labeling Service
110      * does several things:
111      * 1. If you have configured your job to use Data Labeling Service for
112      *    ground truth labeling, the service creates a
113      *    [Dataset][google.cloud.datalabeling.v1beta1.Dataset] and a labeling task for all data sampled
114      *    since the last time the job ran. Human labelers provide ground truth
115      *    labels for your data. Human labeling may take hours, or even days,
116      *    depending on how much data has been sampled. The job remains in the
117      *    `RUNNING` state during this time, and it can even be running multiple
118      *    times in parallel if it gets triggered again (for example 24 hours
119      *    later) before the earlier run has completed. When human labelers have
120      *    finished labeling the data, the next step occurs.
121      *    &lt;br&gt;&lt;br&gt;
122      *    If you have configured your job to provide your own ground truth
123      *    labels, Data Labeling Service still creates a [Dataset][google.cloud.datalabeling.v1beta1.Dataset] for newly
124      *    sampled data, but it expects that you have already added ground truth
125      *    labels to the BigQuery table by this time. The next step occurs
126      *    immediately.
127      * 2. Data Labeling Service creates an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] by comparing your
128      *    model version's predictions with the ground truth labels.
129      * If the job remains in this state for a long time, it continues to sample
130      * prediction data into your BigQuery table and will run again at the next
131      * interval, even if it causes the job to run multiple times in parallel.
132      * </pre>
133      *
134      * <code>RUNNING = 2;</code>
135      */
136     RUNNING(2),
137     /**
138      *
139      *
140      * <pre>
141      * The job is not sampling prediction input and output into your BigQuery
142      * table and it will not run according to its schedule. You can
143      * [resume][google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob] the job.
144      * </pre>
145      *
146      * <code>PAUSED = 3;</code>
147      */
148     PAUSED(3),
149     /**
150      *
151      *
152      * <pre>
153      * The job has this state right before it is deleted.
154      * </pre>
155      *
156      * <code>STOPPED = 4;</code>
157      */
158     STOPPED(4),
159     UNRECOGNIZED(-1),
160     ;
161 
162     /** <code>STATE_UNSPECIFIED = 0;</code> */
163     public static final int STATE_UNSPECIFIED_VALUE = 0;
164     /**
165      *
166      *
167      * <pre>
168      * The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
169      * can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
170      * [delete][google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob] the job.
171      * When the job is in this state, it samples prediction input and output
172      * from your model version into your BigQuery table as predictions occur.
173      * </pre>
174      *
175      * <code>SCHEDULED = 1;</code>
176      */
177     public static final int SCHEDULED_VALUE = 1;
178     /**
179      *
180      *
181      * <pre>
182      * The job is currently running. When the job runs, Data Labeling Service
183      * does several things:
184      * 1. If you have configured your job to use Data Labeling Service for
185      *    ground truth labeling, the service creates a
186      *    [Dataset][google.cloud.datalabeling.v1beta1.Dataset] and a labeling task for all data sampled
187      *    since the last time the job ran. Human labelers provide ground truth
188      *    labels for your data. Human labeling may take hours, or even days,
189      *    depending on how much data has been sampled. The job remains in the
190      *    `RUNNING` state during this time, and it can even be running multiple
191      *    times in parallel if it gets triggered again (for example 24 hours
192      *    later) before the earlier run has completed. When human labelers have
193      *    finished labeling the data, the next step occurs.
194      *    &lt;br&gt;&lt;br&gt;
195      *    If you have configured your job to provide your own ground truth
196      *    labels, Data Labeling Service still creates a [Dataset][google.cloud.datalabeling.v1beta1.Dataset] for newly
197      *    sampled data, but it expects that you have already added ground truth
198      *    labels to the BigQuery table by this time. The next step occurs
199      *    immediately.
200      * 2. Data Labeling Service creates an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] by comparing your
201      *    model version's predictions with the ground truth labels.
202      * If the job remains in this state for a long time, it continues to sample
203      * prediction data into your BigQuery table and will run again at the next
204      * interval, even if it causes the job to run multiple times in parallel.
205      * </pre>
206      *
207      * <code>RUNNING = 2;</code>
208      */
209     public static final int RUNNING_VALUE = 2;
210     /**
211      *
212      *
213      * <pre>
214      * The job is not sampling prediction input and output into your BigQuery
215      * table and it will not run according to its schedule. You can
216      * [resume][google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob] the job.
217      * </pre>
218      *
219      * <code>PAUSED = 3;</code>
220      */
221     public static final int PAUSED_VALUE = 3;
222     /**
223      *
224      *
225      * <pre>
226      * The job has this state right before it is deleted.
227      * </pre>
228      *
229      * <code>STOPPED = 4;</code>
230      */
231     public static final int STOPPED_VALUE = 4;
232 
getNumber()233     public final int getNumber() {
234       if (this == UNRECOGNIZED) {
235         throw new java.lang.IllegalArgumentException(
236             "Can't get the number of an unknown enum value.");
237       }
238       return value;
239     }
240 
241     /**
242      * @param value The numeric wire value of the corresponding enum entry.
243      * @return The enum associated with the given numeric wire value.
244      * @deprecated Use {@link #forNumber(int)} instead.
245      */
246     @java.lang.Deprecated
valueOf(int value)247     public static State valueOf(int value) {
248       return forNumber(value);
249     }
250 
251     /**
252      * @param value The numeric wire value of the corresponding enum entry.
253      * @return The enum associated with the given numeric wire value.
254      */
forNumber(int value)255     public static State forNumber(int value) {
256       switch (value) {
257         case 0:
258           return STATE_UNSPECIFIED;
259         case 1:
260           return SCHEDULED;
261         case 2:
262           return RUNNING;
263         case 3:
264           return PAUSED;
265         case 4:
266           return STOPPED;
267         default:
268           return null;
269       }
270     }
271 
internalGetValueMap()272     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
273       return internalValueMap;
274     }
275 
276     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
277         new com.google.protobuf.Internal.EnumLiteMap<State>() {
278           public State findValueByNumber(int number) {
279             return State.forNumber(number);
280           }
281         };
282 
getValueDescriptor()283     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
284       if (this == UNRECOGNIZED) {
285         throw new java.lang.IllegalStateException(
286             "Can't get the descriptor of an unrecognized enum value.");
287       }
288       return getDescriptor().getValues().get(ordinal());
289     }
290 
getDescriptorForType()291     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
292       return getDescriptor();
293     }
294 
getDescriptor()295     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
296       return com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDescriptor()
297           .getEnumTypes()
298           .get(0);
299     }
300 
301     private static final State[] VALUES = values();
302 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)303     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
304       if (desc.getType() != getDescriptor()) {
305         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
306       }
307       if (desc.getIndex() == -1) {
308         return UNRECOGNIZED;
309       }
310       return VALUES[desc.getIndex()];
311     }
312 
313     private final int value;
314 
State(int value)315     private State(int value) {
316       this.value = value;
317     }
318 
319     // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.EvaluationJob.State)
320   }
321 
322   public static final int NAME_FIELD_NUMBER = 1;
323 
324   @SuppressWarnings("serial")
325   private volatile java.lang.Object name_ = "";
326   /**
327    *
328    *
329    * <pre>
330    * Output only. After you create a job, Data Labeling Service assigns a name
331    * to the job with the following format:
332    * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/evaluationJobs/&lt;var&gt;{evaluation_job_id}&lt;/var&gt;"
333    * </pre>
334    *
335    * <code>string name = 1;</code>
336    *
337    * @return The name.
338    */
339   @java.lang.Override
getName()340   public java.lang.String getName() {
341     java.lang.Object ref = name_;
342     if (ref instanceof java.lang.String) {
343       return (java.lang.String) ref;
344     } else {
345       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
346       java.lang.String s = bs.toStringUtf8();
347       name_ = s;
348       return s;
349     }
350   }
351   /**
352    *
353    *
354    * <pre>
355    * Output only. After you create a job, Data Labeling Service assigns a name
356    * to the job with the following format:
357    * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/evaluationJobs/&lt;var&gt;{evaluation_job_id}&lt;/var&gt;"
358    * </pre>
359    *
360    * <code>string name = 1;</code>
361    *
362    * @return The bytes for name.
363    */
364   @java.lang.Override
getNameBytes()365   public com.google.protobuf.ByteString getNameBytes() {
366     java.lang.Object ref = name_;
367     if (ref instanceof java.lang.String) {
368       com.google.protobuf.ByteString b =
369           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
370       name_ = b;
371       return b;
372     } else {
373       return (com.google.protobuf.ByteString) ref;
374     }
375   }
376 
377   public static final int DESCRIPTION_FIELD_NUMBER = 2;
378 
379   @SuppressWarnings("serial")
380   private volatile java.lang.Object description_ = "";
381   /**
382    *
383    *
384    * <pre>
385    * Required. Description of the job. The description can be up to 25,000
386    * characters long.
387    * </pre>
388    *
389    * <code>string description = 2;</code>
390    *
391    * @return The description.
392    */
393   @java.lang.Override
getDescription()394   public java.lang.String getDescription() {
395     java.lang.Object ref = description_;
396     if (ref instanceof java.lang.String) {
397       return (java.lang.String) ref;
398     } else {
399       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
400       java.lang.String s = bs.toStringUtf8();
401       description_ = s;
402       return s;
403     }
404   }
405   /**
406    *
407    *
408    * <pre>
409    * Required. Description of the job. The description can be up to 25,000
410    * characters long.
411    * </pre>
412    *
413    * <code>string description = 2;</code>
414    *
415    * @return The bytes for description.
416    */
417   @java.lang.Override
getDescriptionBytes()418   public com.google.protobuf.ByteString getDescriptionBytes() {
419     java.lang.Object ref = description_;
420     if (ref instanceof java.lang.String) {
421       com.google.protobuf.ByteString b =
422           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
423       description_ = b;
424       return b;
425     } else {
426       return (com.google.protobuf.ByteString) ref;
427     }
428   }
429 
430   public static final int STATE_FIELD_NUMBER = 3;
431   private int state_ = 0;
432   /**
433    *
434    *
435    * <pre>
436    * Output only. Describes the current state of the job.
437    * </pre>
438    *
439    * <code>.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;</code>
440    *
441    * @return The enum numeric value on the wire for state.
442    */
443   @java.lang.Override
getStateValue()444   public int getStateValue() {
445     return state_;
446   }
447   /**
448    *
449    *
450    * <pre>
451    * Output only. Describes the current state of the job.
452    * </pre>
453    *
454    * <code>.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;</code>
455    *
456    * @return The state.
457    */
458   @java.lang.Override
getState()459   public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() {
460     com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result =
461         com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.forNumber(state_);
462     return result == null
463         ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED
464         : result;
465   }
466 
467   public static final int SCHEDULE_FIELD_NUMBER = 4;
468 
469   @SuppressWarnings("serial")
470   private volatile java.lang.Object schedule_ = "";
471   /**
472    *
473    *
474    * <pre>
475    * Required. Describes the interval at which the job runs. This interval must
476    * be at least 1 day, and it is rounded to the nearest day. For example, if
477    * you specify a 50-hour interval, the job runs every 2 days.
478    * You can provide the schedule in
479    * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
480    * [English-like
481    * format](/appengine/docs/standard/python/config/cronref#schedule_format).
482    * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
483    * interval from this schedule is used, not the specific time of day.
484    * </pre>
485    *
486    * <code>string schedule = 4;</code>
487    *
488    * @return The schedule.
489    */
490   @java.lang.Override
getSchedule()491   public java.lang.String getSchedule() {
492     java.lang.Object ref = schedule_;
493     if (ref instanceof java.lang.String) {
494       return (java.lang.String) ref;
495     } else {
496       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
497       java.lang.String s = bs.toStringUtf8();
498       schedule_ = s;
499       return s;
500     }
501   }
502   /**
503    *
504    *
505    * <pre>
506    * Required. Describes the interval at which the job runs. This interval must
507    * be at least 1 day, and it is rounded to the nearest day. For example, if
508    * you specify a 50-hour interval, the job runs every 2 days.
509    * You can provide the schedule in
510    * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
511    * [English-like
512    * format](/appengine/docs/standard/python/config/cronref#schedule_format).
513    * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
514    * interval from this schedule is used, not the specific time of day.
515    * </pre>
516    *
517    * <code>string schedule = 4;</code>
518    *
519    * @return The bytes for schedule.
520    */
521   @java.lang.Override
getScheduleBytes()522   public com.google.protobuf.ByteString getScheduleBytes() {
523     java.lang.Object ref = schedule_;
524     if (ref instanceof java.lang.String) {
525       com.google.protobuf.ByteString b =
526           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
527       schedule_ = b;
528       return b;
529     } else {
530       return (com.google.protobuf.ByteString) ref;
531     }
532   }
533 
534   public static final int MODEL_VERSION_FIELD_NUMBER = 5;
535 
536   @SuppressWarnings("serial")
537   private volatile java.lang.Object modelVersion_ = "";
538   /**
539    *
540    *
541    * <pre>
542    * Required. The [AI Platform Prediction model
543    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
544    * input and output is sampled from this model version. When creating an
545    * evaluation job, specify the model version in the following format:
546    * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/models/&lt;var&gt;{model_name}&lt;/var&gt;/versions/&lt;var&gt;{version_name}&lt;/var&gt;"
547    * There can only be one evaluation job per model version.
548    * </pre>
549    *
550    * <code>string model_version = 5;</code>
551    *
552    * @return The modelVersion.
553    */
554   @java.lang.Override
getModelVersion()555   public java.lang.String getModelVersion() {
556     java.lang.Object ref = modelVersion_;
557     if (ref instanceof java.lang.String) {
558       return (java.lang.String) ref;
559     } else {
560       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
561       java.lang.String s = bs.toStringUtf8();
562       modelVersion_ = s;
563       return s;
564     }
565   }
566   /**
567    *
568    *
569    * <pre>
570    * Required. The [AI Platform Prediction model
571    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
572    * input and output is sampled from this model version. When creating an
573    * evaluation job, specify the model version in the following format:
574    * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/models/&lt;var&gt;{model_name}&lt;/var&gt;/versions/&lt;var&gt;{version_name}&lt;/var&gt;"
575    * There can only be one evaluation job per model version.
576    * </pre>
577    *
578    * <code>string model_version = 5;</code>
579    *
580    * @return The bytes for modelVersion.
581    */
582   @java.lang.Override
getModelVersionBytes()583   public com.google.protobuf.ByteString getModelVersionBytes() {
584     java.lang.Object ref = modelVersion_;
585     if (ref instanceof java.lang.String) {
586       com.google.protobuf.ByteString b =
587           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
588       modelVersion_ = b;
589       return b;
590     } else {
591       return (com.google.protobuf.ByteString) ref;
592     }
593   }
594 
595   public static final int EVALUATION_JOB_CONFIG_FIELD_NUMBER = 6;
596   private com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluationJobConfig_;
597   /**
598    *
599    *
600    * <pre>
601    * Required. Configuration details for the evaluation job.
602    * </pre>
603    *
604    * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;</code>
605    *
606    * @return Whether the evaluationJobConfig field is set.
607    */
608   @java.lang.Override
hasEvaluationJobConfig()609   public boolean hasEvaluationJobConfig() {
610     return evaluationJobConfig_ != null;
611   }
612   /**
613    *
614    *
615    * <pre>
616    * Required. Configuration details for the evaluation job.
617    * </pre>
618    *
619    * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;</code>
620    *
621    * @return The evaluationJobConfig.
622    */
623   @java.lang.Override
getEvaluationJobConfig()624   public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig() {
625     return evaluationJobConfig_ == null
626         ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance()
627         : evaluationJobConfig_;
628   }
629   /**
630    *
631    *
632    * <pre>
633    * Required. Configuration details for the evaluation job.
634    * </pre>
635    *
636    * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;</code>
637    */
638   @java.lang.Override
639   public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder
getEvaluationJobConfigOrBuilder()640       getEvaluationJobConfigOrBuilder() {
641     return evaluationJobConfig_ == null
642         ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance()
643         : evaluationJobConfig_;
644   }
645 
646   public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 7;
647 
648   @SuppressWarnings("serial")
649   private volatile java.lang.Object annotationSpecSet_ = "";
650   /**
651    *
652    *
653    * <pre>
654    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
655    * labels that your machine learning model outputs. You must create this
656    * resource before you create an evaluation job and provide its name in the
657    * following format:
658    * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/annotationSpecSets/&lt;var&gt;{annotation_spec_set_id}&lt;/var&gt;"
659    * </pre>
660    *
661    * <code>string annotation_spec_set = 7;</code>
662    *
663    * @return The annotationSpecSet.
664    */
665   @java.lang.Override
getAnnotationSpecSet()666   public java.lang.String getAnnotationSpecSet() {
667     java.lang.Object ref = annotationSpecSet_;
668     if (ref instanceof java.lang.String) {
669       return (java.lang.String) ref;
670     } else {
671       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
672       java.lang.String s = bs.toStringUtf8();
673       annotationSpecSet_ = s;
674       return s;
675     }
676   }
677   /**
678    *
679    *
680    * <pre>
681    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
682    * labels that your machine learning model outputs. You must create this
683    * resource before you create an evaluation job and provide its name in the
684    * following format:
685    * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/annotationSpecSets/&lt;var&gt;{annotation_spec_set_id}&lt;/var&gt;"
686    * </pre>
687    *
688    * <code>string annotation_spec_set = 7;</code>
689    *
690    * @return The bytes for annotationSpecSet.
691    */
692   @java.lang.Override
getAnnotationSpecSetBytes()693   public com.google.protobuf.ByteString getAnnotationSpecSetBytes() {
694     java.lang.Object ref = annotationSpecSet_;
695     if (ref instanceof java.lang.String) {
696       com.google.protobuf.ByteString b =
697           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
698       annotationSpecSet_ = b;
699       return b;
700     } else {
701       return (com.google.protobuf.ByteString) ref;
702     }
703   }
704 
705   public static final int LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER = 8;
706   private boolean labelMissingGroundTruth_ = false;
707   /**
708    *
709    *
710    * <pre>
711    * Required. Whether you want Data Labeling Service to provide ground truth
712    * labels for prediction input. If you want the service to assign human
713    * labelers to annotate your data, set this to `true`. If you want to provide
714    * your own ground truth labels in the evaluation job's BigQuery table, set
715    * this to `false`.
716    * </pre>
717    *
718    * <code>bool label_missing_ground_truth = 8;</code>
719    *
720    * @return The labelMissingGroundTruth.
721    */
722   @java.lang.Override
getLabelMissingGroundTruth()723   public boolean getLabelMissingGroundTruth() {
724     return labelMissingGroundTruth_;
725   }
726 
727   public static final int ATTEMPTS_FIELD_NUMBER = 9;
728 
729   @SuppressWarnings("serial")
730   private java.util.List<com.google.cloud.datalabeling.v1beta1.Attempt> attempts_;
731   /**
732    *
733    *
734    * <pre>
735    * Output only. Every time the evaluation job runs and an error occurs, the
736    * failed attempt is appended to this array.
737    * </pre>
738    *
739    * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
740    */
741   @java.lang.Override
getAttemptsList()742   public java.util.List<com.google.cloud.datalabeling.v1beta1.Attempt> getAttemptsList() {
743     return attempts_;
744   }
745   /**
746    *
747    *
748    * <pre>
749    * Output only. Every time the evaluation job runs and an error occurs, the
750    * failed attempt is appended to this array.
751    * </pre>
752    *
753    * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
754    */
755   @java.lang.Override
756   public java.util.List<? extends com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>
getAttemptsOrBuilderList()757       getAttemptsOrBuilderList() {
758     return attempts_;
759   }
760   /**
761    *
762    *
763    * <pre>
764    * Output only. Every time the evaluation job runs and an error occurs, the
765    * failed attempt is appended to this array.
766    * </pre>
767    *
768    * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
769    */
770   @java.lang.Override
getAttemptsCount()771   public int getAttemptsCount() {
772     return attempts_.size();
773   }
774   /**
775    *
776    *
777    * <pre>
778    * Output only. Every time the evaluation job runs and an error occurs, the
779    * failed attempt is appended to this array.
780    * </pre>
781    *
782    * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
783    */
784   @java.lang.Override
getAttempts(int index)785   public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
786     return attempts_.get(index);
787   }
788   /**
789    *
790    *
791    * <pre>
792    * Output only. Every time the evaluation job runs and an error occurs, the
793    * failed attempt is appended to this array.
794    * </pre>
795    *
796    * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
797    */
798   @java.lang.Override
getAttemptsOrBuilder(int index)799   public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index) {
800     return attempts_.get(index);
801   }
802 
803   public static final int CREATE_TIME_FIELD_NUMBER = 10;
804   private com.google.protobuf.Timestamp createTime_;
805   /**
806    *
807    *
808    * <pre>
809    * Output only. Timestamp of when this evaluation job was created.
810    * </pre>
811    *
812    * <code>.google.protobuf.Timestamp create_time = 10;</code>
813    *
814    * @return Whether the createTime field is set.
815    */
816   @java.lang.Override
hasCreateTime()817   public boolean hasCreateTime() {
818     return createTime_ != null;
819   }
820   /**
821    *
822    *
823    * <pre>
824    * Output only. Timestamp of when this evaluation job was created.
825    * </pre>
826    *
827    * <code>.google.protobuf.Timestamp create_time = 10;</code>
828    *
829    * @return The createTime.
830    */
831   @java.lang.Override
getCreateTime()832   public com.google.protobuf.Timestamp getCreateTime() {
833     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
834   }
835   /**
836    *
837    *
838    * <pre>
839    * Output only. Timestamp of when this evaluation job was created.
840    * </pre>
841    *
842    * <code>.google.protobuf.Timestamp create_time = 10;</code>
843    */
844   @java.lang.Override
getCreateTimeOrBuilder()845   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
846     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
847   }
848 
849   private byte memoizedIsInitialized = -1;
850 
851   @java.lang.Override
isInitialized()852   public final boolean isInitialized() {
853     byte isInitialized = memoizedIsInitialized;
854     if (isInitialized == 1) return true;
855     if (isInitialized == 0) return false;
856 
857     memoizedIsInitialized = 1;
858     return true;
859   }
860 
861   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)862   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
863     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
864       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
865     }
866     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
867       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
868     }
869     if (state_
870         != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED
871             .getNumber()) {
872       output.writeEnum(3, state_);
873     }
874     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) {
875       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, schedule_);
876     }
877     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) {
878       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modelVersion_);
879     }
880     if (evaluationJobConfig_ != null) {
881       output.writeMessage(6, getEvaluationJobConfig());
882     }
883     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) {
884       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, annotationSpecSet_);
885     }
886     if (labelMissingGroundTruth_ != false) {
887       output.writeBool(8, labelMissingGroundTruth_);
888     }
889     for (int i = 0; i < attempts_.size(); i++) {
890       output.writeMessage(9, attempts_.get(i));
891     }
892     if (createTime_ != null) {
893       output.writeMessage(10, getCreateTime());
894     }
895     getUnknownFields().writeTo(output);
896   }
897 
898   @java.lang.Override
getSerializedSize()899   public int getSerializedSize() {
900     int size = memoizedSize;
901     if (size != -1) return size;
902 
903     size = 0;
904     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
905       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
906     }
907     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
908       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
909     }
910     if (state_
911         != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED
912             .getNumber()) {
913       size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_);
914     }
915     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) {
916       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, schedule_);
917     }
918     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersion_)) {
919       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelVersion_);
920     }
921     if (evaluationJobConfig_ != null) {
922       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEvaluationJobConfig());
923     }
924     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) {
925       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, annotationSpecSet_);
926     }
927     if (labelMissingGroundTruth_ != false) {
928       size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, labelMissingGroundTruth_);
929     }
930     for (int i = 0; i < attempts_.size(); i++) {
931       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, attempts_.get(i));
932     }
933     if (createTime_ != null) {
934       size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime());
935     }
936     size += getUnknownFields().getSerializedSize();
937     memoizedSize = size;
938     return size;
939   }
940 
941   @java.lang.Override
equals(final java.lang.Object obj)942   public boolean equals(final java.lang.Object obj) {
943     if (obj == this) {
944       return true;
945     }
946     if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJob)) {
947       return super.equals(obj);
948     }
949     com.google.cloud.datalabeling.v1beta1.EvaluationJob other =
950         (com.google.cloud.datalabeling.v1beta1.EvaluationJob) obj;
951 
952     if (!getName().equals(other.getName())) return false;
953     if (!getDescription().equals(other.getDescription())) return false;
954     if (state_ != other.state_) return false;
955     if (!getSchedule().equals(other.getSchedule())) return false;
956     if (!getModelVersion().equals(other.getModelVersion())) return false;
957     if (hasEvaluationJobConfig() != other.hasEvaluationJobConfig()) return false;
958     if (hasEvaluationJobConfig()) {
959       if (!getEvaluationJobConfig().equals(other.getEvaluationJobConfig())) return false;
960     }
961     if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false;
962     if (getLabelMissingGroundTruth() != other.getLabelMissingGroundTruth()) return false;
963     if (!getAttemptsList().equals(other.getAttemptsList())) return false;
964     if (hasCreateTime() != other.hasCreateTime()) return false;
965     if (hasCreateTime()) {
966       if (!getCreateTime().equals(other.getCreateTime())) return false;
967     }
968     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
969     return true;
970   }
971 
972   @java.lang.Override
hashCode()973   public int hashCode() {
974     if (memoizedHashCode != 0) {
975       return memoizedHashCode;
976     }
977     int hash = 41;
978     hash = (19 * hash) + getDescriptor().hashCode();
979     hash = (37 * hash) + NAME_FIELD_NUMBER;
980     hash = (53 * hash) + getName().hashCode();
981     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
982     hash = (53 * hash) + getDescription().hashCode();
983     hash = (37 * hash) + STATE_FIELD_NUMBER;
984     hash = (53 * hash) + state_;
985     hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
986     hash = (53 * hash) + getSchedule().hashCode();
987     hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER;
988     hash = (53 * hash) + getModelVersion().hashCode();
989     if (hasEvaluationJobConfig()) {
990       hash = (37 * hash) + EVALUATION_JOB_CONFIG_FIELD_NUMBER;
991       hash = (53 * hash) + getEvaluationJobConfig().hashCode();
992     }
993     hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER;
994     hash = (53 * hash) + getAnnotationSpecSet().hashCode();
995     hash = (37 * hash) + LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER;
996     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLabelMissingGroundTruth());
997     if (getAttemptsCount() > 0) {
998       hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER;
999       hash = (53 * hash) + getAttemptsList().hashCode();
1000     }
1001     if (hasCreateTime()) {
1002       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1003       hash = (53 * hash) + getCreateTime().hashCode();
1004     }
1005     hash = (29 * hash) + getUnknownFields().hashCode();
1006     memoizedHashCode = hash;
1007     return hash;
1008   }
1009 
parseFrom( java.nio.ByteBuffer data)1010   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1011       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
1012     return PARSER.parseFrom(data);
1013   }
1014 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1015   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1016       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1017       throws com.google.protobuf.InvalidProtocolBufferException {
1018     return PARSER.parseFrom(data, extensionRegistry);
1019   }
1020 
parseFrom( com.google.protobuf.ByteString data)1021   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1022       com.google.protobuf.ByteString data)
1023       throws com.google.protobuf.InvalidProtocolBufferException {
1024     return PARSER.parseFrom(data);
1025   }
1026 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1027   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1028       com.google.protobuf.ByteString data,
1029       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1030       throws com.google.protobuf.InvalidProtocolBufferException {
1031     return PARSER.parseFrom(data, extensionRegistry);
1032   }
1033 
parseFrom(byte[] data)1034   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(byte[] data)
1035       throws com.google.protobuf.InvalidProtocolBufferException {
1036     return PARSER.parseFrom(data);
1037   }
1038 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1039   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1040       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1041       throws com.google.protobuf.InvalidProtocolBufferException {
1042     return PARSER.parseFrom(data, extensionRegistry);
1043   }
1044 
parseFrom( java.io.InputStream input)1045   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1046       java.io.InputStream input) throws java.io.IOException {
1047     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1048   }
1049 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1050   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1051       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1052       throws java.io.IOException {
1053     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1054         PARSER, input, extensionRegistry);
1055   }
1056 
parseDelimitedFrom( java.io.InputStream input)1057   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom(
1058       java.io.InputStream input) throws java.io.IOException {
1059     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1060   }
1061 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1062   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom(
1063       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1064       throws java.io.IOException {
1065     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1066         PARSER, input, extensionRegistry);
1067   }
1068 
parseFrom( com.google.protobuf.CodedInputStream input)1069   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1070       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1071     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1072   }
1073 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1074   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(
1075       com.google.protobuf.CodedInputStream input,
1076       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1077       throws java.io.IOException {
1078     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1079         PARSER, input, extensionRegistry);
1080   }
1081 
1082   @java.lang.Override
newBuilderForType()1083   public Builder newBuilderForType() {
1084     return newBuilder();
1085   }
1086 
newBuilder()1087   public static Builder newBuilder() {
1088     return DEFAULT_INSTANCE.toBuilder();
1089   }
1090 
newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJob prototype)1091   public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJob prototype) {
1092     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1093   }
1094 
1095   @java.lang.Override
toBuilder()1096   public Builder toBuilder() {
1097     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1098   }
1099 
1100   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1101   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1102     Builder builder = new Builder(parent);
1103     return builder;
1104   }
1105   /**
1106    *
1107    *
1108    * <pre>
1109    * Defines an evaluation job that runs periodically to generate
1110    * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
1111    * job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point
1112    * for using continuous evaluation.
1113    * </pre>
1114    *
1115    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob}
1116    */
1117   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1118       implements
1119       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJob)
1120       com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder {
getDescriptor()1121     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1122       return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
1123           .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
1124     }
1125 
1126     @java.lang.Override
1127     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1128         internalGetFieldAccessorTable() {
1129       return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
1130           .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
1131           .ensureFieldAccessorsInitialized(
1132               com.google.cloud.datalabeling.v1beta1.EvaluationJob.class,
1133               com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
1134     }
1135 
1136     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder()
Builder()1137     private Builder() {}
1138 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1139     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1140       super(parent);
1141     }
1142 
1143     @java.lang.Override
clear()1144     public Builder clear() {
1145       super.clear();
1146       bitField0_ = 0;
1147       name_ = "";
1148       description_ = "";
1149       state_ = 0;
1150       schedule_ = "";
1151       modelVersion_ = "";
1152       evaluationJobConfig_ = null;
1153       if (evaluationJobConfigBuilder_ != null) {
1154         evaluationJobConfigBuilder_.dispose();
1155         evaluationJobConfigBuilder_ = null;
1156       }
1157       annotationSpecSet_ = "";
1158       labelMissingGroundTruth_ = false;
1159       if (attemptsBuilder_ == null) {
1160         attempts_ = java.util.Collections.emptyList();
1161       } else {
1162         attempts_ = null;
1163         attemptsBuilder_.clear();
1164       }
1165       bitField0_ = (bitField0_ & ~0x00000100);
1166       createTime_ = null;
1167       if (createTimeBuilder_ != null) {
1168         createTimeBuilder_.dispose();
1169         createTimeBuilder_ = null;
1170       }
1171       return this;
1172     }
1173 
1174     @java.lang.Override
getDescriptorForType()1175     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1176       return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
1177           .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
1178     }
1179 
1180     @java.lang.Override
getDefaultInstanceForType()1181     public com.google.cloud.datalabeling.v1beta1.EvaluationJob getDefaultInstanceForType() {
1182       return com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance();
1183     }
1184 
1185     @java.lang.Override
build()1186     public com.google.cloud.datalabeling.v1beta1.EvaluationJob build() {
1187       com.google.cloud.datalabeling.v1beta1.EvaluationJob result = buildPartial();
1188       if (!result.isInitialized()) {
1189         throw newUninitializedMessageException(result);
1190       }
1191       return result;
1192     }
1193 
1194     @java.lang.Override
buildPartial()1195     public com.google.cloud.datalabeling.v1beta1.EvaluationJob buildPartial() {
1196       com.google.cloud.datalabeling.v1beta1.EvaluationJob result =
1197           new com.google.cloud.datalabeling.v1beta1.EvaluationJob(this);
1198       buildPartialRepeatedFields(result);
1199       if (bitField0_ != 0) {
1200         buildPartial0(result);
1201       }
1202       onBuilt();
1203       return result;
1204     }
1205 
buildPartialRepeatedFields( com.google.cloud.datalabeling.v1beta1.EvaluationJob result)1206     private void buildPartialRepeatedFields(
1207         com.google.cloud.datalabeling.v1beta1.EvaluationJob result) {
1208       if (attemptsBuilder_ == null) {
1209         if (((bitField0_ & 0x00000100) != 0)) {
1210           attempts_ = java.util.Collections.unmodifiableList(attempts_);
1211           bitField0_ = (bitField0_ & ~0x00000100);
1212         }
1213         result.attempts_ = attempts_;
1214       } else {
1215         result.attempts_ = attemptsBuilder_.build();
1216       }
1217     }
1218 
buildPartial0(com.google.cloud.datalabeling.v1beta1.EvaluationJob result)1219     private void buildPartial0(com.google.cloud.datalabeling.v1beta1.EvaluationJob result) {
1220       int from_bitField0_ = bitField0_;
1221       if (((from_bitField0_ & 0x00000001) != 0)) {
1222         result.name_ = name_;
1223       }
1224       if (((from_bitField0_ & 0x00000002) != 0)) {
1225         result.description_ = description_;
1226       }
1227       if (((from_bitField0_ & 0x00000004) != 0)) {
1228         result.state_ = state_;
1229       }
1230       if (((from_bitField0_ & 0x00000008) != 0)) {
1231         result.schedule_ = schedule_;
1232       }
1233       if (((from_bitField0_ & 0x00000010) != 0)) {
1234         result.modelVersion_ = modelVersion_;
1235       }
1236       if (((from_bitField0_ & 0x00000020) != 0)) {
1237         result.evaluationJobConfig_ =
1238             evaluationJobConfigBuilder_ == null
1239                 ? evaluationJobConfig_
1240                 : evaluationJobConfigBuilder_.build();
1241       }
1242       if (((from_bitField0_ & 0x00000040) != 0)) {
1243         result.annotationSpecSet_ = annotationSpecSet_;
1244       }
1245       if (((from_bitField0_ & 0x00000080) != 0)) {
1246         result.labelMissingGroundTruth_ = labelMissingGroundTruth_;
1247       }
1248       if (((from_bitField0_ & 0x00000200) != 0)) {
1249         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1250       }
1251     }
1252 
1253     @java.lang.Override
clone()1254     public Builder clone() {
1255       return super.clone();
1256     }
1257 
1258     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1259     public Builder setField(
1260         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1261       return super.setField(field, value);
1262     }
1263 
1264     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1265     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1266       return super.clearField(field);
1267     }
1268 
1269     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1270     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1271       return super.clearOneof(oneof);
1272     }
1273 
1274     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1275     public Builder setRepeatedField(
1276         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1277       return super.setRepeatedField(field, index, value);
1278     }
1279 
1280     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1281     public Builder addRepeatedField(
1282         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1283       return super.addRepeatedField(field, value);
1284     }
1285 
1286     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1287     public Builder mergeFrom(com.google.protobuf.Message other) {
1288       if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJob) {
1289         return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJob) other);
1290       } else {
1291         super.mergeFrom(other);
1292         return this;
1293       }
1294     }
1295 
mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJob other)1296     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJob other) {
1297       if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())
1298         return this;
1299       if (!other.getName().isEmpty()) {
1300         name_ = other.name_;
1301         bitField0_ |= 0x00000001;
1302         onChanged();
1303       }
1304       if (!other.getDescription().isEmpty()) {
1305         description_ = other.description_;
1306         bitField0_ |= 0x00000002;
1307         onChanged();
1308       }
1309       if (other.state_ != 0) {
1310         setStateValue(other.getStateValue());
1311       }
1312       if (!other.getSchedule().isEmpty()) {
1313         schedule_ = other.schedule_;
1314         bitField0_ |= 0x00000008;
1315         onChanged();
1316       }
1317       if (!other.getModelVersion().isEmpty()) {
1318         modelVersion_ = other.modelVersion_;
1319         bitField0_ |= 0x00000010;
1320         onChanged();
1321       }
1322       if (other.hasEvaluationJobConfig()) {
1323         mergeEvaluationJobConfig(other.getEvaluationJobConfig());
1324       }
1325       if (!other.getAnnotationSpecSet().isEmpty()) {
1326         annotationSpecSet_ = other.annotationSpecSet_;
1327         bitField0_ |= 0x00000040;
1328         onChanged();
1329       }
1330       if (other.getLabelMissingGroundTruth() != false) {
1331         setLabelMissingGroundTruth(other.getLabelMissingGroundTruth());
1332       }
1333       if (attemptsBuilder_ == null) {
1334         if (!other.attempts_.isEmpty()) {
1335           if (attempts_.isEmpty()) {
1336             attempts_ = other.attempts_;
1337             bitField0_ = (bitField0_ & ~0x00000100);
1338           } else {
1339             ensureAttemptsIsMutable();
1340             attempts_.addAll(other.attempts_);
1341           }
1342           onChanged();
1343         }
1344       } else {
1345         if (!other.attempts_.isEmpty()) {
1346           if (attemptsBuilder_.isEmpty()) {
1347             attemptsBuilder_.dispose();
1348             attemptsBuilder_ = null;
1349             attempts_ = other.attempts_;
1350             bitField0_ = (bitField0_ & ~0x00000100);
1351             attemptsBuilder_ =
1352                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1353                     ? getAttemptsFieldBuilder()
1354                     : null;
1355           } else {
1356             attemptsBuilder_.addAllMessages(other.attempts_);
1357           }
1358         }
1359       }
1360       if (other.hasCreateTime()) {
1361         mergeCreateTime(other.getCreateTime());
1362       }
1363       this.mergeUnknownFields(other.getUnknownFields());
1364       onChanged();
1365       return this;
1366     }
1367 
1368     @java.lang.Override
isInitialized()1369     public final boolean isInitialized() {
1370       return true;
1371     }
1372 
1373     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1374     public Builder mergeFrom(
1375         com.google.protobuf.CodedInputStream input,
1376         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1377         throws java.io.IOException {
1378       if (extensionRegistry == null) {
1379         throw new java.lang.NullPointerException();
1380       }
1381       try {
1382         boolean done = false;
1383         while (!done) {
1384           int tag = input.readTag();
1385           switch (tag) {
1386             case 0:
1387               done = true;
1388               break;
1389             case 10:
1390               {
1391                 name_ = input.readStringRequireUtf8();
1392                 bitField0_ |= 0x00000001;
1393                 break;
1394               } // case 10
1395             case 18:
1396               {
1397                 description_ = input.readStringRequireUtf8();
1398                 bitField0_ |= 0x00000002;
1399                 break;
1400               } // case 18
1401             case 24:
1402               {
1403                 state_ = input.readEnum();
1404                 bitField0_ |= 0x00000004;
1405                 break;
1406               } // case 24
1407             case 34:
1408               {
1409                 schedule_ = input.readStringRequireUtf8();
1410                 bitField0_ |= 0x00000008;
1411                 break;
1412               } // case 34
1413             case 42:
1414               {
1415                 modelVersion_ = input.readStringRequireUtf8();
1416                 bitField0_ |= 0x00000010;
1417                 break;
1418               } // case 42
1419             case 50:
1420               {
1421                 input.readMessage(
1422                     getEvaluationJobConfigFieldBuilder().getBuilder(), extensionRegistry);
1423                 bitField0_ |= 0x00000020;
1424                 break;
1425               } // case 50
1426             case 58:
1427               {
1428                 annotationSpecSet_ = input.readStringRequireUtf8();
1429                 bitField0_ |= 0x00000040;
1430                 break;
1431               } // case 58
1432             case 64:
1433               {
1434                 labelMissingGroundTruth_ = input.readBool();
1435                 bitField0_ |= 0x00000080;
1436                 break;
1437               } // case 64
1438             case 74:
1439               {
1440                 com.google.cloud.datalabeling.v1beta1.Attempt m =
1441                     input.readMessage(
1442                         com.google.cloud.datalabeling.v1beta1.Attempt.parser(), extensionRegistry);
1443                 if (attemptsBuilder_ == null) {
1444                   ensureAttemptsIsMutable();
1445                   attempts_.add(m);
1446                 } else {
1447                   attemptsBuilder_.addMessage(m);
1448                 }
1449                 break;
1450               } // case 74
1451             case 82:
1452               {
1453                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1454                 bitField0_ |= 0x00000200;
1455                 break;
1456               } // case 82
1457             default:
1458               {
1459                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1460                   done = true; // was an endgroup tag
1461                 }
1462                 break;
1463               } // default:
1464           } // switch (tag)
1465         } // while (!done)
1466       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1467         throw e.unwrapIOException();
1468       } finally {
1469         onChanged();
1470       } // finally
1471       return this;
1472     }
1473 
1474     private int bitField0_;
1475 
1476     private java.lang.Object name_ = "";
1477     /**
1478      *
1479      *
1480      * <pre>
1481      * Output only. After you create a job, Data Labeling Service assigns a name
1482      * to the job with the following format:
1483      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/evaluationJobs/&lt;var&gt;{evaluation_job_id}&lt;/var&gt;"
1484      * </pre>
1485      *
1486      * <code>string name = 1;</code>
1487      *
1488      * @return The name.
1489      */
getName()1490     public java.lang.String getName() {
1491       java.lang.Object ref = name_;
1492       if (!(ref instanceof java.lang.String)) {
1493         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1494         java.lang.String s = bs.toStringUtf8();
1495         name_ = s;
1496         return s;
1497       } else {
1498         return (java.lang.String) ref;
1499       }
1500     }
1501     /**
1502      *
1503      *
1504      * <pre>
1505      * Output only. After you create a job, Data Labeling Service assigns a name
1506      * to the job with the following format:
1507      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/evaluationJobs/&lt;var&gt;{evaluation_job_id}&lt;/var&gt;"
1508      * </pre>
1509      *
1510      * <code>string name = 1;</code>
1511      *
1512      * @return The bytes for name.
1513      */
getNameBytes()1514     public com.google.protobuf.ByteString getNameBytes() {
1515       java.lang.Object ref = name_;
1516       if (ref instanceof String) {
1517         com.google.protobuf.ByteString b =
1518             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1519         name_ = b;
1520         return b;
1521       } else {
1522         return (com.google.protobuf.ByteString) ref;
1523       }
1524     }
1525     /**
1526      *
1527      *
1528      * <pre>
1529      * Output only. After you create a job, Data Labeling Service assigns a name
1530      * to the job with the following format:
1531      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/evaluationJobs/&lt;var&gt;{evaluation_job_id}&lt;/var&gt;"
1532      * </pre>
1533      *
1534      * <code>string name = 1;</code>
1535      *
1536      * @param value The name to set.
1537      * @return This builder for chaining.
1538      */
setName(java.lang.String value)1539     public Builder setName(java.lang.String value) {
1540       if (value == null) {
1541         throw new NullPointerException();
1542       }
1543       name_ = value;
1544       bitField0_ |= 0x00000001;
1545       onChanged();
1546       return this;
1547     }
1548     /**
1549      *
1550      *
1551      * <pre>
1552      * Output only. After you create a job, Data Labeling Service assigns a name
1553      * to the job with the following format:
1554      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/evaluationJobs/&lt;var&gt;{evaluation_job_id}&lt;/var&gt;"
1555      * </pre>
1556      *
1557      * <code>string name = 1;</code>
1558      *
1559      * @return This builder for chaining.
1560      */
clearName()1561     public Builder clearName() {
1562       name_ = getDefaultInstance().getName();
1563       bitField0_ = (bitField0_ & ~0x00000001);
1564       onChanged();
1565       return this;
1566     }
1567     /**
1568      *
1569      *
1570      * <pre>
1571      * Output only. After you create a job, Data Labeling Service assigns a name
1572      * to the job with the following format:
1573      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/evaluationJobs/&lt;var&gt;{evaluation_job_id}&lt;/var&gt;"
1574      * </pre>
1575      *
1576      * <code>string name = 1;</code>
1577      *
1578      * @param value The bytes for name to set.
1579      * @return This builder for chaining.
1580      */
setNameBytes(com.google.protobuf.ByteString value)1581     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1582       if (value == null) {
1583         throw new NullPointerException();
1584       }
1585       checkByteStringIsUtf8(value);
1586       name_ = value;
1587       bitField0_ |= 0x00000001;
1588       onChanged();
1589       return this;
1590     }
1591 
1592     private java.lang.Object description_ = "";
1593     /**
1594      *
1595      *
1596      * <pre>
1597      * Required. Description of the job. The description can be up to 25,000
1598      * characters long.
1599      * </pre>
1600      *
1601      * <code>string description = 2;</code>
1602      *
1603      * @return The description.
1604      */
getDescription()1605     public java.lang.String getDescription() {
1606       java.lang.Object ref = description_;
1607       if (!(ref instanceof java.lang.String)) {
1608         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1609         java.lang.String s = bs.toStringUtf8();
1610         description_ = s;
1611         return s;
1612       } else {
1613         return (java.lang.String) ref;
1614       }
1615     }
1616     /**
1617      *
1618      *
1619      * <pre>
1620      * Required. Description of the job. The description can be up to 25,000
1621      * characters long.
1622      * </pre>
1623      *
1624      * <code>string description = 2;</code>
1625      *
1626      * @return The bytes for description.
1627      */
getDescriptionBytes()1628     public com.google.protobuf.ByteString getDescriptionBytes() {
1629       java.lang.Object ref = description_;
1630       if (ref instanceof String) {
1631         com.google.protobuf.ByteString b =
1632             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1633         description_ = b;
1634         return b;
1635       } else {
1636         return (com.google.protobuf.ByteString) ref;
1637       }
1638     }
1639     /**
1640      *
1641      *
1642      * <pre>
1643      * Required. Description of the job. The description can be up to 25,000
1644      * characters long.
1645      * </pre>
1646      *
1647      * <code>string description = 2;</code>
1648      *
1649      * @param value The description to set.
1650      * @return This builder for chaining.
1651      */
setDescription(java.lang.String value)1652     public Builder setDescription(java.lang.String value) {
1653       if (value == null) {
1654         throw new NullPointerException();
1655       }
1656       description_ = value;
1657       bitField0_ |= 0x00000002;
1658       onChanged();
1659       return this;
1660     }
1661     /**
1662      *
1663      *
1664      * <pre>
1665      * Required. Description of the job. The description can be up to 25,000
1666      * characters long.
1667      * </pre>
1668      *
1669      * <code>string description = 2;</code>
1670      *
1671      * @return This builder for chaining.
1672      */
clearDescription()1673     public Builder clearDescription() {
1674       description_ = getDefaultInstance().getDescription();
1675       bitField0_ = (bitField0_ & ~0x00000002);
1676       onChanged();
1677       return this;
1678     }
1679     /**
1680      *
1681      *
1682      * <pre>
1683      * Required. Description of the job. The description can be up to 25,000
1684      * characters long.
1685      * </pre>
1686      *
1687      * <code>string description = 2;</code>
1688      *
1689      * @param value The bytes for description to set.
1690      * @return This builder for chaining.
1691      */
setDescriptionBytes(com.google.protobuf.ByteString value)1692     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
1693       if (value == null) {
1694         throw new NullPointerException();
1695       }
1696       checkByteStringIsUtf8(value);
1697       description_ = value;
1698       bitField0_ |= 0x00000002;
1699       onChanged();
1700       return this;
1701     }
1702 
1703     private int state_ = 0;
1704     /**
1705      *
1706      *
1707      * <pre>
1708      * Output only. Describes the current state of the job.
1709      * </pre>
1710      *
1711      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;</code>
1712      *
1713      * @return The enum numeric value on the wire for state.
1714      */
1715     @java.lang.Override
getStateValue()1716     public int getStateValue() {
1717       return state_;
1718     }
1719     /**
1720      *
1721      *
1722      * <pre>
1723      * Output only. Describes the current state of the job.
1724      * </pre>
1725      *
1726      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;</code>
1727      *
1728      * @param value The enum numeric value on the wire for state to set.
1729      * @return This builder for chaining.
1730      */
setStateValue(int value)1731     public Builder setStateValue(int value) {
1732       state_ = value;
1733       bitField0_ |= 0x00000004;
1734       onChanged();
1735       return this;
1736     }
1737     /**
1738      *
1739      *
1740      * <pre>
1741      * Output only. Describes the current state of the job.
1742      * </pre>
1743      *
1744      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;</code>
1745      *
1746      * @return The state.
1747      */
1748     @java.lang.Override
getState()1749     public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() {
1750       com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result =
1751           com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.forNumber(state_);
1752       return result == null
1753           ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED
1754           : result;
1755     }
1756     /**
1757      *
1758      *
1759      * <pre>
1760      * Output only. Describes the current state of the job.
1761      * </pre>
1762      *
1763      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;</code>
1764      *
1765      * @param value The state to set.
1766      * @return This builder for chaining.
1767      */
setState(com.google.cloud.datalabeling.v1beta1.EvaluationJob.State value)1768     public Builder setState(com.google.cloud.datalabeling.v1beta1.EvaluationJob.State value) {
1769       if (value == null) {
1770         throw new NullPointerException();
1771       }
1772       bitField0_ |= 0x00000004;
1773       state_ = value.getNumber();
1774       onChanged();
1775       return this;
1776     }
1777     /**
1778      *
1779      *
1780      * <pre>
1781      * Output only. Describes the current state of the job.
1782      * </pre>
1783      *
1784      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3;</code>
1785      *
1786      * @return This builder for chaining.
1787      */
clearState()1788     public Builder clearState() {
1789       bitField0_ = (bitField0_ & ~0x00000004);
1790       state_ = 0;
1791       onChanged();
1792       return this;
1793     }
1794 
1795     private java.lang.Object schedule_ = "";
1796     /**
1797      *
1798      *
1799      * <pre>
1800      * Required. Describes the interval at which the job runs. This interval must
1801      * be at least 1 day, and it is rounded to the nearest day. For example, if
1802      * you specify a 50-hour interval, the job runs every 2 days.
1803      * You can provide the schedule in
1804      * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
1805      * [English-like
1806      * format](/appengine/docs/standard/python/config/cronref#schedule_format).
1807      * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
1808      * interval from this schedule is used, not the specific time of day.
1809      * </pre>
1810      *
1811      * <code>string schedule = 4;</code>
1812      *
1813      * @return The schedule.
1814      */
getSchedule()1815     public java.lang.String getSchedule() {
1816       java.lang.Object ref = schedule_;
1817       if (!(ref instanceof java.lang.String)) {
1818         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1819         java.lang.String s = bs.toStringUtf8();
1820         schedule_ = s;
1821         return s;
1822       } else {
1823         return (java.lang.String) ref;
1824       }
1825     }
1826     /**
1827      *
1828      *
1829      * <pre>
1830      * Required. Describes the interval at which the job runs. This interval must
1831      * be at least 1 day, and it is rounded to the nearest day. For example, if
1832      * you specify a 50-hour interval, the job runs every 2 days.
1833      * You can provide the schedule in
1834      * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
1835      * [English-like
1836      * format](/appengine/docs/standard/python/config/cronref#schedule_format).
1837      * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
1838      * interval from this schedule is used, not the specific time of day.
1839      * </pre>
1840      *
1841      * <code>string schedule = 4;</code>
1842      *
1843      * @return The bytes for schedule.
1844      */
getScheduleBytes()1845     public com.google.protobuf.ByteString getScheduleBytes() {
1846       java.lang.Object ref = schedule_;
1847       if (ref instanceof String) {
1848         com.google.protobuf.ByteString b =
1849             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1850         schedule_ = b;
1851         return b;
1852       } else {
1853         return (com.google.protobuf.ByteString) ref;
1854       }
1855     }
1856     /**
1857      *
1858      *
1859      * <pre>
1860      * Required. Describes the interval at which the job runs. This interval must
1861      * be at least 1 day, and it is rounded to the nearest day. For example, if
1862      * you specify a 50-hour interval, the job runs every 2 days.
1863      * You can provide the schedule in
1864      * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
1865      * [English-like
1866      * format](/appengine/docs/standard/python/config/cronref#schedule_format).
1867      * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
1868      * interval from this schedule is used, not the specific time of day.
1869      * </pre>
1870      *
1871      * <code>string schedule = 4;</code>
1872      *
1873      * @param value The schedule to set.
1874      * @return This builder for chaining.
1875      */
setSchedule(java.lang.String value)1876     public Builder setSchedule(java.lang.String value) {
1877       if (value == null) {
1878         throw new NullPointerException();
1879       }
1880       schedule_ = value;
1881       bitField0_ |= 0x00000008;
1882       onChanged();
1883       return this;
1884     }
1885     /**
1886      *
1887      *
1888      * <pre>
1889      * Required. Describes the interval at which the job runs. This interval must
1890      * be at least 1 day, and it is rounded to the nearest day. For example, if
1891      * you specify a 50-hour interval, the job runs every 2 days.
1892      * You can provide the schedule in
1893      * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
1894      * [English-like
1895      * format](/appengine/docs/standard/python/config/cronref#schedule_format).
1896      * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
1897      * interval from this schedule is used, not the specific time of day.
1898      * </pre>
1899      *
1900      * <code>string schedule = 4;</code>
1901      *
1902      * @return This builder for chaining.
1903      */
clearSchedule()1904     public Builder clearSchedule() {
1905       schedule_ = getDefaultInstance().getSchedule();
1906       bitField0_ = (bitField0_ & ~0x00000008);
1907       onChanged();
1908       return this;
1909     }
1910     /**
1911      *
1912      *
1913      * <pre>
1914      * Required. Describes the interval at which the job runs. This interval must
1915      * be at least 1 day, and it is rounded to the nearest day. For example, if
1916      * you specify a 50-hour interval, the job runs every 2 days.
1917      * You can provide the schedule in
1918      * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
1919      * [English-like
1920      * format](/appengine/docs/standard/python/config/cronref#schedule_format).
1921      * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
1922      * interval from this schedule is used, not the specific time of day.
1923      * </pre>
1924      *
1925      * <code>string schedule = 4;</code>
1926      *
1927      * @param value The bytes for schedule to set.
1928      * @return This builder for chaining.
1929      */
setScheduleBytes(com.google.protobuf.ByteString value)1930     public Builder setScheduleBytes(com.google.protobuf.ByteString value) {
1931       if (value == null) {
1932         throw new NullPointerException();
1933       }
1934       checkByteStringIsUtf8(value);
1935       schedule_ = value;
1936       bitField0_ |= 0x00000008;
1937       onChanged();
1938       return this;
1939     }
1940 
1941     private java.lang.Object modelVersion_ = "";
1942     /**
1943      *
1944      *
1945      * <pre>
1946      * Required. The [AI Platform Prediction model
1947      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
1948      * input and output is sampled from this model version. When creating an
1949      * evaluation job, specify the model version in the following format:
1950      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/models/&lt;var&gt;{model_name}&lt;/var&gt;/versions/&lt;var&gt;{version_name}&lt;/var&gt;"
1951      * There can only be one evaluation job per model version.
1952      * </pre>
1953      *
1954      * <code>string model_version = 5;</code>
1955      *
1956      * @return The modelVersion.
1957      */
getModelVersion()1958     public java.lang.String getModelVersion() {
1959       java.lang.Object ref = modelVersion_;
1960       if (!(ref instanceof java.lang.String)) {
1961         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1962         java.lang.String s = bs.toStringUtf8();
1963         modelVersion_ = s;
1964         return s;
1965       } else {
1966         return (java.lang.String) ref;
1967       }
1968     }
1969     /**
1970      *
1971      *
1972      * <pre>
1973      * Required. The [AI Platform Prediction model
1974      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
1975      * input and output is sampled from this model version. When creating an
1976      * evaluation job, specify the model version in the following format:
1977      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/models/&lt;var&gt;{model_name}&lt;/var&gt;/versions/&lt;var&gt;{version_name}&lt;/var&gt;"
1978      * There can only be one evaluation job per model version.
1979      * </pre>
1980      *
1981      * <code>string model_version = 5;</code>
1982      *
1983      * @return The bytes for modelVersion.
1984      */
getModelVersionBytes()1985     public com.google.protobuf.ByteString getModelVersionBytes() {
1986       java.lang.Object ref = modelVersion_;
1987       if (ref instanceof String) {
1988         com.google.protobuf.ByteString b =
1989             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1990         modelVersion_ = b;
1991         return b;
1992       } else {
1993         return (com.google.protobuf.ByteString) ref;
1994       }
1995     }
1996     /**
1997      *
1998      *
1999      * <pre>
2000      * Required. The [AI Platform Prediction model
2001      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
2002      * input and output is sampled from this model version. When creating an
2003      * evaluation job, specify the model version in the following format:
2004      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/models/&lt;var&gt;{model_name}&lt;/var&gt;/versions/&lt;var&gt;{version_name}&lt;/var&gt;"
2005      * There can only be one evaluation job per model version.
2006      * </pre>
2007      *
2008      * <code>string model_version = 5;</code>
2009      *
2010      * @param value The modelVersion to set.
2011      * @return This builder for chaining.
2012      */
setModelVersion(java.lang.String value)2013     public Builder setModelVersion(java.lang.String value) {
2014       if (value == null) {
2015         throw new NullPointerException();
2016       }
2017       modelVersion_ = value;
2018       bitField0_ |= 0x00000010;
2019       onChanged();
2020       return this;
2021     }
2022     /**
2023      *
2024      *
2025      * <pre>
2026      * Required. The [AI Platform Prediction model
2027      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
2028      * input and output is sampled from this model version. When creating an
2029      * evaluation job, specify the model version in the following format:
2030      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/models/&lt;var&gt;{model_name}&lt;/var&gt;/versions/&lt;var&gt;{version_name}&lt;/var&gt;"
2031      * There can only be one evaluation job per model version.
2032      * </pre>
2033      *
2034      * <code>string model_version = 5;</code>
2035      *
2036      * @return This builder for chaining.
2037      */
clearModelVersion()2038     public Builder clearModelVersion() {
2039       modelVersion_ = getDefaultInstance().getModelVersion();
2040       bitField0_ = (bitField0_ & ~0x00000010);
2041       onChanged();
2042       return this;
2043     }
2044     /**
2045      *
2046      *
2047      * <pre>
2048      * Required. The [AI Platform Prediction model
2049      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
2050      * input and output is sampled from this model version. When creating an
2051      * evaluation job, specify the model version in the following format:
2052      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/models/&lt;var&gt;{model_name}&lt;/var&gt;/versions/&lt;var&gt;{version_name}&lt;/var&gt;"
2053      * There can only be one evaluation job per model version.
2054      * </pre>
2055      *
2056      * <code>string model_version = 5;</code>
2057      *
2058      * @param value The bytes for modelVersion to set.
2059      * @return This builder for chaining.
2060      */
setModelVersionBytes(com.google.protobuf.ByteString value)2061     public Builder setModelVersionBytes(com.google.protobuf.ByteString value) {
2062       if (value == null) {
2063         throw new NullPointerException();
2064       }
2065       checkByteStringIsUtf8(value);
2066       modelVersion_ = value;
2067       bitField0_ |= 0x00000010;
2068       onChanged();
2069       return this;
2070     }
2071 
2072     private com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluationJobConfig_;
2073     private com.google.protobuf.SingleFieldBuilderV3<
2074             com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig,
2075             com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder,
2076             com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder>
2077         evaluationJobConfigBuilder_;
2078     /**
2079      *
2080      *
2081      * <pre>
2082      * Required. Configuration details for the evaluation job.
2083      * </pre>
2084      *
2085      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2086      * </code>
2087      *
2088      * @return Whether the evaluationJobConfig field is set.
2089      */
hasEvaluationJobConfig()2090     public boolean hasEvaluationJobConfig() {
2091       return ((bitField0_ & 0x00000020) != 0);
2092     }
2093     /**
2094      *
2095      *
2096      * <pre>
2097      * Required. Configuration details for the evaluation job.
2098      * </pre>
2099      *
2100      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2101      * </code>
2102      *
2103      * @return The evaluationJobConfig.
2104      */
getEvaluationJobConfig()2105     public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig() {
2106       if (evaluationJobConfigBuilder_ == null) {
2107         return evaluationJobConfig_ == null
2108             ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance()
2109             : evaluationJobConfig_;
2110       } else {
2111         return evaluationJobConfigBuilder_.getMessage();
2112       }
2113     }
2114     /**
2115      *
2116      *
2117      * <pre>
2118      * Required. Configuration details for the evaluation job.
2119      * </pre>
2120      *
2121      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2122      * </code>
2123      */
setEvaluationJobConfig( com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value)2124     public Builder setEvaluationJobConfig(
2125         com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) {
2126       if (evaluationJobConfigBuilder_ == null) {
2127         if (value == null) {
2128           throw new NullPointerException();
2129         }
2130         evaluationJobConfig_ = value;
2131       } else {
2132         evaluationJobConfigBuilder_.setMessage(value);
2133       }
2134       bitField0_ |= 0x00000020;
2135       onChanged();
2136       return this;
2137     }
2138     /**
2139      *
2140      *
2141      * <pre>
2142      * Required. Configuration details for the evaluation job.
2143      * </pre>
2144      *
2145      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2146      * </code>
2147      */
setEvaluationJobConfig( com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder builderForValue)2148     public Builder setEvaluationJobConfig(
2149         com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder builderForValue) {
2150       if (evaluationJobConfigBuilder_ == null) {
2151         evaluationJobConfig_ = builderForValue.build();
2152       } else {
2153         evaluationJobConfigBuilder_.setMessage(builderForValue.build());
2154       }
2155       bitField0_ |= 0x00000020;
2156       onChanged();
2157       return this;
2158     }
2159     /**
2160      *
2161      *
2162      * <pre>
2163      * Required. Configuration details for the evaluation job.
2164      * </pre>
2165      *
2166      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2167      * </code>
2168      */
mergeEvaluationJobConfig( com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value)2169     public Builder mergeEvaluationJobConfig(
2170         com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) {
2171       if (evaluationJobConfigBuilder_ == null) {
2172         if (((bitField0_ & 0x00000020) != 0)
2173             && evaluationJobConfig_ != null
2174             && evaluationJobConfig_
2175                 != com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance()) {
2176           getEvaluationJobConfigBuilder().mergeFrom(value);
2177         } else {
2178           evaluationJobConfig_ = value;
2179         }
2180       } else {
2181         evaluationJobConfigBuilder_.mergeFrom(value);
2182       }
2183       bitField0_ |= 0x00000020;
2184       onChanged();
2185       return this;
2186     }
2187     /**
2188      *
2189      *
2190      * <pre>
2191      * Required. Configuration details for the evaluation job.
2192      * </pre>
2193      *
2194      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2195      * </code>
2196      */
clearEvaluationJobConfig()2197     public Builder clearEvaluationJobConfig() {
2198       bitField0_ = (bitField0_ & ~0x00000020);
2199       evaluationJobConfig_ = null;
2200       if (evaluationJobConfigBuilder_ != null) {
2201         evaluationJobConfigBuilder_.dispose();
2202         evaluationJobConfigBuilder_ = null;
2203       }
2204       onChanged();
2205       return this;
2206     }
2207     /**
2208      *
2209      *
2210      * <pre>
2211      * Required. Configuration details for the evaluation job.
2212      * </pre>
2213      *
2214      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2215      * </code>
2216      */
2217     public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder
getEvaluationJobConfigBuilder()2218         getEvaluationJobConfigBuilder() {
2219       bitField0_ |= 0x00000020;
2220       onChanged();
2221       return getEvaluationJobConfigFieldBuilder().getBuilder();
2222     }
2223     /**
2224      *
2225      *
2226      * <pre>
2227      * Required. Configuration details for the evaluation job.
2228      * </pre>
2229      *
2230      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2231      * </code>
2232      */
2233     public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder
getEvaluationJobConfigOrBuilder()2234         getEvaluationJobConfigOrBuilder() {
2235       if (evaluationJobConfigBuilder_ != null) {
2236         return evaluationJobConfigBuilder_.getMessageOrBuilder();
2237       } else {
2238         return evaluationJobConfig_ == null
2239             ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance()
2240             : evaluationJobConfig_;
2241       }
2242     }
2243     /**
2244      *
2245      *
2246      * <pre>
2247      * Required. Configuration details for the evaluation job.
2248      * </pre>
2249      *
2250      * <code>.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6;
2251      * </code>
2252      */
2253     private com.google.protobuf.SingleFieldBuilderV3<
2254             com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig,
2255             com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder,
2256             com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder>
getEvaluationJobConfigFieldBuilder()2257         getEvaluationJobConfigFieldBuilder() {
2258       if (evaluationJobConfigBuilder_ == null) {
2259         evaluationJobConfigBuilder_ =
2260             new com.google.protobuf.SingleFieldBuilderV3<
2261                 com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig,
2262                 com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder,
2263                 com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder>(
2264                 getEvaluationJobConfig(), getParentForChildren(), isClean());
2265         evaluationJobConfig_ = null;
2266       }
2267       return evaluationJobConfigBuilder_;
2268     }
2269 
2270     private java.lang.Object annotationSpecSet_ = "";
2271     /**
2272      *
2273      *
2274      * <pre>
2275      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
2276      * labels that your machine learning model outputs. You must create this
2277      * resource before you create an evaluation job and provide its name in the
2278      * following format:
2279      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/annotationSpecSets/&lt;var&gt;{annotation_spec_set_id}&lt;/var&gt;"
2280      * </pre>
2281      *
2282      * <code>string annotation_spec_set = 7;</code>
2283      *
2284      * @return The annotationSpecSet.
2285      */
getAnnotationSpecSet()2286     public java.lang.String getAnnotationSpecSet() {
2287       java.lang.Object ref = annotationSpecSet_;
2288       if (!(ref instanceof java.lang.String)) {
2289         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2290         java.lang.String s = bs.toStringUtf8();
2291         annotationSpecSet_ = s;
2292         return s;
2293       } else {
2294         return (java.lang.String) ref;
2295       }
2296     }
2297     /**
2298      *
2299      *
2300      * <pre>
2301      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
2302      * labels that your machine learning model outputs. You must create this
2303      * resource before you create an evaluation job and provide its name in the
2304      * following format:
2305      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/annotationSpecSets/&lt;var&gt;{annotation_spec_set_id}&lt;/var&gt;"
2306      * </pre>
2307      *
2308      * <code>string annotation_spec_set = 7;</code>
2309      *
2310      * @return The bytes for annotationSpecSet.
2311      */
getAnnotationSpecSetBytes()2312     public com.google.protobuf.ByteString getAnnotationSpecSetBytes() {
2313       java.lang.Object ref = annotationSpecSet_;
2314       if (ref instanceof String) {
2315         com.google.protobuf.ByteString b =
2316             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2317         annotationSpecSet_ = b;
2318         return b;
2319       } else {
2320         return (com.google.protobuf.ByteString) ref;
2321       }
2322     }
2323     /**
2324      *
2325      *
2326      * <pre>
2327      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
2328      * labels that your machine learning model outputs. You must create this
2329      * resource before you create an evaluation job and provide its name in the
2330      * following format:
2331      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/annotationSpecSets/&lt;var&gt;{annotation_spec_set_id}&lt;/var&gt;"
2332      * </pre>
2333      *
2334      * <code>string annotation_spec_set = 7;</code>
2335      *
2336      * @param value The annotationSpecSet to set.
2337      * @return This builder for chaining.
2338      */
setAnnotationSpecSet(java.lang.String value)2339     public Builder setAnnotationSpecSet(java.lang.String value) {
2340       if (value == null) {
2341         throw new NullPointerException();
2342       }
2343       annotationSpecSet_ = value;
2344       bitField0_ |= 0x00000040;
2345       onChanged();
2346       return this;
2347     }
2348     /**
2349      *
2350      *
2351      * <pre>
2352      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
2353      * labels that your machine learning model outputs. You must create this
2354      * resource before you create an evaluation job and provide its name in the
2355      * following format:
2356      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/annotationSpecSets/&lt;var&gt;{annotation_spec_set_id}&lt;/var&gt;"
2357      * </pre>
2358      *
2359      * <code>string annotation_spec_set = 7;</code>
2360      *
2361      * @return This builder for chaining.
2362      */
clearAnnotationSpecSet()2363     public Builder clearAnnotationSpecSet() {
2364       annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet();
2365       bitField0_ = (bitField0_ & ~0x00000040);
2366       onChanged();
2367       return this;
2368     }
2369     /**
2370      *
2371      *
2372      * <pre>
2373      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
2374      * labels that your machine learning model outputs. You must create this
2375      * resource before you create an evaluation job and provide its name in the
2376      * following format:
2377      * "projects/&lt;var&gt;{project_id}&lt;/var&gt;/annotationSpecSets/&lt;var&gt;{annotation_spec_set_id}&lt;/var&gt;"
2378      * </pre>
2379      *
2380      * <code>string annotation_spec_set = 7;</code>
2381      *
2382      * @param value The bytes for annotationSpecSet to set.
2383      * @return This builder for chaining.
2384      */
setAnnotationSpecSetBytes(com.google.protobuf.ByteString value)2385     public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) {
2386       if (value == null) {
2387         throw new NullPointerException();
2388       }
2389       checkByteStringIsUtf8(value);
2390       annotationSpecSet_ = value;
2391       bitField0_ |= 0x00000040;
2392       onChanged();
2393       return this;
2394     }
2395 
2396     private boolean labelMissingGroundTruth_;
2397     /**
2398      *
2399      *
2400      * <pre>
2401      * Required. Whether you want Data Labeling Service to provide ground truth
2402      * labels for prediction input. If you want the service to assign human
2403      * labelers to annotate your data, set this to `true`. If you want to provide
2404      * your own ground truth labels in the evaluation job's BigQuery table, set
2405      * this to `false`.
2406      * </pre>
2407      *
2408      * <code>bool label_missing_ground_truth = 8;</code>
2409      *
2410      * @return The labelMissingGroundTruth.
2411      */
2412     @java.lang.Override
getLabelMissingGroundTruth()2413     public boolean getLabelMissingGroundTruth() {
2414       return labelMissingGroundTruth_;
2415     }
2416     /**
2417      *
2418      *
2419      * <pre>
2420      * Required. Whether you want Data Labeling Service to provide ground truth
2421      * labels for prediction input. If you want the service to assign human
2422      * labelers to annotate your data, set this to `true`. If you want to provide
2423      * your own ground truth labels in the evaluation job's BigQuery table, set
2424      * this to `false`.
2425      * </pre>
2426      *
2427      * <code>bool label_missing_ground_truth = 8;</code>
2428      *
2429      * @param value The labelMissingGroundTruth to set.
2430      * @return This builder for chaining.
2431      */
setLabelMissingGroundTruth(boolean value)2432     public Builder setLabelMissingGroundTruth(boolean value) {
2433 
2434       labelMissingGroundTruth_ = value;
2435       bitField0_ |= 0x00000080;
2436       onChanged();
2437       return this;
2438     }
2439     /**
2440      *
2441      *
2442      * <pre>
2443      * Required. Whether you want Data Labeling Service to provide ground truth
2444      * labels for prediction input. If you want the service to assign human
2445      * labelers to annotate your data, set this to `true`. If you want to provide
2446      * your own ground truth labels in the evaluation job's BigQuery table, set
2447      * this to `false`.
2448      * </pre>
2449      *
2450      * <code>bool label_missing_ground_truth = 8;</code>
2451      *
2452      * @return This builder for chaining.
2453      */
clearLabelMissingGroundTruth()2454     public Builder clearLabelMissingGroundTruth() {
2455       bitField0_ = (bitField0_ & ~0x00000080);
2456       labelMissingGroundTruth_ = false;
2457       onChanged();
2458       return this;
2459     }
2460 
2461     private java.util.List<com.google.cloud.datalabeling.v1beta1.Attempt> attempts_ =
2462         java.util.Collections.emptyList();
2463 
ensureAttemptsIsMutable()2464     private void ensureAttemptsIsMutable() {
2465       if (!((bitField0_ & 0x00000100) != 0)) {
2466         attempts_ =
2467             new java.util.ArrayList<com.google.cloud.datalabeling.v1beta1.Attempt>(attempts_);
2468         bitField0_ |= 0x00000100;
2469       }
2470     }
2471 
2472     private com.google.protobuf.RepeatedFieldBuilderV3<
2473             com.google.cloud.datalabeling.v1beta1.Attempt,
2474             com.google.cloud.datalabeling.v1beta1.Attempt.Builder,
2475             com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>
2476         attemptsBuilder_;
2477 
2478     /**
2479      *
2480      *
2481      * <pre>
2482      * Output only. Every time the evaluation job runs and an error occurs, the
2483      * failed attempt is appended to this array.
2484      * </pre>
2485      *
2486      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2487      */
getAttemptsList()2488     public java.util.List<com.google.cloud.datalabeling.v1beta1.Attempt> getAttemptsList() {
2489       if (attemptsBuilder_ == null) {
2490         return java.util.Collections.unmodifiableList(attempts_);
2491       } else {
2492         return attemptsBuilder_.getMessageList();
2493       }
2494     }
2495     /**
2496      *
2497      *
2498      * <pre>
2499      * Output only. Every time the evaluation job runs and an error occurs, the
2500      * failed attempt is appended to this array.
2501      * </pre>
2502      *
2503      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2504      */
getAttemptsCount()2505     public int getAttemptsCount() {
2506       if (attemptsBuilder_ == null) {
2507         return attempts_.size();
2508       } else {
2509         return attemptsBuilder_.getCount();
2510       }
2511     }
2512     /**
2513      *
2514      *
2515      * <pre>
2516      * Output only. Every time the evaluation job runs and an error occurs, the
2517      * failed attempt is appended to this array.
2518      * </pre>
2519      *
2520      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2521      */
getAttempts(int index)2522     public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
2523       if (attemptsBuilder_ == null) {
2524         return attempts_.get(index);
2525       } else {
2526         return attemptsBuilder_.getMessage(index);
2527       }
2528     }
2529     /**
2530      *
2531      *
2532      * <pre>
2533      * Output only. Every time the evaluation job runs and an error occurs, the
2534      * failed attempt is appended to this array.
2535      * </pre>
2536      *
2537      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2538      */
setAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value)2539     public Builder setAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
2540       if (attemptsBuilder_ == null) {
2541         if (value == null) {
2542           throw new NullPointerException();
2543         }
2544         ensureAttemptsIsMutable();
2545         attempts_.set(index, value);
2546         onChanged();
2547       } else {
2548         attemptsBuilder_.setMessage(index, value);
2549       }
2550       return this;
2551     }
2552     /**
2553      *
2554      *
2555      * <pre>
2556      * Output only. Every time the evaluation job runs and an error occurs, the
2557      * failed attempt is appended to this array.
2558      * </pre>
2559      *
2560      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2561      */
setAttempts( int index, com.google.cloud.datalabeling.v1beta1.Attempt.Builder builderForValue)2562     public Builder setAttempts(
2563         int index, com.google.cloud.datalabeling.v1beta1.Attempt.Builder builderForValue) {
2564       if (attemptsBuilder_ == null) {
2565         ensureAttemptsIsMutable();
2566         attempts_.set(index, builderForValue.build());
2567         onChanged();
2568       } else {
2569         attemptsBuilder_.setMessage(index, builderForValue.build());
2570       }
2571       return this;
2572     }
2573     /**
2574      *
2575      *
2576      * <pre>
2577      * Output only. Every time the evaluation job runs and an error occurs, the
2578      * failed attempt is appended to this array.
2579      * </pre>
2580      *
2581      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2582      */
addAttempts(com.google.cloud.datalabeling.v1beta1.Attempt value)2583     public Builder addAttempts(com.google.cloud.datalabeling.v1beta1.Attempt value) {
2584       if (attemptsBuilder_ == null) {
2585         if (value == null) {
2586           throw new NullPointerException();
2587         }
2588         ensureAttemptsIsMutable();
2589         attempts_.add(value);
2590         onChanged();
2591       } else {
2592         attemptsBuilder_.addMessage(value);
2593       }
2594       return this;
2595     }
2596     /**
2597      *
2598      *
2599      * <pre>
2600      * Output only. Every time the evaluation job runs and an error occurs, the
2601      * failed attempt is appended to this array.
2602      * </pre>
2603      *
2604      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2605      */
addAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value)2606     public Builder addAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
2607       if (attemptsBuilder_ == null) {
2608         if (value == null) {
2609           throw new NullPointerException();
2610         }
2611         ensureAttemptsIsMutable();
2612         attempts_.add(index, value);
2613         onChanged();
2614       } else {
2615         attemptsBuilder_.addMessage(index, value);
2616       }
2617       return this;
2618     }
2619     /**
2620      *
2621      *
2622      * <pre>
2623      * Output only. Every time the evaluation job runs and an error occurs, the
2624      * failed attempt is appended to this array.
2625      * </pre>
2626      *
2627      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2628      */
addAttempts( com.google.cloud.datalabeling.v1beta1.Attempt.Builder builderForValue)2629     public Builder addAttempts(
2630         com.google.cloud.datalabeling.v1beta1.Attempt.Builder builderForValue) {
2631       if (attemptsBuilder_ == null) {
2632         ensureAttemptsIsMutable();
2633         attempts_.add(builderForValue.build());
2634         onChanged();
2635       } else {
2636         attemptsBuilder_.addMessage(builderForValue.build());
2637       }
2638       return this;
2639     }
2640     /**
2641      *
2642      *
2643      * <pre>
2644      * Output only. Every time the evaluation job runs and an error occurs, the
2645      * failed attempt is appended to this array.
2646      * </pre>
2647      *
2648      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2649      */
addAttempts( int index, com.google.cloud.datalabeling.v1beta1.Attempt.Builder builderForValue)2650     public Builder addAttempts(
2651         int index, com.google.cloud.datalabeling.v1beta1.Attempt.Builder builderForValue) {
2652       if (attemptsBuilder_ == null) {
2653         ensureAttemptsIsMutable();
2654         attempts_.add(index, builderForValue.build());
2655         onChanged();
2656       } else {
2657         attemptsBuilder_.addMessage(index, builderForValue.build());
2658       }
2659       return this;
2660     }
2661     /**
2662      *
2663      *
2664      * <pre>
2665      * Output only. Every time the evaluation job runs and an error occurs, the
2666      * failed attempt is appended to this array.
2667      * </pre>
2668      *
2669      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2670      */
addAllAttempts( java.lang.Iterable<? extends com.google.cloud.datalabeling.v1beta1.Attempt> values)2671     public Builder addAllAttempts(
2672         java.lang.Iterable<? extends com.google.cloud.datalabeling.v1beta1.Attempt> values) {
2673       if (attemptsBuilder_ == null) {
2674         ensureAttemptsIsMutable();
2675         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attempts_);
2676         onChanged();
2677       } else {
2678         attemptsBuilder_.addAllMessages(values);
2679       }
2680       return this;
2681     }
2682     /**
2683      *
2684      *
2685      * <pre>
2686      * Output only. Every time the evaluation job runs and an error occurs, the
2687      * failed attempt is appended to this array.
2688      * </pre>
2689      *
2690      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2691      */
clearAttempts()2692     public Builder clearAttempts() {
2693       if (attemptsBuilder_ == null) {
2694         attempts_ = java.util.Collections.emptyList();
2695         bitField0_ = (bitField0_ & ~0x00000100);
2696         onChanged();
2697       } else {
2698         attemptsBuilder_.clear();
2699       }
2700       return this;
2701     }
2702     /**
2703      *
2704      *
2705      * <pre>
2706      * Output only. Every time the evaluation job runs and an error occurs, the
2707      * failed attempt is appended to this array.
2708      * </pre>
2709      *
2710      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2711      */
removeAttempts(int index)2712     public Builder removeAttempts(int index) {
2713       if (attemptsBuilder_ == null) {
2714         ensureAttemptsIsMutable();
2715         attempts_.remove(index);
2716         onChanged();
2717       } else {
2718         attemptsBuilder_.remove(index);
2719       }
2720       return this;
2721     }
2722     /**
2723      *
2724      *
2725      * <pre>
2726      * Output only. Every time the evaluation job runs and an error occurs, the
2727      * failed attempt is appended to this array.
2728      * </pre>
2729      *
2730      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2731      */
getAttemptsBuilder(int index)2732     public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder(int index) {
2733       return getAttemptsFieldBuilder().getBuilder(index);
2734     }
2735     /**
2736      *
2737      *
2738      * <pre>
2739      * Output only. Every time the evaluation job runs and an error occurs, the
2740      * failed attempt is appended to this array.
2741      * </pre>
2742      *
2743      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2744      */
getAttemptsOrBuilder(int index)2745     public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index) {
2746       if (attemptsBuilder_ == null) {
2747         return attempts_.get(index);
2748       } else {
2749         return attemptsBuilder_.getMessageOrBuilder(index);
2750       }
2751     }
2752     /**
2753      *
2754      *
2755      * <pre>
2756      * Output only. Every time the evaluation job runs and an error occurs, the
2757      * failed attempt is appended to this array.
2758      * </pre>
2759      *
2760      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2761      */
2762     public java.util.List<? extends com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>
getAttemptsOrBuilderList()2763         getAttemptsOrBuilderList() {
2764       if (attemptsBuilder_ != null) {
2765         return attemptsBuilder_.getMessageOrBuilderList();
2766       } else {
2767         return java.util.Collections.unmodifiableList(attempts_);
2768       }
2769     }
2770     /**
2771      *
2772      *
2773      * <pre>
2774      * Output only. Every time the evaluation job runs and an error occurs, the
2775      * failed attempt is appended to this array.
2776      * </pre>
2777      *
2778      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2779      */
addAttemptsBuilder()2780     public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder() {
2781       return getAttemptsFieldBuilder()
2782           .addBuilder(com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
2783     }
2784     /**
2785      *
2786      *
2787      * <pre>
2788      * Output only. Every time the evaluation job runs and an error occurs, the
2789      * failed attempt is appended to this array.
2790      * </pre>
2791      *
2792      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2793      */
addAttemptsBuilder(int index)2794     public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(int index) {
2795       return getAttemptsFieldBuilder()
2796           .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
2797     }
2798     /**
2799      *
2800      *
2801      * <pre>
2802      * Output only. Every time the evaluation job runs and an error occurs, the
2803      * failed attempt is appended to this array.
2804      * </pre>
2805      *
2806      * <code>repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;</code>
2807      */
2808     public java.util.List<com.google.cloud.datalabeling.v1beta1.Attempt.Builder>
getAttemptsBuilderList()2809         getAttemptsBuilderList() {
2810       return getAttemptsFieldBuilder().getBuilderList();
2811     }
2812 
2813     private com.google.protobuf.RepeatedFieldBuilderV3<
2814             com.google.cloud.datalabeling.v1beta1.Attempt,
2815             com.google.cloud.datalabeling.v1beta1.Attempt.Builder,
2816             com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>
getAttemptsFieldBuilder()2817         getAttemptsFieldBuilder() {
2818       if (attemptsBuilder_ == null) {
2819         attemptsBuilder_ =
2820             new com.google.protobuf.RepeatedFieldBuilderV3<
2821                 com.google.cloud.datalabeling.v1beta1.Attempt,
2822                 com.google.cloud.datalabeling.v1beta1.Attempt.Builder,
2823                 com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>(
2824                 attempts_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean());
2825         attempts_ = null;
2826       }
2827       return attemptsBuilder_;
2828     }
2829 
2830     private com.google.protobuf.Timestamp createTime_;
2831     private com.google.protobuf.SingleFieldBuilderV3<
2832             com.google.protobuf.Timestamp,
2833             com.google.protobuf.Timestamp.Builder,
2834             com.google.protobuf.TimestampOrBuilder>
2835         createTimeBuilder_;
2836     /**
2837      *
2838      *
2839      * <pre>
2840      * Output only. Timestamp of when this evaluation job was created.
2841      * </pre>
2842      *
2843      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2844      *
2845      * @return Whether the createTime field is set.
2846      */
hasCreateTime()2847     public boolean hasCreateTime() {
2848       return ((bitField0_ & 0x00000200) != 0);
2849     }
2850     /**
2851      *
2852      *
2853      * <pre>
2854      * Output only. Timestamp of when this evaluation job was created.
2855      * </pre>
2856      *
2857      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2858      *
2859      * @return The createTime.
2860      */
getCreateTime()2861     public com.google.protobuf.Timestamp getCreateTime() {
2862       if (createTimeBuilder_ == null) {
2863         return createTime_ == null
2864             ? com.google.protobuf.Timestamp.getDefaultInstance()
2865             : createTime_;
2866       } else {
2867         return createTimeBuilder_.getMessage();
2868       }
2869     }
2870     /**
2871      *
2872      *
2873      * <pre>
2874      * Output only. Timestamp of when this evaluation job was created.
2875      * </pre>
2876      *
2877      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2878      */
setCreateTime(com.google.protobuf.Timestamp value)2879     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
2880       if (createTimeBuilder_ == null) {
2881         if (value == null) {
2882           throw new NullPointerException();
2883         }
2884         createTime_ = value;
2885       } else {
2886         createTimeBuilder_.setMessage(value);
2887       }
2888       bitField0_ |= 0x00000200;
2889       onChanged();
2890       return this;
2891     }
2892     /**
2893      *
2894      *
2895      * <pre>
2896      * Output only. Timestamp of when this evaluation job was created.
2897      * </pre>
2898      *
2899      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2900      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)2901     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2902       if (createTimeBuilder_ == null) {
2903         createTime_ = builderForValue.build();
2904       } else {
2905         createTimeBuilder_.setMessage(builderForValue.build());
2906       }
2907       bitField0_ |= 0x00000200;
2908       onChanged();
2909       return this;
2910     }
2911     /**
2912      *
2913      *
2914      * <pre>
2915      * Output only. Timestamp of when this evaluation job was created.
2916      * </pre>
2917      *
2918      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2919      */
mergeCreateTime(com.google.protobuf.Timestamp value)2920     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
2921       if (createTimeBuilder_ == null) {
2922         if (((bitField0_ & 0x00000200) != 0)
2923             && createTime_ != null
2924             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2925           getCreateTimeBuilder().mergeFrom(value);
2926         } else {
2927           createTime_ = value;
2928         }
2929       } else {
2930         createTimeBuilder_.mergeFrom(value);
2931       }
2932       bitField0_ |= 0x00000200;
2933       onChanged();
2934       return this;
2935     }
2936     /**
2937      *
2938      *
2939      * <pre>
2940      * Output only. Timestamp of when this evaluation job was created.
2941      * </pre>
2942      *
2943      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2944      */
clearCreateTime()2945     public Builder clearCreateTime() {
2946       bitField0_ = (bitField0_ & ~0x00000200);
2947       createTime_ = null;
2948       if (createTimeBuilder_ != null) {
2949         createTimeBuilder_.dispose();
2950         createTimeBuilder_ = null;
2951       }
2952       onChanged();
2953       return this;
2954     }
2955     /**
2956      *
2957      *
2958      * <pre>
2959      * Output only. Timestamp of when this evaluation job was created.
2960      * </pre>
2961      *
2962      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2963      */
getCreateTimeBuilder()2964     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
2965       bitField0_ |= 0x00000200;
2966       onChanged();
2967       return getCreateTimeFieldBuilder().getBuilder();
2968     }
2969     /**
2970      *
2971      *
2972      * <pre>
2973      * Output only. Timestamp of when this evaluation job was created.
2974      * </pre>
2975      *
2976      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2977      */
getCreateTimeOrBuilder()2978     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
2979       if (createTimeBuilder_ != null) {
2980         return createTimeBuilder_.getMessageOrBuilder();
2981       } else {
2982         return createTime_ == null
2983             ? com.google.protobuf.Timestamp.getDefaultInstance()
2984             : createTime_;
2985       }
2986     }
2987     /**
2988      *
2989      *
2990      * <pre>
2991      * Output only. Timestamp of when this evaluation job was created.
2992      * </pre>
2993      *
2994      * <code>.google.protobuf.Timestamp create_time = 10;</code>
2995      */
2996     private com.google.protobuf.SingleFieldBuilderV3<
2997             com.google.protobuf.Timestamp,
2998             com.google.protobuf.Timestamp.Builder,
2999             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()3000         getCreateTimeFieldBuilder() {
3001       if (createTimeBuilder_ == null) {
3002         createTimeBuilder_ =
3003             new com.google.protobuf.SingleFieldBuilderV3<
3004                 com.google.protobuf.Timestamp,
3005                 com.google.protobuf.Timestamp.Builder,
3006                 com.google.protobuf.TimestampOrBuilder>(
3007                 getCreateTime(), getParentForChildren(), isClean());
3008         createTime_ = null;
3009       }
3010       return createTimeBuilder_;
3011     }
3012 
3013     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3014     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3015       return super.setUnknownFields(unknownFields);
3016     }
3017 
3018     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3019     public final Builder mergeUnknownFields(
3020         final com.google.protobuf.UnknownFieldSet unknownFields) {
3021       return super.mergeUnknownFields(unknownFields);
3022     }
3023 
3024     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationJob)
3025   }
3026 
3027   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJob)
3028   private static final com.google.cloud.datalabeling.v1beta1.EvaluationJob DEFAULT_INSTANCE;
3029 
3030   static {
3031     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationJob();
3032   }
3033 
getDefaultInstance()3034   public static com.google.cloud.datalabeling.v1beta1.EvaluationJob getDefaultInstance() {
3035     return DEFAULT_INSTANCE;
3036   }
3037 
3038   private static final com.google.protobuf.Parser<EvaluationJob> PARSER =
3039       new com.google.protobuf.AbstractParser<EvaluationJob>() {
3040         @java.lang.Override
3041         public EvaluationJob parsePartialFrom(
3042             com.google.protobuf.CodedInputStream input,
3043             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3044             throws com.google.protobuf.InvalidProtocolBufferException {
3045           Builder builder = newBuilder();
3046           try {
3047             builder.mergeFrom(input, extensionRegistry);
3048           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3049             throw e.setUnfinishedMessage(builder.buildPartial());
3050           } catch (com.google.protobuf.UninitializedMessageException e) {
3051             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3052           } catch (java.io.IOException e) {
3053             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3054                 .setUnfinishedMessage(builder.buildPartial());
3055           }
3056           return builder.buildPartial();
3057         }
3058       };
3059 
parser()3060   public static com.google.protobuf.Parser<EvaluationJob> parser() {
3061     return PARSER;
3062   }
3063 
3064   @java.lang.Override
getParserForType()3065   public com.google.protobuf.Parser<EvaluationJob> getParserForType() {
3066     return PARSER;
3067   }
3068 
3069   @java.lang.Override
getDefaultInstanceForType()3070   public com.google.cloud.datalabeling.v1beta1.EvaluationJob getDefaultInstanceForType() {
3071     return DEFAULT_INSTANCE;
3072   }
3073 }
3074