• 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/aiplatform/v1beta1/hyperparameter_tuning_job.proto
18 
19 package com.google.cloud.aiplatform.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents a HyperparameterTuningJob. A HyperparameterTuningJob
26  * has a Study specification and multiple CustomJobs with identical
27  * CustomJob specification.
28  * </pre>
29  *
30  * Protobuf type {@code google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}
31  */
32 public final class HyperparameterTuningJob extends com.google.protobuf.GeneratedMessageV3
33     implements
34     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.HyperparameterTuningJob)
35     HyperparameterTuningJobOrBuilder {
36   private static final long serialVersionUID = 0L;
37   // Use HyperparameterTuningJob.newBuilder() to construct.
HyperparameterTuningJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38   private HyperparameterTuningJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
39     super(builder);
40   }
41 
HyperparameterTuningJob()42   private HyperparameterTuningJob() {
43     name_ = "";
44     displayName_ = "";
45     trials_ = java.util.Collections.emptyList();
46     state_ = 0;
47   }
48 
49   @java.lang.Override
50   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)51   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
52     return new HyperparameterTuningJob();
53   }
54 
55   @java.lang.Override
getUnknownFields()56   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
57     return this.unknownFields;
58   }
59 
getDescriptor()60   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
61     return com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobProto
62         .internal_static_google_cloud_aiplatform_v1beta1_HyperparameterTuningJob_descriptor;
63   }
64 
65   @SuppressWarnings({"rawtypes"})
66   @java.lang.Override
internalGetMapField(int number)67   protected com.google.protobuf.MapField internalGetMapField(int number) {
68     switch (number) {
69       case 16:
70         return internalGetLabels();
71       default:
72         throw new RuntimeException("Invalid map field number: " + number);
73     }
74   }
75 
76   @java.lang.Override
77   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()78       internalGetFieldAccessorTable() {
79     return com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobProto
80         .internal_static_google_cloud_aiplatform_v1beta1_HyperparameterTuningJob_fieldAccessorTable
81         .ensureFieldAccessorsInitialized(
82             com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.class,
83             com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.Builder.class);
84   }
85 
86   public static final int NAME_FIELD_NUMBER = 1;
87 
88   @SuppressWarnings("serial")
89   private volatile java.lang.Object name_ = "";
90   /**
91    *
92    *
93    * <pre>
94    * Output only. Resource name of the HyperparameterTuningJob.
95    * </pre>
96    *
97    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
98    *
99    * @return The name.
100    */
101   @java.lang.Override
getName()102   public java.lang.String getName() {
103     java.lang.Object ref = name_;
104     if (ref instanceof java.lang.String) {
105       return (java.lang.String) ref;
106     } else {
107       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
108       java.lang.String s = bs.toStringUtf8();
109       name_ = s;
110       return s;
111     }
112   }
113   /**
114    *
115    *
116    * <pre>
117    * Output only. Resource name of the HyperparameterTuningJob.
118    * </pre>
119    *
120    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
121    *
122    * @return The bytes for name.
123    */
124   @java.lang.Override
getNameBytes()125   public com.google.protobuf.ByteString getNameBytes() {
126     java.lang.Object ref = name_;
127     if (ref instanceof java.lang.String) {
128       com.google.protobuf.ByteString b =
129           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
130       name_ = b;
131       return b;
132     } else {
133       return (com.google.protobuf.ByteString) ref;
134     }
135   }
136 
137   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
138 
139   @SuppressWarnings("serial")
140   private volatile java.lang.Object displayName_ = "";
141   /**
142    *
143    *
144    * <pre>
145    * Required. The display name of the HyperparameterTuningJob.
146    * The name can be up to 128 characters long and can consist of any UTF-8
147    * characters.
148    * </pre>
149    *
150    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
151    *
152    * @return The displayName.
153    */
154   @java.lang.Override
getDisplayName()155   public java.lang.String getDisplayName() {
156     java.lang.Object ref = displayName_;
157     if (ref instanceof java.lang.String) {
158       return (java.lang.String) ref;
159     } else {
160       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
161       java.lang.String s = bs.toStringUtf8();
162       displayName_ = s;
163       return s;
164     }
165   }
166   /**
167    *
168    *
169    * <pre>
170    * Required. The display name of the HyperparameterTuningJob.
171    * The name can be up to 128 characters long and can consist of any UTF-8
172    * characters.
173    * </pre>
174    *
175    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
176    *
177    * @return The bytes for displayName.
178    */
179   @java.lang.Override
getDisplayNameBytes()180   public com.google.protobuf.ByteString getDisplayNameBytes() {
181     java.lang.Object ref = displayName_;
182     if (ref instanceof java.lang.String) {
183       com.google.protobuf.ByteString b =
184           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
185       displayName_ = b;
186       return b;
187     } else {
188       return (com.google.protobuf.ByteString) ref;
189     }
190   }
191 
192   public static final int STUDY_SPEC_FIELD_NUMBER = 4;
193   private com.google.cloud.aiplatform.v1beta1.StudySpec studySpec_;
194   /**
195    *
196    *
197    * <pre>
198    * Required. Study configuration of the HyperparameterTuningJob.
199    * </pre>
200    *
201    * <code>
202    * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
203    * </code>
204    *
205    * @return Whether the studySpec field is set.
206    */
207   @java.lang.Override
hasStudySpec()208   public boolean hasStudySpec() {
209     return studySpec_ != null;
210   }
211   /**
212    *
213    *
214    * <pre>
215    * Required. Study configuration of the HyperparameterTuningJob.
216    * </pre>
217    *
218    * <code>
219    * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
220    * </code>
221    *
222    * @return The studySpec.
223    */
224   @java.lang.Override
getStudySpec()225   public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() {
226     return studySpec_ == null
227         ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
228         : studySpec_;
229   }
230   /**
231    *
232    *
233    * <pre>
234    * Required. Study configuration of the HyperparameterTuningJob.
235    * </pre>
236    *
237    * <code>
238    * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
239    * </code>
240    */
241   @java.lang.Override
getStudySpecOrBuilder()242   public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() {
243     return studySpec_ == null
244         ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
245         : studySpec_;
246   }
247 
248   public static final int MAX_TRIAL_COUNT_FIELD_NUMBER = 5;
249   private int maxTrialCount_ = 0;
250   /**
251    *
252    *
253    * <pre>
254    * Required. The desired total number of Trials.
255    * </pre>
256    *
257    * <code>int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED];</code>
258    *
259    * @return The maxTrialCount.
260    */
261   @java.lang.Override
getMaxTrialCount()262   public int getMaxTrialCount() {
263     return maxTrialCount_;
264   }
265 
266   public static final int PARALLEL_TRIAL_COUNT_FIELD_NUMBER = 6;
267   private int parallelTrialCount_ = 0;
268   /**
269    *
270    *
271    * <pre>
272    * Required. The desired number of Trials to run in parallel.
273    * </pre>
274    *
275    * <code>int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED];</code>
276    *
277    * @return The parallelTrialCount.
278    */
279   @java.lang.Override
getParallelTrialCount()280   public int getParallelTrialCount() {
281     return parallelTrialCount_;
282   }
283 
284   public static final int MAX_FAILED_TRIAL_COUNT_FIELD_NUMBER = 7;
285   private int maxFailedTrialCount_ = 0;
286   /**
287    *
288    *
289    * <pre>
290    * The number of failed Trials that need to be seen before failing
291    * the HyperparameterTuningJob.
292    * If set to 0, Vertex AI decides how many Trials must fail
293    * before the whole job fails.
294    * </pre>
295    *
296    * <code>int32 max_failed_trial_count = 7;</code>
297    *
298    * @return The maxFailedTrialCount.
299    */
300   @java.lang.Override
getMaxFailedTrialCount()301   public int getMaxFailedTrialCount() {
302     return maxFailedTrialCount_;
303   }
304 
305   public static final int TRIAL_JOB_SPEC_FIELD_NUMBER = 8;
306   private com.google.cloud.aiplatform.v1beta1.CustomJobSpec trialJobSpec_;
307   /**
308    *
309    *
310    * <pre>
311    * Required. The spec of a trial job. The same spec applies to the CustomJobs
312    * created in all the trials.
313    * </pre>
314    *
315    * <code>
316    * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
317    * </code>
318    *
319    * @return Whether the trialJobSpec field is set.
320    */
321   @java.lang.Override
hasTrialJobSpec()322   public boolean hasTrialJobSpec() {
323     return trialJobSpec_ != null;
324   }
325   /**
326    *
327    *
328    * <pre>
329    * Required. The spec of a trial job. The same spec applies to the CustomJobs
330    * created in all the trials.
331    * </pre>
332    *
333    * <code>
334    * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
335    * </code>
336    *
337    * @return The trialJobSpec.
338    */
339   @java.lang.Override
getTrialJobSpec()340   public com.google.cloud.aiplatform.v1beta1.CustomJobSpec getTrialJobSpec() {
341     return trialJobSpec_ == null
342         ? com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance()
343         : trialJobSpec_;
344   }
345   /**
346    *
347    *
348    * <pre>
349    * Required. The spec of a trial job. The same spec applies to the CustomJobs
350    * created in all the trials.
351    * </pre>
352    *
353    * <code>
354    * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
355    * </code>
356    */
357   @java.lang.Override
getTrialJobSpecOrBuilder()358   public com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder getTrialJobSpecOrBuilder() {
359     return trialJobSpec_ == null
360         ? com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance()
361         : trialJobSpec_;
362   }
363 
364   public static final int TRIALS_FIELD_NUMBER = 9;
365 
366   @SuppressWarnings("serial")
367   private java.util.List<com.google.cloud.aiplatform.v1beta1.Trial> trials_;
368   /**
369    *
370    *
371    * <pre>
372    * Output only. Trials of the HyperparameterTuningJob.
373    * </pre>
374    *
375    * <code>
376    * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
377    * </code>
378    */
379   @java.lang.Override
getTrialsList()380   public java.util.List<com.google.cloud.aiplatform.v1beta1.Trial> getTrialsList() {
381     return trials_;
382   }
383   /**
384    *
385    *
386    * <pre>
387    * Output only. Trials of the HyperparameterTuningJob.
388    * </pre>
389    *
390    * <code>
391    * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
392    * </code>
393    */
394   @java.lang.Override
395   public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>
getTrialsOrBuilderList()396       getTrialsOrBuilderList() {
397     return trials_;
398   }
399   /**
400    *
401    *
402    * <pre>
403    * Output only. Trials of the HyperparameterTuningJob.
404    * </pre>
405    *
406    * <code>
407    * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
408    * </code>
409    */
410   @java.lang.Override
getTrialsCount()411   public int getTrialsCount() {
412     return trials_.size();
413   }
414   /**
415    *
416    *
417    * <pre>
418    * Output only. Trials of the HyperparameterTuningJob.
419    * </pre>
420    *
421    * <code>
422    * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
423    * </code>
424    */
425   @java.lang.Override
getTrials(int index)426   public com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index) {
427     return trials_.get(index);
428   }
429   /**
430    *
431    *
432    * <pre>
433    * Output only. Trials of the HyperparameterTuningJob.
434    * </pre>
435    *
436    * <code>
437    * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
438    * </code>
439    */
440   @java.lang.Override
getTrialsOrBuilder(int index)441   public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index) {
442     return trials_.get(index);
443   }
444 
445   public static final int STATE_FIELD_NUMBER = 10;
446   private int state_ = 0;
447   /**
448    *
449    *
450    * <pre>
451    * Output only. The detailed state of the job.
452    * </pre>
453    *
454    * <code>
455    * .google.cloud.aiplatform.v1beta1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
456    * </code>
457    *
458    * @return The enum numeric value on the wire for state.
459    */
460   @java.lang.Override
getStateValue()461   public int getStateValue() {
462     return state_;
463   }
464   /**
465    *
466    *
467    * <pre>
468    * Output only. The detailed state of the job.
469    * </pre>
470    *
471    * <code>
472    * .google.cloud.aiplatform.v1beta1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
473    * </code>
474    *
475    * @return The state.
476    */
477   @java.lang.Override
getState()478   public com.google.cloud.aiplatform.v1beta1.JobState getState() {
479     com.google.cloud.aiplatform.v1beta1.JobState result =
480         com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_);
481     return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result;
482   }
483 
484   public static final int CREATE_TIME_FIELD_NUMBER = 11;
485   private com.google.protobuf.Timestamp createTime_;
486   /**
487    *
488    *
489    * <pre>
490    * Output only. Time when the HyperparameterTuningJob was created.
491    * </pre>
492    *
493    * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
494    * </code>
495    *
496    * @return Whether the createTime field is set.
497    */
498   @java.lang.Override
hasCreateTime()499   public boolean hasCreateTime() {
500     return createTime_ != null;
501   }
502   /**
503    *
504    *
505    * <pre>
506    * Output only. Time when the HyperparameterTuningJob was created.
507    * </pre>
508    *
509    * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
510    * </code>
511    *
512    * @return The createTime.
513    */
514   @java.lang.Override
getCreateTime()515   public com.google.protobuf.Timestamp getCreateTime() {
516     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
517   }
518   /**
519    *
520    *
521    * <pre>
522    * Output only. Time when the HyperparameterTuningJob was created.
523    * </pre>
524    *
525    * <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
526    * </code>
527    */
528   @java.lang.Override
getCreateTimeOrBuilder()529   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
530     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
531   }
532 
533   public static final int START_TIME_FIELD_NUMBER = 12;
534   private com.google.protobuf.Timestamp startTime_;
535   /**
536    *
537    *
538    * <pre>
539    * Output only. Time when the HyperparameterTuningJob for the first time
540    * entered the `JOB_STATE_RUNNING` state.
541    * </pre>
542    *
543    * <code>.google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
544    * </code>
545    *
546    * @return Whether the startTime field is set.
547    */
548   @java.lang.Override
hasStartTime()549   public boolean hasStartTime() {
550     return startTime_ != null;
551   }
552   /**
553    *
554    *
555    * <pre>
556    * Output only. Time when the HyperparameterTuningJob for the first time
557    * entered the `JOB_STATE_RUNNING` state.
558    * </pre>
559    *
560    * <code>.google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
561    * </code>
562    *
563    * @return The startTime.
564    */
565   @java.lang.Override
getStartTime()566   public com.google.protobuf.Timestamp getStartTime() {
567     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
568   }
569   /**
570    *
571    *
572    * <pre>
573    * Output only. Time when the HyperparameterTuningJob for the first time
574    * entered the `JOB_STATE_RUNNING` state.
575    * </pre>
576    *
577    * <code>.google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
578    * </code>
579    */
580   @java.lang.Override
getStartTimeOrBuilder()581   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
582     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
583   }
584 
585   public static final int END_TIME_FIELD_NUMBER = 13;
586   private com.google.protobuf.Timestamp endTime_;
587   /**
588    *
589    *
590    * <pre>
591    * Output only. Time when the HyperparameterTuningJob entered any of the
592    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
593    * `JOB_STATE_CANCELLED`.
594    * </pre>
595    *
596    * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
597    * </code>
598    *
599    * @return Whether the endTime field is set.
600    */
601   @java.lang.Override
hasEndTime()602   public boolean hasEndTime() {
603     return endTime_ != null;
604   }
605   /**
606    *
607    *
608    * <pre>
609    * Output only. Time when the HyperparameterTuningJob entered any of the
610    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
611    * `JOB_STATE_CANCELLED`.
612    * </pre>
613    *
614    * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
615    * </code>
616    *
617    * @return The endTime.
618    */
619   @java.lang.Override
getEndTime()620   public com.google.protobuf.Timestamp getEndTime() {
621     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
622   }
623   /**
624    *
625    *
626    * <pre>
627    * Output only. Time when the HyperparameterTuningJob entered any of the
628    * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
629    * `JOB_STATE_CANCELLED`.
630    * </pre>
631    *
632    * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
633    * </code>
634    */
635   @java.lang.Override
getEndTimeOrBuilder()636   public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
637     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
638   }
639 
640   public static final int UPDATE_TIME_FIELD_NUMBER = 14;
641   private com.google.protobuf.Timestamp updateTime_;
642   /**
643    *
644    *
645    * <pre>
646    * Output only. Time when the HyperparameterTuningJob was most recently
647    * updated.
648    * </pre>
649    *
650    * <code>.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
651    * </code>
652    *
653    * @return Whether the updateTime field is set.
654    */
655   @java.lang.Override
hasUpdateTime()656   public boolean hasUpdateTime() {
657     return updateTime_ != null;
658   }
659   /**
660    *
661    *
662    * <pre>
663    * Output only. Time when the HyperparameterTuningJob was most recently
664    * updated.
665    * </pre>
666    *
667    * <code>.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
668    * </code>
669    *
670    * @return The updateTime.
671    */
672   @java.lang.Override
getUpdateTime()673   public com.google.protobuf.Timestamp getUpdateTime() {
674     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
675   }
676   /**
677    *
678    *
679    * <pre>
680    * Output only. Time when the HyperparameterTuningJob was most recently
681    * updated.
682    * </pre>
683    *
684    * <code>.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
685    * </code>
686    */
687   @java.lang.Override
getUpdateTimeOrBuilder()688   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
689     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
690   }
691 
692   public static final int ERROR_FIELD_NUMBER = 15;
693   private com.google.rpc.Status error_;
694   /**
695    *
696    *
697    * <pre>
698    * Output only. Only populated when job's state is JOB_STATE_FAILED or
699    * JOB_STATE_CANCELLED.
700    * </pre>
701    *
702    * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
703    *
704    * @return Whether the error field is set.
705    */
706   @java.lang.Override
hasError()707   public boolean hasError() {
708     return error_ != null;
709   }
710   /**
711    *
712    *
713    * <pre>
714    * Output only. Only populated when job's state is JOB_STATE_FAILED or
715    * JOB_STATE_CANCELLED.
716    * </pre>
717    *
718    * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
719    *
720    * @return The error.
721    */
722   @java.lang.Override
getError()723   public com.google.rpc.Status getError() {
724     return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
725   }
726   /**
727    *
728    *
729    * <pre>
730    * Output only. Only populated when job's state is JOB_STATE_FAILED or
731    * JOB_STATE_CANCELLED.
732    * </pre>
733    *
734    * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
735    */
736   @java.lang.Override
getErrorOrBuilder()737   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
738     return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
739   }
740 
741   public static final int LABELS_FIELD_NUMBER = 16;
742 
743   private static final class LabelsDefaultEntryHolder {
744     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
745         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
746             com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobProto
747                 .internal_static_google_cloud_aiplatform_v1beta1_HyperparameterTuningJob_LabelsEntry_descriptor,
748             com.google.protobuf.WireFormat.FieldType.STRING,
749             "",
750             com.google.protobuf.WireFormat.FieldType.STRING,
751             "");
752   }
753 
754   @SuppressWarnings("serial")
755   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
756 
internalGetLabels()757   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
758     if (labels_ == null) {
759       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
760     }
761     return labels_;
762   }
763 
getLabelsCount()764   public int getLabelsCount() {
765     return internalGetLabels().getMap().size();
766   }
767   /**
768    *
769    *
770    * <pre>
771    * The labels with user-defined metadata to organize HyperparameterTuningJobs.
772    * Label keys and values can be no longer than 64 characters
773    * (Unicode codepoints), can only contain lowercase letters, numeric
774    * characters, underscores and dashes. International characters are allowed.
775    * See https://goo.gl/xmQnxf for more information and examples of labels.
776    * </pre>
777    *
778    * <code>map&lt;string, string&gt; labels = 16;</code>
779    */
780   @java.lang.Override
containsLabels(java.lang.String key)781   public boolean containsLabels(java.lang.String key) {
782     if (key == null) {
783       throw new NullPointerException("map key");
784     }
785     return internalGetLabels().getMap().containsKey(key);
786   }
787   /** Use {@link #getLabelsMap()} instead. */
788   @java.lang.Override
789   @java.lang.Deprecated
getLabels()790   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
791     return getLabelsMap();
792   }
793   /**
794    *
795    *
796    * <pre>
797    * The labels with user-defined metadata to organize HyperparameterTuningJobs.
798    * Label keys and values can be no longer than 64 characters
799    * (Unicode codepoints), can only contain lowercase letters, numeric
800    * characters, underscores and dashes. International characters are allowed.
801    * See https://goo.gl/xmQnxf for more information and examples of labels.
802    * </pre>
803    *
804    * <code>map&lt;string, string&gt; labels = 16;</code>
805    */
806   @java.lang.Override
getLabelsMap()807   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
808     return internalGetLabels().getMap();
809   }
810   /**
811    *
812    *
813    * <pre>
814    * The labels with user-defined metadata to organize HyperparameterTuningJobs.
815    * Label keys and values can be no longer than 64 characters
816    * (Unicode codepoints), can only contain lowercase letters, numeric
817    * characters, underscores and dashes. International characters are allowed.
818    * See https://goo.gl/xmQnxf for more information and examples of labels.
819    * </pre>
820    *
821    * <code>map&lt;string, string&gt; labels = 16;</code>
822    */
823   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)824   public /* nullable */ java.lang.String getLabelsOrDefault(
825       java.lang.String key,
826       /* nullable */
827       java.lang.String defaultValue) {
828     if (key == null) {
829       throw new NullPointerException("map key");
830     }
831     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
832     return map.containsKey(key) ? map.get(key) : defaultValue;
833   }
834   /**
835    *
836    *
837    * <pre>
838    * The labels with user-defined metadata to organize HyperparameterTuningJobs.
839    * Label keys and values can be no longer than 64 characters
840    * (Unicode codepoints), can only contain lowercase letters, numeric
841    * characters, underscores and dashes. International characters are allowed.
842    * See https://goo.gl/xmQnxf for more information and examples of labels.
843    * </pre>
844    *
845    * <code>map&lt;string, string&gt; labels = 16;</code>
846    */
847   @java.lang.Override
getLabelsOrThrow(java.lang.String key)848   public java.lang.String getLabelsOrThrow(java.lang.String key) {
849     if (key == null) {
850       throw new NullPointerException("map key");
851     }
852     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
853     if (!map.containsKey(key)) {
854       throw new java.lang.IllegalArgumentException();
855     }
856     return map.get(key);
857   }
858 
859   public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 17;
860   private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_;
861   /**
862    *
863    *
864    * <pre>
865    * Customer-managed encryption key options for a HyperparameterTuningJob.
866    * If this is set, then all resources created by the HyperparameterTuningJob
867    * will be encrypted with the provided encryption key.
868    * </pre>
869    *
870    * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
871    *
872    * @return Whether the encryptionSpec field is set.
873    */
874   @java.lang.Override
hasEncryptionSpec()875   public boolean hasEncryptionSpec() {
876     return encryptionSpec_ != null;
877   }
878   /**
879    *
880    *
881    * <pre>
882    * Customer-managed encryption key options for a HyperparameterTuningJob.
883    * If this is set, then all resources created by the HyperparameterTuningJob
884    * will be encrypted with the provided encryption key.
885    * </pre>
886    *
887    * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
888    *
889    * @return The encryptionSpec.
890    */
891   @java.lang.Override
getEncryptionSpec()892   public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() {
893     return encryptionSpec_ == null
894         ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
895         : encryptionSpec_;
896   }
897   /**
898    *
899    *
900    * <pre>
901    * Customer-managed encryption key options for a HyperparameterTuningJob.
902    * If this is set, then all resources created by the HyperparameterTuningJob
903    * will be encrypted with the provided encryption key.
904    * </pre>
905    *
906    * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
907    */
908   @java.lang.Override
getEncryptionSpecOrBuilder()909   public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() {
910     return encryptionSpec_ == null
911         ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
912         : encryptionSpec_;
913   }
914 
915   private byte memoizedIsInitialized = -1;
916 
917   @java.lang.Override
isInitialized()918   public final boolean isInitialized() {
919     byte isInitialized = memoizedIsInitialized;
920     if (isInitialized == 1) return true;
921     if (isInitialized == 0) return false;
922 
923     memoizedIsInitialized = 1;
924     return true;
925   }
926 
927   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)928   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
929     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
930       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
931     }
932     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
933       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
934     }
935     if (studySpec_ != null) {
936       output.writeMessage(4, getStudySpec());
937     }
938     if (maxTrialCount_ != 0) {
939       output.writeInt32(5, maxTrialCount_);
940     }
941     if (parallelTrialCount_ != 0) {
942       output.writeInt32(6, parallelTrialCount_);
943     }
944     if (maxFailedTrialCount_ != 0) {
945       output.writeInt32(7, maxFailedTrialCount_);
946     }
947     if (trialJobSpec_ != null) {
948       output.writeMessage(8, getTrialJobSpec());
949     }
950     for (int i = 0; i < trials_.size(); i++) {
951       output.writeMessage(9, trials_.get(i));
952     }
953     if (state_ != com.google.cloud.aiplatform.v1beta1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) {
954       output.writeEnum(10, state_);
955     }
956     if (createTime_ != null) {
957       output.writeMessage(11, getCreateTime());
958     }
959     if (startTime_ != null) {
960       output.writeMessage(12, getStartTime());
961     }
962     if (endTime_ != null) {
963       output.writeMessage(13, getEndTime());
964     }
965     if (updateTime_ != null) {
966       output.writeMessage(14, getUpdateTime());
967     }
968     if (error_ != null) {
969       output.writeMessage(15, getError());
970     }
971     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
972         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 16);
973     if (encryptionSpec_ != null) {
974       output.writeMessage(17, getEncryptionSpec());
975     }
976     getUnknownFields().writeTo(output);
977   }
978 
979   @java.lang.Override
getSerializedSize()980   public int getSerializedSize() {
981     int size = memoizedSize;
982     if (size != -1) return size;
983 
984     size = 0;
985     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
986       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
987     }
988     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
989       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
990     }
991     if (studySpec_ != null) {
992       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStudySpec());
993     }
994     if (maxTrialCount_ != 0) {
995       size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxTrialCount_);
996     }
997     if (parallelTrialCount_ != 0) {
998       size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, parallelTrialCount_);
999     }
1000     if (maxFailedTrialCount_ != 0) {
1001       size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, maxFailedTrialCount_);
1002     }
1003     if (trialJobSpec_ != null) {
1004       size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTrialJobSpec());
1005     }
1006     for (int i = 0; i < trials_.size(); i++) {
1007       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, trials_.get(i));
1008     }
1009     if (state_ != com.google.cloud.aiplatform.v1beta1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) {
1010       size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_);
1011     }
1012     if (createTime_ != null) {
1013       size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime());
1014     }
1015     if (startTime_ != null) {
1016       size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStartTime());
1017     }
1018     if (endTime_ != null) {
1019       size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getEndTime());
1020     }
1021     if (updateTime_ != null) {
1022       size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime());
1023     }
1024     if (error_ != null) {
1025       size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError());
1026     }
1027     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1028         internalGetLabels().getMap().entrySet()) {
1029       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1030           LabelsDefaultEntryHolder.defaultEntry
1031               .newBuilderForType()
1032               .setKey(entry.getKey())
1033               .setValue(entry.getValue())
1034               .build();
1035       size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, labels__);
1036     }
1037     if (encryptionSpec_ != null) {
1038       size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionSpec());
1039     }
1040     size += getUnknownFields().getSerializedSize();
1041     memoizedSize = size;
1042     return size;
1043   }
1044 
1045   @java.lang.Override
equals(final java.lang.Object obj)1046   public boolean equals(final java.lang.Object obj) {
1047     if (obj == this) {
1048       return true;
1049     }
1050     if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob)) {
1051       return super.equals(obj);
1052     }
1053     com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob other =
1054         (com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) obj;
1055 
1056     if (!getName().equals(other.getName())) return false;
1057     if (!getDisplayName().equals(other.getDisplayName())) return false;
1058     if (hasStudySpec() != other.hasStudySpec()) return false;
1059     if (hasStudySpec()) {
1060       if (!getStudySpec().equals(other.getStudySpec())) return false;
1061     }
1062     if (getMaxTrialCount() != other.getMaxTrialCount()) return false;
1063     if (getParallelTrialCount() != other.getParallelTrialCount()) return false;
1064     if (getMaxFailedTrialCount() != other.getMaxFailedTrialCount()) return false;
1065     if (hasTrialJobSpec() != other.hasTrialJobSpec()) return false;
1066     if (hasTrialJobSpec()) {
1067       if (!getTrialJobSpec().equals(other.getTrialJobSpec())) return false;
1068     }
1069     if (!getTrialsList().equals(other.getTrialsList())) return false;
1070     if (state_ != other.state_) return false;
1071     if (hasCreateTime() != other.hasCreateTime()) return false;
1072     if (hasCreateTime()) {
1073       if (!getCreateTime().equals(other.getCreateTime())) return false;
1074     }
1075     if (hasStartTime() != other.hasStartTime()) return false;
1076     if (hasStartTime()) {
1077       if (!getStartTime().equals(other.getStartTime())) return false;
1078     }
1079     if (hasEndTime() != other.hasEndTime()) return false;
1080     if (hasEndTime()) {
1081       if (!getEndTime().equals(other.getEndTime())) return false;
1082     }
1083     if (hasUpdateTime() != other.hasUpdateTime()) return false;
1084     if (hasUpdateTime()) {
1085       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
1086     }
1087     if (hasError() != other.hasError()) return false;
1088     if (hasError()) {
1089       if (!getError().equals(other.getError())) return false;
1090     }
1091     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
1092     if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false;
1093     if (hasEncryptionSpec()) {
1094       if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false;
1095     }
1096     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1097     return true;
1098   }
1099 
1100   @java.lang.Override
hashCode()1101   public int hashCode() {
1102     if (memoizedHashCode != 0) {
1103       return memoizedHashCode;
1104     }
1105     int hash = 41;
1106     hash = (19 * hash) + getDescriptor().hashCode();
1107     hash = (37 * hash) + NAME_FIELD_NUMBER;
1108     hash = (53 * hash) + getName().hashCode();
1109     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
1110     hash = (53 * hash) + getDisplayName().hashCode();
1111     if (hasStudySpec()) {
1112       hash = (37 * hash) + STUDY_SPEC_FIELD_NUMBER;
1113       hash = (53 * hash) + getStudySpec().hashCode();
1114     }
1115     hash = (37 * hash) + MAX_TRIAL_COUNT_FIELD_NUMBER;
1116     hash = (53 * hash) + getMaxTrialCount();
1117     hash = (37 * hash) + PARALLEL_TRIAL_COUNT_FIELD_NUMBER;
1118     hash = (53 * hash) + getParallelTrialCount();
1119     hash = (37 * hash) + MAX_FAILED_TRIAL_COUNT_FIELD_NUMBER;
1120     hash = (53 * hash) + getMaxFailedTrialCount();
1121     if (hasTrialJobSpec()) {
1122       hash = (37 * hash) + TRIAL_JOB_SPEC_FIELD_NUMBER;
1123       hash = (53 * hash) + getTrialJobSpec().hashCode();
1124     }
1125     if (getTrialsCount() > 0) {
1126       hash = (37 * hash) + TRIALS_FIELD_NUMBER;
1127       hash = (53 * hash) + getTrialsList().hashCode();
1128     }
1129     hash = (37 * hash) + STATE_FIELD_NUMBER;
1130     hash = (53 * hash) + state_;
1131     if (hasCreateTime()) {
1132       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1133       hash = (53 * hash) + getCreateTime().hashCode();
1134     }
1135     if (hasStartTime()) {
1136       hash = (37 * hash) + START_TIME_FIELD_NUMBER;
1137       hash = (53 * hash) + getStartTime().hashCode();
1138     }
1139     if (hasEndTime()) {
1140       hash = (37 * hash) + END_TIME_FIELD_NUMBER;
1141       hash = (53 * hash) + getEndTime().hashCode();
1142     }
1143     if (hasUpdateTime()) {
1144       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
1145       hash = (53 * hash) + getUpdateTime().hashCode();
1146     }
1147     if (hasError()) {
1148       hash = (37 * hash) + ERROR_FIELD_NUMBER;
1149       hash = (53 * hash) + getError().hashCode();
1150     }
1151     if (!internalGetLabels().getMap().isEmpty()) {
1152       hash = (37 * hash) + LABELS_FIELD_NUMBER;
1153       hash = (53 * hash) + internalGetLabels().hashCode();
1154     }
1155     if (hasEncryptionSpec()) {
1156       hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER;
1157       hash = (53 * hash) + getEncryptionSpec().hashCode();
1158     }
1159     hash = (29 * hash) + getUnknownFields().hashCode();
1160     memoizedHashCode = hash;
1161     return hash;
1162   }
1163 
parseFrom( java.nio.ByteBuffer data)1164   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1165       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
1166     return PARSER.parseFrom(data);
1167   }
1168 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1169   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1170       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1171       throws com.google.protobuf.InvalidProtocolBufferException {
1172     return PARSER.parseFrom(data, extensionRegistry);
1173   }
1174 
parseFrom( com.google.protobuf.ByteString data)1175   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1176       com.google.protobuf.ByteString data)
1177       throws com.google.protobuf.InvalidProtocolBufferException {
1178     return PARSER.parseFrom(data);
1179   }
1180 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1181   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1182       com.google.protobuf.ByteString data,
1183       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1184       throws com.google.protobuf.InvalidProtocolBufferException {
1185     return PARSER.parseFrom(data, extensionRegistry);
1186   }
1187 
parseFrom(byte[] data)1188   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(byte[] data)
1189       throws com.google.protobuf.InvalidProtocolBufferException {
1190     return PARSER.parseFrom(data);
1191   }
1192 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1193   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1194       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1195       throws com.google.protobuf.InvalidProtocolBufferException {
1196     return PARSER.parseFrom(data, extensionRegistry);
1197   }
1198 
parseFrom( java.io.InputStream input)1199   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1200       java.io.InputStream input) throws java.io.IOException {
1201     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1202   }
1203 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1204   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1205       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1206       throws java.io.IOException {
1207     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1208         PARSER, input, extensionRegistry);
1209   }
1210 
parseDelimitedFrom( java.io.InputStream input)1211   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseDelimitedFrom(
1212       java.io.InputStream input) throws java.io.IOException {
1213     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1214   }
1215 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1216   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseDelimitedFrom(
1217       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1218       throws java.io.IOException {
1219     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1220         PARSER, input, extensionRegistry);
1221   }
1222 
parseFrom( com.google.protobuf.CodedInputStream input)1223   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1224       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1225     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1226   }
1227 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1228   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob parseFrom(
1229       com.google.protobuf.CodedInputStream input,
1230       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1231       throws java.io.IOException {
1232     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1233         PARSER, input, extensionRegistry);
1234   }
1235 
1236   @java.lang.Override
newBuilderForType()1237   public Builder newBuilderForType() {
1238     return newBuilder();
1239   }
1240 
newBuilder()1241   public static Builder newBuilder() {
1242     return DEFAULT_INSTANCE.toBuilder();
1243   }
1244 
newBuilder( com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob prototype)1245   public static Builder newBuilder(
1246       com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob prototype) {
1247     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1248   }
1249 
1250   @java.lang.Override
toBuilder()1251   public Builder toBuilder() {
1252     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1253   }
1254 
1255   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1256   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1257     Builder builder = new Builder(parent);
1258     return builder;
1259   }
1260   /**
1261    *
1262    *
1263    * <pre>
1264    * Represents a HyperparameterTuningJob. A HyperparameterTuningJob
1265    * has a Study specification and multiple CustomJobs with identical
1266    * CustomJob specification.
1267    * </pre>
1268    *
1269    * Protobuf type {@code google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}
1270    */
1271   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1272       implements
1273       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.HyperparameterTuningJob)
1274       com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobOrBuilder {
getDescriptor()1275     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1276       return com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobProto
1277           .internal_static_google_cloud_aiplatform_v1beta1_HyperparameterTuningJob_descriptor;
1278     }
1279 
1280     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)1281     protected com.google.protobuf.MapField internalGetMapField(int number) {
1282       switch (number) {
1283         case 16:
1284           return internalGetLabels();
1285         default:
1286           throw new RuntimeException("Invalid map field number: " + number);
1287       }
1288     }
1289 
1290     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)1291     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
1292       switch (number) {
1293         case 16:
1294           return internalGetMutableLabels();
1295         default:
1296           throw new RuntimeException("Invalid map field number: " + number);
1297       }
1298     }
1299 
1300     @java.lang.Override
1301     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1302         internalGetFieldAccessorTable() {
1303       return com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobProto
1304           .internal_static_google_cloud_aiplatform_v1beta1_HyperparameterTuningJob_fieldAccessorTable
1305           .ensureFieldAccessorsInitialized(
1306               com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.class,
1307               com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.Builder.class);
1308     }
1309 
1310     // Construct using com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.newBuilder()
Builder()1311     private Builder() {}
1312 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1313     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1314       super(parent);
1315     }
1316 
1317     @java.lang.Override
clear()1318     public Builder clear() {
1319       super.clear();
1320       bitField0_ = 0;
1321       name_ = "";
1322       displayName_ = "";
1323       studySpec_ = null;
1324       if (studySpecBuilder_ != null) {
1325         studySpecBuilder_.dispose();
1326         studySpecBuilder_ = null;
1327       }
1328       maxTrialCount_ = 0;
1329       parallelTrialCount_ = 0;
1330       maxFailedTrialCount_ = 0;
1331       trialJobSpec_ = null;
1332       if (trialJobSpecBuilder_ != null) {
1333         trialJobSpecBuilder_.dispose();
1334         trialJobSpecBuilder_ = null;
1335       }
1336       if (trialsBuilder_ == null) {
1337         trials_ = java.util.Collections.emptyList();
1338       } else {
1339         trials_ = null;
1340         trialsBuilder_.clear();
1341       }
1342       bitField0_ = (bitField0_ & ~0x00000080);
1343       state_ = 0;
1344       createTime_ = null;
1345       if (createTimeBuilder_ != null) {
1346         createTimeBuilder_.dispose();
1347         createTimeBuilder_ = null;
1348       }
1349       startTime_ = null;
1350       if (startTimeBuilder_ != null) {
1351         startTimeBuilder_.dispose();
1352         startTimeBuilder_ = null;
1353       }
1354       endTime_ = null;
1355       if (endTimeBuilder_ != null) {
1356         endTimeBuilder_.dispose();
1357         endTimeBuilder_ = null;
1358       }
1359       updateTime_ = null;
1360       if (updateTimeBuilder_ != null) {
1361         updateTimeBuilder_.dispose();
1362         updateTimeBuilder_ = null;
1363       }
1364       error_ = null;
1365       if (errorBuilder_ != null) {
1366         errorBuilder_.dispose();
1367         errorBuilder_ = null;
1368       }
1369       internalGetMutableLabels().clear();
1370       encryptionSpec_ = null;
1371       if (encryptionSpecBuilder_ != null) {
1372         encryptionSpecBuilder_.dispose();
1373         encryptionSpecBuilder_ = null;
1374       }
1375       return this;
1376     }
1377 
1378     @java.lang.Override
getDescriptorForType()1379     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1380       return com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJobProto
1381           .internal_static_google_cloud_aiplatform_v1beta1_HyperparameterTuningJob_descriptor;
1382     }
1383 
1384     @java.lang.Override
getDefaultInstanceForType()1385     public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getDefaultInstanceForType() {
1386       return com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.getDefaultInstance();
1387     }
1388 
1389     @java.lang.Override
build()1390     public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob build() {
1391       com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result = buildPartial();
1392       if (!result.isInitialized()) {
1393         throw newUninitializedMessageException(result);
1394       }
1395       return result;
1396     }
1397 
1398     @java.lang.Override
buildPartial()1399     public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob buildPartial() {
1400       com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result =
1401           new com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob(this);
1402       buildPartialRepeatedFields(result);
1403       if (bitField0_ != 0) {
1404         buildPartial0(result);
1405       }
1406       onBuilt();
1407       return result;
1408     }
1409 
buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result)1410     private void buildPartialRepeatedFields(
1411         com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result) {
1412       if (trialsBuilder_ == null) {
1413         if (((bitField0_ & 0x00000080) != 0)) {
1414           trials_ = java.util.Collections.unmodifiableList(trials_);
1415           bitField0_ = (bitField0_ & ~0x00000080);
1416         }
1417         result.trials_ = trials_;
1418       } else {
1419         result.trials_ = trialsBuilder_.build();
1420       }
1421     }
1422 
buildPartial0(com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result)1423     private void buildPartial0(com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob result) {
1424       int from_bitField0_ = bitField0_;
1425       if (((from_bitField0_ & 0x00000001) != 0)) {
1426         result.name_ = name_;
1427       }
1428       if (((from_bitField0_ & 0x00000002) != 0)) {
1429         result.displayName_ = displayName_;
1430       }
1431       if (((from_bitField0_ & 0x00000004) != 0)) {
1432         result.studySpec_ = studySpecBuilder_ == null ? studySpec_ : studySpecBuilder_.build();
1433       }
1434       if (((from_bitField0_ & 0x00000008) != 0)) {
1435         result.maxTrialCount_ = maxTrialCount_;
1436       }
1437       if (((from_bitField0_ & 0x00000010) != 0)) {
1438         result.parallelTrialCount_ = parallelTrialCount_;
1439       }
1440       if (((from_bitField0_ & 0x00000020) != 0)) {
1441         result.maxFailedTrialCount_ = maxFailedTrialCount_;
1442       }
1443       if (((from_bitField0_ & 0x00000040) != 0)) {
1444         result.trialJobSpec_ =
1445             trialJobSpecBuilder_ == null ? trialJobSpec_ : trialJobSpecBuilder_.build();
1446       }
1447       if (((from_bitField0_ & 0x00000100) != 0)) {
1448         result.state_ = state_;
1449       }
1450       if (((from_bitField0_ & 0x00000200) != 0)) {
1451         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1452       }
1453       if (((from_bitField0_ & 0x00000400) != 0)) {
1454         result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
1455       }
1456       if (((from_bitField0_ & 0x00000800) != 0)) {
1457         result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
1458       }
1459       if (((from_bitField0_ & 0x00001000) != 0)) {
1460         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
1461       }
1462       if (((from_bitField0_ & 0x00002000) != 0)) {
1463         result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
1464       }
1465       if (((from_bitField0_ & 0x00004000) != 0)) {
1466         result.labels_ = internalGetLabels();
1467         result.labels_.makeImmutable();
1468       }
1469       if (((from_bitField0_ & 0x00008000) != 0)) {
1470         result.encryptionSpec_ =
1471             encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build();
1472       }
1473     }
1474 
1475     @java.lang.Override
clone()1476     public Builder clone() {
1477       return super.clone();
1478     }
1479 
1480     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1481     public Builder setField(
1482         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1483       return super.setField(field, value);
1484     }
1485 
1486     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1487     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1488       return super.clearField(field);
1489     }
1490 
1491     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1492     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1493       return super.clearOneof(oneof);
1494     }
1495 
1496     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1497     public Builder setRepeatedField(
1498         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1499       return super.setRepeatedField(field, index, value);
1500     }
1501 
1502     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1503     public Builder addRepeatedField(
1504         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1505       return super.addRepeatedField(field, value);
1506     }
1507 
1508     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1509     public Builder mergeFrom(com.google.protobuf.Message other) {
1510       if (other instanceof com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) {
1511         return mergeFrom((com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) other);
1512       } else {
1513         super.mergeFrom(other);
1514         return this;
1515       }
1516     }
1517 
mergeFrom(com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob other)1518     public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob other) {
1519       if (other == com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.getDefaultInstance())
1520         return this;
1521       if (!other.getName().isEmpty()) {
1522         name_ = other.name_;
1523         bitField0_ |= 0x00000001;
1524         onChanged();
1525       }
1526       if (!other.getDisplayName().isEmpty()) {
1527         displayName_ = other.displayName_;
1528         bitField0_ |= 0x00000002;
1529         onChanged();
1530       }
1531       if (other.hasStudySpec()) {
1532         mergeStudySpec(other.getStudySpec());
1533       }
1534       if (other.getMaxTrialCount() != 0) {
1535         setMaxTrialCount(other.getMaxTrialCount());
1536       }
1537       if (other.getParallelTrialCount() != 0) {
1538         setParallelTrialCount(other.getParallelTrialCount());
1539       }
1540       if (other.getMaxFailedTrialCount() != 0) {
1541         setMaxFailedTrialCount(other.getMaxFailedTrialCount());
1542       }
1543       if (other.hasTrialJobSpec()) {
1544         mergeTrialJobSpec(other.getTrialJobSpec());
1545       }
1546       if (trialsBuilder_ == null) {
1547         if (!other.trials_.isEmpty()) {
1548           if (trials_.isEmpty()) {
1549             trials_ = other.trials_;
1550             bitField0_ = (bitField0_ & ~0x00000080);
1551           } else {
1552             ensureTrialsIsMutable();
1553             trials_.addAll(other.trials_);
1554           }
1555           onChanged();
1556         }
1557       } else {
1558         if (!other.trials_.isEmpty()) {
1559           if (trialsBuilder_.isEmpty()) {
1560             trialsBuilder_.dispose();
1561             trialsBuilder_ = null;
1562             trials_ = other.trials_;
1563             bitField0_ = (bitField0_ & ~0x00000080);
1564             trialsBuilder_ =
1565                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1566                     ? getTrialsFieldBuilder()
1567                     : null;
1568           } else {
1569             trialsBuilder_.addAllMessages(other.trials_);
1570           }
1571         }
1572       }
1573       if (other.state_ != 0) {
1574         setStateValue(other.getStateValue());
1575       }
1576       if (other.hasCreateTime()) {
1577         mergeCreateTime(other.getCreateTime());
1578       }
1579       if (other.hasStartTime()) {
1580         mergeStartTime(other.getStartTime());
1581       }
1582       if (other.hasEndTime()) {
1583         mergeEndTime(other.getEndTime());
1584       }
1585       if (other.hasUpdateTime()) {
1586         mergeUpdateTime(other.getUpdateTime());
1587       }
1588       if (other.hasError()) {
1589         mergeError(other.getError());
1590       }
1591       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
1592       bitField0_ |= 0x00004000;
1593       if (other.hasEncryptionSpec()) {
1594         mergeEncryptionSpec(other.getEncryptionSpec());
1595       }
1596       this.mergeUnknownFields(other.getUnknownFields());
1597       onChanged();
1598       return this;
1599     }
1600 
1601     @java.lang.Override
isInitialized()1602     public final boolean isInitialized() {
1603       return true;
1604     }
1605 
1606     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1607     public Builder mergeFrom(
1608         com.google.protobuf.CodedInputStream input,
1609         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1610         throws java.io.IOException {
1611       if (extensionRegistry == null) {
1612         throw new java.lang.NullPointerException();
1613       }
1614       try {
1615         boolean done = false;
1616         while (!done) {
1617           int tag = input.readTag();
1618           switch (tag) {
1619             case 0:
1620               done = true;
1621               break;
1622             case 10:
1623               {
1624                 name_ = input.readStringRequireUtf8();
1625                 bitField0_ |= 0x00000001;
1626                 break;
1627               } // case 10
1628             case 18:
1629               {
1630                 displayName_ = input.readStringRequireUtf8();
1631                 bitField0_ |= 0x00000002;
1632                 break;
1633               } // case 18
1634             case 34:
1635               {
1636                 input.readMessage(getStudySpecFieldBuilder().getBuilder(), extensionRegistry);
1637                 bitField0_ |= 0x00000004;
1638                 break;
1639               } // case 34
1640             case 40:
1641               {
1642                 maxTrialCount_ = input.readInt32();
1643                 bitField0_ |= 0x00000008;
1644                 break;
1645               } // case 40
1646             case 48:
1647               {
1648                 parallelTrialCount_ = input.readInt32();
1649                 bitField0_ |= 0x00000010;
1650                 break;
1651               } // case 48
1652             case 56:
1653               {
1654                 maxFailedTrialCount_ = input.readInt32();
1655                 bitField0_ |= 0x00000020;
1656                 break;
1657               } // case 56
1658             case 66:
1659               {
1660                 input.readMessage(getTrialJobSpecFieldBuilder().getBuilder(), extensionRegistry);
1661                 bitField0_ |= 0x00000040;
1662                 break;
1663               } // case 66
1664             case 74:
1665               {
1666                 com.google.cloud.aiplatform.v1beta1.Trial m =
1667                     input.readMessage(
1668                         com.google.cloud.aiplatform.v1beta1.Trial.parser(), extensionRegistry);
1669                 if (trialsBuilder_ == null) {
1670                   ensureTrialsIsMutable();
1671                   trials_.add(m);
1672                 } else {
1673                   trialsBuilder_.addMessage(m);
1674                 }
1675                 break;
1676               } // case 74
1677             case 80:
1678               {
1679                 state_ = input.readEnum();
1680                 bitField0_ |= 0x00000100;
1681                 break;
1682               } // case 80
1683             case 90:
1684               {
1685                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1686                 bitField0_ |= 0x00000200;
1687                 break;
1688               } // case 90
1689             case 98:
1690               {
1691                 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
1692                 bitField0_ |= 0x00000400;
1693                 break;
1694               } // case 98
1695             case 106:
1696               {
1697                 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
1698                 bitField0_ |= 0x00000800;
1699                 break;
1700               } // case 106
1701             case 114:
1702               {
1703                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
1704                 bitField0_ |= 0x00001000;
1705                 break;
1706               } // case 114
1707             case 122:
1708               {
1709                 input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
1710                 bitField0_ |= 0x00002000;
1711                 break;
1712               } // case 122
1713             case 130:
1714               {
1715                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1716                     input.readMessage(
1717                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
1718                         extensionRegistry);
1719                 internalGetMutableLabels()
1720                     .getMutableMap()
1721                     .put(labels__.getKey(), labels__.getValue());
1722                 bitField0_ |= 0x00004000;
1723                 break;
1724               } // case 130
1725             case 138:
1726               {
1727                 input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry);
1728                 bitField0_ |= 0x00008000;
1729                 break;
1730               } // case 138
1731             default:
1732               {
1733                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1734                   done = true; // was an endgroup tag
1735                 }
1736                 break;
1737               } // default:
1738           } // switch (tag)
1739         } // while (!done)
1740       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1741         throw e.unwrapIOException();
1742       } finally {
1743         onChanged();
1744       } // finally
1745       return this;
1746     }
1747 
1748     private int bitField0_;
1749 
1750     private java.lang.Object name_ = "";
1751     /**
1752      *
1753      *
1754      * <pre>
1755      * Output only. Resource name of the HyperparameterTuningJob.
1756      * </pre>
1757      *
1758      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1759      *
1760      * @return The name.
1761      */
getName()1762     public java.lang.String getName() {
1763       java.lang.Object ref = name_;
1764       if (!(ref instanceof java.lang.String)) {
1765         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1766         java.lang.String s = bs.toStringUtf8();
1767         name_ = s;
1768         return s;
1769       } else {
1770         return (java.lang.String) ref;
1771       }
1772     }
1773     /**
1774      *
1775      *
1776      * <pre>
1777      * Output only. Resource name of the HyperparameterTuningJob.
1778      * </pre>
1779      *
1780      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1781      *
1782      * @return The bytes for name.
1783      */
getNameBytes()1784     public com.google.protobuf.ByteString getNameBytes() {
1785       java.lang.Object ref = name_;
1786       if (ref instanceof String) {
1787         com.google.protobuf.ByteString b =
1788             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1789         name_ = b;
1790         return b;
1791       } else {
1792         return (com.google.protobuf.ByteString) ref;
1793       }
1794     }
1795     /**
1796      *
1797      *
1798      * <pre>
1799      * Output only. Resource name of the HyperparameterTuningJob.
1800      * </pre>
1801      *
1802      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1803      *
1804      * @param value The name to set.
1805      * @return This builder for chaining.
1806      */
setName(java.lang.String value)1807     public Builder setName(java.lang.String value) {
1808       if (value == null) {
1809         throw new NullPointerException();
1810       }
1811       name_ = value;
1812       bitField0_ |= 0x00000001;
1813       onChanged();
1814       return this;
1815     }
1816     /**
1817      *
1818      *
1819      * <pre>
1820      * Output only. Resource name of the HyperparameterTuningJob.
1821      * </pre>
1822      *
1823      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1824      *
1825      * @return This builder for chaining.
1826      */
clearName()1827     public Builder clearName() {
1828       name_ = getDefaultInstance().getName();
1829       bitField0_ = (bitField0_ & ~0x00000001);
1830       onChanged();
1831       return this;
1832     }
1833     /**
1834      *
1835      *
1836      * <pre>
1837      * Output only. Resource name of the HyperparameterTuningJob.
1838      * </pre>
1839      *
1840      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1841      *
1842      * @param value The bytes for name to set.
1843      * @return This builder for chaining.
1844      */
setNameBytes(com.google.protobuf.ByteString value)1845     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1846       if (value == null) {
1847         throw new NullPointerException();
1848       }
1849       checkByteStringIsUtf8(value);
1850       name_ = value;
1851       bitField0_ |= 0x00000001;
1852       onChanged();
1853       return this;
1854     }
1855 
1856     private java.lang.Object displayName_ = "";
1857     /**
1858      *
1859      *
1860      * <pre>
1861      * Required. The display name of the HyperparameterTuningJob.
1862      * The name can be up to 128 characters long and can consist of any UTF-8
1863      * characters.
1864      * </pre>
1865      *
1866      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1867      *
1868      * @return The displayName.
1869      */
getDisplayName()1870     public java.lang.String getDisplayName() {
1871       java.lang.Object ref = displayName_;
1872       if (!(ref instanceof java.lang.String)) {
1873         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1874         java.lang.String s = bs.toStringUtf8();
1875         displayName_ = s;
1876         return s;
1877       } else {
1878         return (java.lang.String) ref;
1879       }
1880     }
1881     /**
1882      *
1883      *
1884      * <pre>
1885      * Required. The display name of the HyperparameterTuningJob.
1886      * The name can be up to 128 characters long and can consist of any UTF-8
1887      * characters.
1888      * </pre>
1889      *
1890      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1891      *
1892      * @return The bytes for displayName.
1893      */
getDisplayNameBytes()1894     public com.google.protobuf.ByteString getDisplayNameBytes() {
1895       java.lang.Object ref = displayName_;
1896       if (ref instanceof String) {
1897         com.google.protobuf.ByteString b =
1898             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1899         displayName_ = b;
1900         return b;
1901       } else {
1902         return (com.google.protobuf.ByteString) ref;
1903       }
1904     }
1905     /**
1906      *
1907      *
1908      * <pre>
1909      * Required. The display name of the HyperparameterTuningJob.
1910      * The name can be up to 128 characters long and can consist of any UTF-8
1911      * characters.
1912      * </pre>
1913      *
1914      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1915      *
1916      * @param value The displayName to set.
1917      * @return This builder for chaining.
1918      */
setDisplayName(java.lang.String value)1919     public Builder setDisplayName(java.lang.String value) {
1920       if (value == null) {
1921         throw new NullPointerException();
1922       }
1923       displayName_ = value;
1924       bitField0_ |= 0x00000002;
1925       onChanged();
1926       return this;
1927     }
1928     /**
1929      *
1930      *
1931      * <pre>
1932      * Required. The display name of the HyperparameterTuningJob.
1933      * The name can be up to 128 characters long and can consist of any UTF-8
1934      * characters.
1935      * </pre>
1936      *
1937      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1938      *
1939      * @return This builder for chaining.
1940      */
clearDisplayName()1941     public Builder clearDisplayName() {
1942       displayName_ = getDefaultInstance().getDisplayName();
1943       bitField0_ = (bitField0_ & ~0x00000002);
1944       onChanged();
1945       return this;
1946     }
1947     /**
1948      *
1949      *
1950      * <pre>
1951      * Required. The display name of the HyperparameterTuningJob.
1952      * The name can be up to 128 characters long and can consist of any UTF-8
1953      * characters.
1954      * </pre>
1955      *
1956      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1957      *
1958      * @param value The bytes for displayName to set.
1959      * @return This builder for chaining.
1960      */
setDisplayNameBytes(com.google.protobuf.ByteString value)1961     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
1962       if (value == null) {
1963         throw new NullPointerException();
1964       }
1965       checkByteStringIsUtf8(value);
1966       displayName_ = value;
1967       bitField0_ |= 0x00000002;
1968       onChanged();
1969       return this;
1970     }
1971 
1972     private com.google.cloud.aiplatform.v1beta1.StudySpec studySpec_;
1973     private com.google.protobuf.SingleFieldBuilderV3<
1974             com.google.cloud.aiplatform.v1beta1.StudySpec,
1975             com.google.cloud.aiplatform.v1beta1.StudySpec.Builder,
1976             com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder>
1977         studySpecBuilder_;
1978     /**
1979      *
1980      *
1981      * <pre>
1982      * Required. Study configuration of the HyperparameterTuningJob.
1983      * </pre>
1984      *
1985      * <code>
1986      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
1987      * </code>
1988      *
1989      * @return Whether the studySpec field is set.
1990      */
hasStudySpec()1991     public boolean hasStudySpec() {
1992       return ((bitField0_ & 0x00000004) != 0);
1993     }
1994     /**
1995      *
1996      *
1997      * <pre>
1998      * Required. Study configuration of the HyperparameterTuningJob.
1999      * </pre>
2000      *
2001      * <code>
2002      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2003      * </code>
2004      *
2005      * @return The studySpec.
2006      */
getStudySpec()2007     public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() {
2008       if (studySpecBuilder_ == null) {
2009         return studySpec_ == null
2010             ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
2011             : studySpec_;
2012       } else {
2013         return studySpecBuilder_.getMessage();
2014       }
2015     }
2016     /**
2017      *
2018      *
2019      * <pre>
2020      * Required. Study configuration of the HyperparameterTuningJob.
2021      * </pre>
2022      *
2023      * <code>
2024      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2025      * </code>
2026      */
setStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value)2027     public Builder setStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) {
2028       if (studySpecBuilder_ == null) {
2029         if (value == null) {
2030           throw new NullPointerException();
2031         }
2032         studySpec_ = value;
2033       } else {
2034         studySpecBuilder_.setMessage(value);
2035       }
2036       bitField0_ |= 0x00000004;
2037       onChanged();
2038       return this;
2039     }
2040     /**
2041      *
2042      *
2043      * <pre>
2044      * Required. Study configuration of the HyperparameterTuningJob.
2045      * </pre>
2046      *
2047      * <code>
2048      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2049      * </code>
2050      */
setStudySpec( com.google.cloud.aiplatform.v1beta1.StudySpec.Builder builderForValue)2051     public Builder setStudySpec(
2052         com.google.cloud.aiplatform.v1beta1.StudySpec.Builder builderForValue) {
2053       if (studySpecBuilder_ == null) {
2054         studySpec_ = builderForValue.build();
2055       } else {
2056         studySpecBuilder_.setMessage(builderForValue.build());
2057       }
2058       bitField0_ |= 0x00000004;
2059       onChanged();
2060       return this;
2061     }
2062     /**
2063      *
2064      *
2065      * <pre>
2066      * Required. Study configuration of the HyperparameterTuningJob.
2067      * </pre>
2068      *
2069      * <code>
2070      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2071      * </code>
2072      */
mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value)2073     public Builder mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) {
2074       if (studySpecBuilder_ == null) {
2075         if (((bitField0_ & 0x00000004) != 0)
2076             && studySpec_ != null
2077             && studySpec_ != com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()) {
2078           getStudySpecBuilder().mergeFrom(value);
2079         } else {
2080           studySpec_ = value;
2081         }
2082       } else {
2083         studySpecBuilder_.mergeFrom(value);
2084       }
2085       bitField0_ |= 0x00000004;
2086       onChanged();
2087       return this;
2088     }
2089     /**
2090      *
2091      *
2092      * <pre>
2093      * Required. Study configuration of the HyperparameterTuningJob.
2094      * </pre>
2095      *
2096      * <code>
2097      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2098      * </code>
2099      */
clearStudySpec()2100     public Builder clearStudySpec() {
2101       bitField0_ = (bitField0_ & ~0x00000004);
2102       studySpec_ = null;
2103       if (studySpecBuilder_ != null) {
2104         studySpecBuilder_.dispose();
2105         studySpecBuilder_ = null;
2106       }
2107       onChanged();
2108       return this;
2109     }
2110     /**
2111      *
2112      *
2113      * <pre>
2114      * Required. Study configuration of the HyperparameterTuningJob.
2115      * </pre>
2116      *
2117      * <code>
2118      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2119      * </code>
2120      */
getStudySpecBuilder()2121     public com.google.cloud.aiplatform.v1beta1.StudySpec.Builder getStudySpecBuilder() {
2122       bitField0_ |= 0x00000004;
2123       onChanged();
2124       return getStudySpecFieldBuilder().getBuilder();
2125     }
2126     /**
2127      *
2128      *
2129      * <pre>
2130      * Required. Study configuration of the HyperparameterTuningJob.
2131      * </pre>
2132      *
2133      * <code>
2134      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2135      * </code>
2136      */
getStudySpecOrBuilder()2137     public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() {
2138       if (studySpecBuilder_ != null) {
2139         return studySpecBuilder_.getMessageOrBuilder();
2140       } else {
2141         return studySpec_ == null
2142             ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
2143             : studySpec_;
2144       }
2145     }
2146     /**
2147      *
2148      *
2149      * <pre>
2150      * Required. Study configuration of the HyperparameterTuningJob.
2151      * </pre>
2152      *
2153      * <code>
2154      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED];
2155      * </code>
2156      */
2157     private com.google.protobuf.SingleFieldBuilderV3<
2158             com.google.cloud.aiplatform.v1beta1.StudySpec,
2159             com.google.cloud.aiplatform.v1beta1.StudySpec.Builder,
2160             com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder>
getStudySpecFieldBuilder()2161         getStudySpecFieldBuilder() {
2162       if (studySpecBuilder_ == null) {
2163         studySpecBuilder_ =
2164             new com.google.protobuf.SingleFieldBuilderV3<
2165                 com.google.cloud.aiplatform.v1beta1.StudySpec,
2166                 com.google.cloud.aiplatform.v1beta1.StudySpec.Builder,
2167                 com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder>(
2168                 getStudySpec(), getParentForChildren(), isClean());
2169         studySpec_ = null;
2170       }
2171       return studySpecBuilder_;
2172     }
2173 
2174     private int maxTrialCount_;
2175     /**
2176      *
2177      *
2178      * <pre>
2179      * Required. The desired total number of Trials.
2180      * </pre>
2181      *
2182      * <code>int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2183      *
2184      * @return The maxTrialCount.
2185      */
2186     @java.lang.Override
getMaxTrialCount()2187     public int getMaxTrialCount() {
2188       return maxTrialCount_;
2189     }
2190     /**
2191      *
2192      *
2193      * <pre>
2194      * Required. The desired total number of Trials.
2195      * </pre>
2196      *
2197      * <code>int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2198      *
2199      * @param value The maxTrialCount to set.
2200      * @return This builder for chaining.
2201      */
setMaxTrialCount(int value)2202     public Builder setMaxTrialCount(int value) {
2203 
2204       maxTrialCount_ = value;
2205       bitField0_ |= 0x00000008;
2206       onChanged();
2207       return this;
2208     }
2209     /**
2210      *
2211      *
2212      * <pre>
2213      * Required. The desired total number of Trials.
2214      * </pre>
2215      *
2216      * <code>int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2217      *
2218      * @return This builder for chaining.
2219      */
clearMaxTrialCount()2220     public Builder clearMaxTrialCount() {
2221       bitField0_ = (bitField0_ & ~0x00000008);
2222       maxTrialCount_ = 0;
2223       onChanged();
2224       return this;
2225     }
2226 
2227     private int parallelTrialCount_;
2228     /**
2229      *
2230      *
2231      * <pre>
2232      * Required. The desired number of Trials to run in parallel.
2233      * </pre>
2234      *
2235      * <code>int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2236      *
2237      * @return The parallelTrialCount.
2238      */
2239     @java.lang.Override
getParallelTrialCount()2240     public int getParallelTrialCount() {
2241       return parallelTrialCount_;
2242     }
2243     /**
2244      *
2245      *
2246      * <pre>
2247      * Required. The desired number of Trials to run in parallel.
2248      * </pre>
2249      *
2250      * <code>int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2251      *
2252      * @param value The parallelTrialCount to set.
2253      * @return This builder for chaining.
2254      */
setParallelTrialCount(int value)2255     public Builder setParallelTrialCount(int value) {
2256 
2257       parallelTrialCount_ = value;
2258       bitField0_ |= 0x00000010;
2259       onChanged();
2260       return this;
2261     }
2262     /**
2263      *
2264      *
2265      * <pre>
2266      * Required. The desired number of Trials to run in parallel.
2267      * </pre>
2268      *
2269      * <code>int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED];</code>
2270      *
2271      * @return This builder for chaining.
2272      */
clearParallelTrialCount()2273     public Builder clearParallelTrialCount() {
2274       bitField0_ = (bitField0_ & ~0x00000010);
2275       parallelTrialCount_ = 0;
2276       onChanged();
2277       return this;
2278     }
2279 
2280     private int maxFailedTrialCount_;
2281     /**
2282      *
2283      *
2284      * <pre>
2285      * The number of failed Trials that need to be seen before failing
2286      * the HyperparameterTuningJob.
2287      * If set to 0, Vertex AI decides how many Trials must fail
2288      * before the whole job fails.
2289      * </pre>
2290      *
2291      * <code>int32 max_failed_trial_count = 7;</code>
2292      *
2293      * @return The maxFailedTrialCount.
2294      */
2295     @java.lang.Override
getMaxFailedTrialCount()2296     public int getMaxFailedTrialCount() {
2297       return maxFailedTrialCount_;
2298     }
2299     /**
2300      *
2301      *
2302      * <pre>
2303      * The number of failed Trials that need to be seen before failing
2304      * the HyperparameterTuningJob.
2305      * If set to 0, Vertex AI decides how many Trials must fail
2306      * before the whole job fails.
2307      * </pre>
2308      *
2309      * <code>int32 max_failed_trial_count = 7;</code>
2310      *
2311      * @param value The maxFailedTrialCount to set.
2312      * @return This builder for chaining.
2313      */
setMaxFailedTrialCount(int value)2314     public Builder setMaxFailedTrialCount(int value) {
2315 
2316       maxFailedTrialCount_ = value;
2317       bitField0_ |= 0x00000020;
2318       onChanged();
2319       return this;
2320     }
2321     /**
2322      *
2323      *
2324      * <pre>
2325      * The number of failed Trials that need to be seen before failing
2326      * the HyperparameterTuningJob.
2327      * If set to 0, Vertex AI decides how many Trials must fail
2328      * before the whole job fails.
2329      * </pre>
2330      *
2331      * <code>int32 max_failed_trial_count = 7;</code>
2332      *
2333      * @return This builder for chaining.
2334      */
clearMaxFailedTrialCount()2335     public Builder clearMaxFailedTrialCount() {
2336       bitField0_ = (bitField0_ & ~0x00000020);
2337       maxFailedTrialCount_ = 0;
2338       onChanged();
2339       return this;
2340     }
2341 
2342     private com.google.cloud.aiplatform.v1beta1.CustomJobSpec trialJobSpec_;
2343     private com.google.protobuf.SingleFieldBuilderV3<
2344             com.google.cloud.aiplatform.v1beta1.CustomJobSpec,
2345             com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder,
2346             com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder>
2347         trialJobSpecBuilder_;
2348     /**
2349      *
2350      *
2351      * <pre>
2352      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2353      * created in all the trials.
2354      * </pre>
2355      *
2356      * <code>
2357      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2358      * </code>
2359      *
2360      * @return Whether the trialJobSpec field is set.
2361      */
hasTrialJobSpec()2362     public boolean hasTrialJobSpec() {
2363       return ((bitField0_ & 0x00000040) != 0);
2364     }
2365     /**
2366      *
2367      *
2368      * <pre>
2369      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2370      * created in all the trials.
2371      * </pre>
2372      *
2373      * <code>
2374      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2375      * </code>
2376      *
2377      * @return The trialJobSpec.
2378      */
getTrialJobSpec()2379     public com.google.cloud.aiplatform.v1beta1.CustomJobSpec getTrialJobSpec() {
2380       if (trialJobSpecBuilder_ == null) {
2381         return trialJobSpec_ == null
2382             ? com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance()
2383             : trialJobSpec_;
2384       } else {
2385         return trialJobSpecBuilder_.getMessage();
2386       }
2387     }
2388     /**
2389      *
2390      *
2391      * <pre>
2392      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2393      * created in all the trials.
2394      * </pre>
2395      *
2396      * <code>
2397      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2398      * </code>
2399      */
setTrialJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec value)2400     public Builder setTrialJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec value) {
2401       if (trialJobSpecBuilder_ == null) {
2402         if (value == null) {
2403           throw new NullPointerException();
2404         }
2405         trialJobSpec_ = value;
2406       } else {
2407         trialJobSpecBuilder_.setMessage(value);
2408       }
2409       bitField0_ |= 0x00000040;
2410       onChanged();
2411       return this;
2412     }
2413     /**
2414      *
2415      *
2416      * <pre>
2417      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2418      * created in all the trials.
2419      * </pre>
2420      *
2421      * <code>
2422      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2423      * </code>
2424      */
setTrialJobSpec( com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder builderForValue)2425     public Builder setTrialJobSpec(
2426         com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder builderForValue) {
2427       if (trialJobSpecBuilder_ == null) {
2428         trialJobSpec_ = builderForValue.build();
2429       } else {
2430         trialJobSpecBuilder_.setMessage(builderForValue.build());
2431       }
2432       bitField0_ |= 0x00000040;
2433       onChanged();
2434       return this;
2435     }
2436     /**
2437      *
2438      *
2439      * <pre>
2440      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2441      * created in all the trials.
2442      * </pre>
2443      *
2444      * <code>
2445      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2446      * </code>
2447      */
mergeTrialJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec value)2448     public Builder mergeTrialJobSpec(com.google.cloud.aiplatform.v1beta1.CustomJobSpec value) {
2449       if (trialJobSpecBuilder_ == null) {
2450         if (((bitField0_ & 0x00000040) != 0)
2451             && trialJobSpec_ != null
2452             && trialJobSpec_
2453                 != com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance()) {
2454           getTrialJobSpecBuilder().mergeFrom(value);
2455         } else {
2456           trialJobSpec_ = value;
2457         }
2458       } else {
2459         trialJobSpecBuilder_.mergeFrom(value);
2460       }
2461       bitField0_ |= 0x00000040;
2462       onChanged();
2463       return this;
2464     }
2465     /**
2466      *
2467      *
2468      * <pre>
2469      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2470      * created in all the trials.
2471      * </pre>
2472      *
2473      * <code>
2474      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2475      * </code>
2476      */
clearTrialJobSpec()2477     public Builder clearTrialJobSpec() {
2478       bitField0_ = (bitField0_ & ~0x00000040);
2479       trialJobSpec_ = null;
2480       if (trialJobSpecBuilder_ != null) {
2481         trialJobSpecBuilder_.dispose();
2482         trialJobSpecBuilder_ = null;
2483       }
2484       onChanged();
2485       return this;
2486     }
2487     /**
2488      *
2489      *
2490      * <pre>
2491      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2492      * created in all the trials.
2493      * </pre>
2494      *
2495      * <code>
2496      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2497      * </code>
2498      */
getTrialJobSpecBuilder()2499     public com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder getTrialJobSpecBuilder() {
2500       bitField0_ |= 0x00000040;
2501       onChanged();
2502       return getTrialJobSpecFieldBuilder().getBuilder();
2503     }
2504     /**
2505      *
2506      *
2507      * <pre>
2508      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2509      * created in all the trials.
2510      * </pre>
2511      *
2512      * <code>
2513      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2514      * </code>
2515      */
getTrialJobSpecOrBuilder()2516     public com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder getTrialJobSpecOrBuilder() {
2517       if (trialJobSpecBuilder_ != null) {
2518         return trialJobSpecBuilder_.getMessageOrBuilder();
2519       } else {
2520         return trialJobSpec_ == null
2521             ? com.google.cloud.aiplatform.v1beta1.CustomJobSpec.getDefaultInstance()
2522             : trialJobSpec_;
2523       }
2524     }
2525     /**
2526      *
2527      *
2528      * <pre>
2529      * Required. The spec of a trial job. The same spec applies to the CustomJobs
2530      * created in all the trials.
2531      * </pre>
2532      *
2533      * <code>
2534      * .google.cloud.aiplatform.v1beta1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED];
2535      * </code>
2536      */
2537     private com.google.protobuf.SingleFieldBuilderV3<
2538             com.google.cloud.aiplatform.v1beta1.CustomJobSpec,
2539             com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder,
2540             com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder>
getTrialJobSpecFieldBuilder()2541         getTrialJobSpecFieldBuilder() {
2542       if (trialJobSpecBuilder_ == null) {
2543         trialJobSpecBuilder_ =
2544             new com.google.protobuf.SingleFieldBuilderV3<
2545                 com.google.cloud.aiplatform.v1beta1.CustomJobSpec,
2546                 com.google.cloud.aiplatform.v1beta1.CustomJobSpec.Builder,
2547                 com.google.cloud.aiplatform.v1beta1.CustomJobSpecOrBuilder>(
2548                 getTrialJobSpec(), getParentForChildren(), isClean());
2549         trialJobSpec_ = null;
2550       }
2551       return trialJobSpecBuilder_;
2552     }
2553 
2554     private java.util.List<com.google.cloud.aiplatform.v1beta1.Trial> trials_ =
2555         java.util.Collections.emptyList();
2556 
ensureTrialsIsMutable()2557     private void ensureTrialsIsMutable() {
2558       if (!((bitField0_ & 0x00000080) != 0)) {
2559         trials_ = new java.util.ArrayList<com.google.cloud.aiplatform.v1beta1.Trial>(trials_);
2560         bitField0_ |= 0x00000080;
2561       }
2562     }
2563 
2564     private com.google.protobuf.RepeatedFieldBuilderV3<
2565             com.google.cloud.aiplatform.v1beta1.Trial,
2566             com.google.cloud.aiplatform.v1beta1.Trial.Builder,
2567             com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>
2568         trialsBuilder_;
2569 
2570     /**
2571      *
2572      *
2573      * <pre>
2574      * Output only. Trials of the HyperparameterTuningJob.
2575      * </pre>
2576      *
2577      * <code>
2578      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2579      * </code>
2580      */
getTrialsList()2581     public java.util.List<com.google.cloud.aiplatform.v1beta1.Trial> getTrialsList() {
2582       if (trialsBuilder_ == null) {
2583         return java.util.Collections.unmodifiableList(trials_);
2584       } else {
2585         return trialsBuilder_.getMessageList();
2586       }
2587     }
2588     /**
2589      *
2590      *
2591      * <pre>
2592      * Output only. Trials of the HyperparameterTuningJob.
2593      * </pre>
2594      *
2595      * <code>
2596      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2597      * </code>
2598      */
getTrialsCount()2599     public int getTrialsCount() {
2600       if (trialsBuilder_ == null) {
2601         return trials_.size();
2602       } else {
2603         return trialsBuilder_.getCount();
2604       }
2605     }
2606     /**
2607      *
2608      *
2609      * <pre>
2610      * Output only. Trials of the HyperparameterTuningJob.
2611      * </pre>
2612      *
2613      * <code>
2614      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2615      * </code>
2616      */
getTrials(int index)2617     public com.google.cloud.aiplatform.v1beta1.Trial getTrials(int index) {
2618       if (trialsBuilder_ == null) {
2619         return trials_.get(index);
2620       } else {
2621         return trialsBuilder_.getMessage(index);
2622       }
2623     }
2624     /**
2625      *
2626      *
2627      * <pre>
2628      * Output only. Trials of the HyperparameterTuningJob.
2629      * </pre>
2630      *
2631      * <code>
2632      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2633      * </code>
2634      */
setTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value)2635     public Builder setTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) {
2636       if (trialsBuilder_ == null) {
2637         if (value == null) {
2638           throw new NullPointerException();
2639         }
2640         ensureTrialsIsMutable();
2641         trials_.set(index, value);
2642         onChanged();
2643       } else {
2644         trialsBuilder_.setMessage(index, value);
2645       }
2646       return this;
2647     }
2648     /**
2649      *
2650      *
2651      * <pre>
2652      * Output only. Trials of the HyperparameterTuningJob.
2653      * </pre>
2654      *
2655      * <code>
2656      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2657      * </code>
2658      */
setTrials( int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue)2659     public Builder setTrials(
2660         int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) {
2661       if (trialsBuilder_ == null) {
2662         ensureTrialsIsMutable();
2663         trials_.set(index, builderForValue.build());
2664         onChanged();
2665       } else {
2666         trialsBuilder_.setMessage(index, builderForValue.build());
2667       }
2668       return this;
2669     }
2670     /**
2671      *
2672      *
2673      * <pre>
2674      * Output only. Trials of the HyperparameterTuningJob.
2675      * </pre>
2676      *
2677      * <code>
2678      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2679      * </code>
2680      */
addTrials(com.google.cloud.aiplatform.v1beta1.Trial value)2681     public Builder addTrials(com.google.cloud.aiplatform.v1beta1.Trial value) {
2682       if (trialsBuilder_ == null) {
2683         if (value == null) {
2684           throw new NullPointerException();
2685         }
2686         ensureTrialsIsMutable();
2687         trials_.add(value);
2688         onChanged();
2689       } else {
2690         trialsBuilder_.addMessage(value);
2691       }
2692       return this;
2693     }
2694     /**
2695      *
2696      *
2697      * <pre>
2698      * Output only. Trials of the HyperparameterTuningJob.
2699      * </pre>
2700      *
2701      * <code>
2702      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2703      * </code>
2704      */
addTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value)2705     public Builder addTrials(int index, com.google.cloud.aiplatform.v1beta1.Trial value) {
2706       if (trialsBuilder_ == null) {
2707         if (value == null) {
2708           throw new NullPointerException();
2709         }
2710         ensureTrialsIsMutable();
2711         trials_.add(index, value);
2712         onChanged();
2713       } else {
2714         trialsBuilder_.addMessage(index, value);
2715       }
2716       return this;
2717     }
2718     /**
2719      *
2720      *
2721      * <pre>
2722      * Output only. Trials of the HyperparameterTuningJob.
2723      * </pre>
2724      *
2725      * <code>
2726      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2727      * </code>
2728      */
addTrials(com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue)2729     public Builder addTrials(com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) {
2730       if (trialsBuilder_ == null) {
2731         ensureTrialsIsMutable();
2732         trials_.add(builderForValue.build());
2733         onChanged();
2734       } else {
2735         trialsBuilder_.addMessage(builderForValue.build());
2736       }
2737       return this;
2738     }
2739     /**
2740      *
2741      *
2742      * <pre>
2743      * Output only. Trials of the HyperparameterTuningJob.
2744      * </pre>
2745      *
2746      * <code>
2747      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2748      * </code>
2749      */
addTrials( int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue)2750     public Builder addTrials(
2751         int index, com.google.cloud.aiplatform.v1beta1.Trial.Builder builderForValue) {
2752       if (trialsBuilder_ == null) {
2753         ensureTrialsIsMutable();
2754         trials_.add(index, builderForValue.build());
2755         onChanged();
2756       } else {
2757         trialsBuilder_.addMessage(index, builderForValue.build());
2758       }
2759       return this;
2760     }
2761     /**
2762      *
2763      *
2764      * <pre>
2765      * Output only. Trials of the HyperparameterTuningJob.
2766      * </pre>
2767      *
2768      * <code>
2769      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2770      * </code>
2771      */
addAllTrials( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.Trial> values)2772     public Builder addAllTrials(
2773         java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.Trial> values) {
2774       if (trialsBuilder_ == null) {
2775         ensureTrialsIsMutable();
2776         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trials_);
2777         onChanged();
2778       } else {
2779         trialsBuilder_.addAllMessages(values);
2780       }
2781       return this;
2782     }
2783     /**
2784      *
2785      *
2786      * <pre>
2787      * Output only. Trials of the HyperparameterTuningJob.
2788      * </pre>
2789      *
2790      * <code>
2791      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2792      * </code>
2793      */
clearTrials()2794     public Builder clearTrials() {
2795       if (trialsBuilder_ == null) {
2796         trials_ = java.util.Collections.emptyList();
2797         bitField0_ = (bitField0_ & ~0x00000080);
2798         onChanged();
2799       } else {
2800         trialsBuilder_.clear();
2801       }
2802       return this;
2803     }
2804     /**
2805      *
2806      *
2807      * <pre>
2808      * Output only. Trials of the HyperparameterTuningJob.
2809      * </pre>
2810      *
2811      * <code>
2812      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2813      * </code>
2814      */
removeTrials(int index)2815     public Builder removeTrials(int index) {
2816       if (trialsBuilder_ == null) {
2817         ensureTrialsIsMutable();
2818         trials_.remove(index);
2819         onChanged();
2820       } else {
2821         trialsBuilder_.remove(index);
2822       }
2823       return this;
2824     }
2825     /**
2826      *
2827      *
2828      * <pre>
2829      * Output only. Trials of the HyperparameterTuningJob.
2830      * </pre>
2831      *
2832      * <code>
2833      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2834      * </code>
2835      */
getTrialsBuilder(int index)2836     public com.google.cloud.aiplatform.v1beta1.Trial.Builder getTrialsBuilder(int index) {
2837       return getTrialsFieldBuilder().getBuilder(index);
2838     }
2839     /**
2840      *
2841      *
2842      * <pre>
2843      * Output only. Trials of the HyperparameterTuningJob.
2844      * </pre>
2845      *
2846      * <code>
2847      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2848      * </code>
2849      */
getTrialsOrBuilder(int index)2850     public com.google.cloud.aiplatform.v1beta1.TrialOrBuilder getTrialsOrBuilder(int index) {
2851       if (trialsBuilder_ == null) {
2852         return trials_.get(index);
2853       } else {
2854         return trialsBuilder_.getMessageOrBuilder(index);
2855       }
2856     }
2857     /**
2858      *
2859      *
2860      * <pre>
2861      * Output only. Trials of the HyperparameterTuningJob.
2862      * </pre>
2863      *
2864      * <code>
2865      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2866      * </code>
2867      */
2868     public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>
getTrialsOrBuilderList()2869         getTrialsOrBuilderList() {
2870       if (trialsBuilder_ != null) {
2871         return trialsBuilder_.getMessageOrBuilderList();
2872       } else {
2873         return java.util.Collections.unmodifiableList(trials_);
2874       }
2875     }
2876     /**
2877      *
2878      *
2879      * <pre>
2880      * Output only. Trials of the HyperparameterTuningJob.
2881      * </pre>
2882      *
2883      * <code>
2884      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2885      * </code>
2886      */
addTrialsBuilder()2887     public com.google.cloud.aiplatform.v1beta1.Trial.Builder addTrialsBuilder() {
2888       return getTrialsFieldBuilder()
2889           .addBuilder(com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance());
2890     }
2891     /**
2892      *
2893      *
2894      * <pre>
2895      * Output only. Trials of the HyperparameterTuningJob.
2896      * </pre>
2897      *
2898      * <code>
2899      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2900      * </code>
2901      */
addTrialsBuilder(int index)2902     public com.google.cloud.aiplatform.v1beta1.Trial.Builder addTrialsBuilder(int index) {
2903       return getTrialsFieldBuilder()
2904           .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Trial.getDefaultInstance());
2905     }
2906     /**
2907      *
2908      *
2909      * <pre>
2910      * Output only. Trials of the HyperparameterTuningJob.
2911      * </pre>
2912      *
2913      * <code>
2914      * repeated .google.cloud.aiplatform.v1beta1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
2915      * </code>
2916      */
2917     public java.util.List<com.google.cloud.aiplatform.v1beta1.Trial.Builder>
getTrialsBuilderList()2918         getTrialsBuilderList() {
2919       return getTrialsFieldBuilder().getBuilderList();
2920     }
2921 
2922     private com.google.protobuf.RepeatedFieldBuilderV3<
2923             com.google.cloud.aiplatform.v1beta1.Trial,
2924             com.google.cloud.aiplatform.v1beta1.Trial.Builder,
2925             com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>
getTrialsFieldBuilder()2926         getTrialsFieldBuilder() {
2927       if (trialsBuilder_ == null) {
2928         trialsBuilder_ =
2929             new com.google.protobuf.RepeatedFieldBuilderV3<
2930                 com.google.cloud.aiplatform.v1beta1.Trial,
2931                 com.google.cloud.aiplatform.v1beta1.Trial.Builder,
2932                 com.google.cloud.aiplatform.v1beta1.TrialOrBuilder>(
2933                 trials_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
2934         trials_ = null;
2935       }
2936       return trialsBuilder_;
2937     }
2938 
2939     private int state_ = 0;
2940     /**
2941      *
2942      *
2943      * <pre>
2944      * Output only. The detailed state of the job.
2945      * </pre>
2946      *
2947      * <code>
2948      * .google.cloud.aiplatform.v1beta1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2949      * </code>
2950      *
2951      * @return The enum numeric value on the wire for state.
2952      */
2953     @java.lang.Override
getStateValue()2954     public int getStateValue() {
2955       return state_;
2956     }
2957     /**
2958      *
2959      *
2960      * <pre>
2961      * Output only. The detailed state of the job.
2962      * </pre>
2963      *
2964      * <code>
2965      * .google.cloud.aiplatform.v1beta1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2966      * </code>
2967      *
2968      * @param value The enum numeric value on the wire for state to set.
2969      * @return This builder for chaining.
2970      */
setStateValue(int value)2971     public Builder setStateValue(int value) {
2972       state_ = value;
2973       bitField0_ |= 0x00000100;
2974       onChanged();
2975       return this;
2976     }
2977     /**
2978      *
2979      *
2980      * <pre>
2981      * Output only. The detailed state of the job.
2982      * </pre>
2983      *
2984      * <code>
2985      * .google.cloud.aiplatform.v1beta1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
2986      * </code>
2987      *
2988      * @return The state.
2989      */
2990     @java.lang.Override
getState()2991     public com.google.cloud.aiplatform.v1beta1.JobState getState() {
2992       com.google.cloud.aiplatform.v1beta1.JobState result =
2993           com.google.cloud.aiplatform.v1beta1.JobState.forNumber(state_);
2994       return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result;
2995     }
2996     /**
2997      *
2998      *
2999      * <pre>
3000      * Output only. The detailed state of the job.
3001      * </pre>
3002      *
3003      * <code>
3004      * .google.cloud.aiplatform.v1beta1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3005      * </code>
3006      *
3007      * @param value The state to set.
3008      * @return This builder for chaining.
3009      */
setState(com.google.cloud.aiplatform.v1beta1.JobState value)3010     public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) {
3011       if (value == null) {
3012         throw new NullPointerException();
3013       }
3014       bitField0_ |= 0x00000100;
3015       state_ = value.getNumber();
3016       onChanged();
3017       return this;
3018     }
3019     /**
3020      *
3021      *
3022      * <pre>
3023      * Output only. The detailed state of the job.
3024      * </pre>
3025      *
3026      * <code>
3027      * .google.cloud.aiplatform.v1beta1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3028      * </code>
3029      *
3030      * @return This builder for chaining.
3031      */
clearState()3032     public Builder clearState() {
3033       bitField0_ = (bitField0_ & ~0x00000100);
3034       state_ = 0;
3035       onChanged();
3036       return this;
3037     }
3038 
3039     private com.google.protobuf.Timestamp createTime_;
3040     private com.google.protobuf.SingleFieldBuilderV3<
3041             com.google.protobuf.Timestamp,
3042             com.google.protobuf.Timestamp.Builder,
3043             com.google.protobuf.TimestampOrBuilder>
3044         createTimeBuilder_;
3045     /**
3046      *
3047      *
3048      * <pre>
3049      * Output only. Time when the HyperparameterTuningJob was created.
3050      * </pre>
3051      *
3052      * <code>
3053      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3054      * </code>
3055      *
3056      * @return Whether the createTime field is set.
3057      */
hasCreateTime()3058     public boolean hasCreateTime() {
3059       return ((bitField0_ & 0x00000200) != 0);
3060     }
3061     /**
3062      *
3063      *
3064      * <pre>
3065      * Output only. Time when the HyperparameterTuningJob was created.
3066      * </pre>
3067      *
3068      * <code>
3069      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3070      * </code>
3071      *
3072      * @return The createTime.
3073      */
getCreateTime()3074     public com.google.protobuf.Timestamp getCreateTime() {
3075       if (createTimeBuilder_ == null) {
3076         return createTime_ == null
3077             ? com.google.protobuf.Timestamp.getDefaultInstance()
3078             : createTime_;
3079       } else {
3080         return createTimeBuilder_.getMessage();
3081       }
3082     }
3083     /**
3084      *
3085      *
3086      * <pre>
3087      * Output only. Time when the HyperparameterTuningJob was created.
3088      * </pre>
3089      *
3090      * <code>
3091      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3092      * </code>
3093      */
setCreateTime(com.google.protobuf.Timestamp value)3094     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
3095       if (createTimeBuilder_ == null) {
3096         if (value == null) {
3097           throw new NullPointerException();
3098         }
3099         createTime_ = value;
3100       } else {
3101         createTimeBuilder_.setMessage(value);
3102       }
3103       bitField0_ |= 0x00000200;
3104       onChanged();
3105       return this;
3106     }
3107     /**
3108      *
3109      *
3110      * <pre>
3111      * Output only. Time when the HyperparameterTuningJob was created.
3112      * </pre>
3113      *
3114      * <code>
3115      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3116      * </code>
3117      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3118     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3119       if (createTimeBuilder_ == null) {
3120         createTime_ = builderForValue.build();
3121       } else {
3122         createTimeBuilder_.setMessage(builderForValue.build());
3123       }
3124       bitField0_ |= 0x00000200;
3125       onChanged();
3126       return this;
3127     }
3128     /**
3129      *
3130      *
3131      * <pre>
3132      * Output only. Time when the HyperparameterTuningJob was created.
3133      * </pre>
3134      *
3135      * <code>
3136      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3137      * </code>
3138      */
mergeCreateTime(com.google.protobuf.Timestamp value)3139     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
3140       if (createTimeBuilder_ == null) {
3141         if (((bitField0_ & 0x00000200) != 0)
3142             && createTime_ != null
3143             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3144           getCreateTimeBuilder().mergeFrom(value);
3145         } else {
3146           createTime_ = value;
3147         }
3148       } else {
3149         createTimeBuilder_.mergeFrom(value);
3150       }
3151       bitField0_ |= 0x00000200;
3152       onChanged();
3153       return this;
3154     }
3155     /**
3156      *
3157      *
3158      * <pre>
3159      * Output only. Time when the HyperparameterTuningJob was created.
3160      * </pre>
3161      *
3162      * <code>
3163      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3164      * </code>
3165      */
clearCreateTime()3166     public Builder clearCreateTime() {
3167       bitField0_ = (bitField0_ & ~0x00000200);
3168       createTime_ = null;
3169       if (createTimeBuilder_ != null) {
3170         createTimeBuilder_.dispose();
3171         createTimeBuilder_ = null;
3172       }
3173       onChanged();
3174       return this;
3175     }
3176     /**
3177      *
3178      *
3179      * <pre>
3180      * Output only. Time when the HyperparameterTuningJob was created.
3181      * </pre>
3182      *
3183      * <code>
3184      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3185      * </code>
3186      */
getCreateTimeBuilder()3187     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
3188       bitField0_ |= 0x00000200;
3189       onChanged();
3190       return getCreateTimeFieldBuilder().getBuilder();
3191     }
3192     /**
3193      *
3194      *
3195      * <pre>
3196      * Output only. Time when the HyperparameterTuningJob was created.
3197      * </pre>
3198      *
3199      * <code>
3200      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3201      * </code>
3202      */
getCreateTimeOrBuilder()3203     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
3204       if (createTimeBuilder_ != null) {
3205         return createTimeBuilder_.getMessageOrBuilder();
3206       } else {
3207         return createTime_ == null
3208             ? com.google.protobuf.Timestamp.getDefaultInstance()
3209             : createTime_;
3210       }
3211     }
3212     /**
3213      *
3214      *
3215      * <pre>
3216      * Output only. Time when the HyperparameterTuningJob was created.
3217      * </pre>
3218      *
3219      * <code>
3220      * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3221      * </code>
3222      */
3223     private com.google.protobuf.SingleFieldBuilderV3<
3224             com.google.protobuf.Timestamp,
3225             com.google.protobuf.Timestamp.Builder,
3226             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()3227         getCreateTimeFieldBuilder() {
3228       if (createTimeBuilder_ == null) {
3229         createTimeBuilder_ =
3230             new com.google.protobuf.SingleFieldBuilderV3<
3231                 com.google.protobuf.Timestamp,
3232                 com.google.protobuf.Timestamp.Builder,
3233                 com.google.protobuf.TimestampOrBuilder>(
3234                 getCreateTime(), getParentForChildren(), isClean());
3235         createTime_ = null;
3236       }
3237       return createTimeBuilder_;
3238     }
3239 
3240     private com.google.protobuf.Timestamp startTime_;
3241     private com.google.protobuf.SingleFieldBuilderV3<
3242             com.google.protobuf.Timestamp,
3243             com.google.protobuf.Timestamp.Builder,
3244             com.google.protobuf.TimestampOrBuilder>
3245         startTimeBuilder_;
3246     /**
3247      *
3248      *
3249      * <pre>
3250      * Output only. Time when the HyperparameterTuningJob for the first time
3251      * entered the `JOB_STATE_RUNNING` state.
3252      * </pre>
3253      *
3254      * <code>
3255      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3256      * </code>
3257      *
3258      * @return Whether the startTime field is set.
3259      */
hasStartTime()3260     public boolean hasStartTime() {
3261       return ((bitField0_ & 0x00000400) != 0);
3262     }
3263     /**
3264      *
3265      *
3266      * <pre>
3267      * Output only. Time when the HyperparameterTuningJob for the first time
3268      * entered the `JOB_STATE_RUNNING` state.
3269      * </pre>
3270      *
3271      * <code>
3272      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3273      * </code>
3274      *
3275      * @return The startTime.
3276      */
getStartTime()3277     public com.google.protobuf.Timestamp getStartTime() {
3278       if (startTimeBuilder_ == null) {
3279         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
3280       } else {
3281         return startTimeBuilder_.getMessage();
3282       }
3283     }
3284     /**
3285      *
3286      *
3287      * <pre>
3288      * Output only. Time when the HyperparameterTuningJob for the first time
3289      * entered the `JOB_STATE_RUNNING` state.
3290      * </pre>
3291      *
3292      * <code>
3293      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3294      * </code>
3295      */
setStartTime(com.google.protobuf.Timestamp value)3296     public Builder setStartTime(com.google.protobuf.Timestamp value) {
3297       if (startTimeBuilder_ == null) {
3298         if (value == null) {
3299           throw new NullPointerException();
3300         }
3301         startTime_ = value;
3302       } else {
3303         startTimeBuilder_.setMessage(value);
3304       }
3305       bitField0_ |= 0x00000400;
3306       onChanged();
3307       return this;
3308     }
3309     /**
3310      *
3311      *
3312      * <pre>
3313      * Output only. Time when the HyperparameterTuningJob for the first time
3314      * entered the `JOB_STATE_RUNNING` state.
3315      * </pre>
3316      *
3317      * <code>
3318      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3319      * </code>
3320      */
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)3321     public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3322       if (startTimeBuilder_ == null) {
3323         startTime_ = builderForValue.build();
3324       } else {
3325         startTimeBuilder_.setMessage(builderForValue.build());
3326       }
3327       bitField0_ |= 0x00000400;
3328       onChanged();
3329       return this;
3330     }
3331     /**
3332      *
3333      *
3334      * <pre>
3335      * Output only. Time when the HyperparameterTuningJob for the first time
3336      * entered the `JOB_STATE_RUNNING` state.
3337      * </pre>
3338      *
3339      * <code>
3340      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3341      * </code>
3342      */
mergeStartTime(com.google.protobuf.Timestamp value)3343     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
3344       if (startTimeBuilder_ == null) {
3345         if (((bitField0_ & 0x00000400) != 0)
3346             && startTime_ != null
3347             && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3348           getStartTimeBuilder().mergeFrom(value);
3349         } else {
3350           startTime_ = value;
3351         }
3352       } else {
3353         startTimeBuilder_.mergeFrom(value);
3354       }
3355       bitField0_ |= 0x00000400;
3356       onChanged();
3357       return this;
3358     }
3359     /**
3360      *
3361      *
3362      * <pre>
3363      * Output only. Time when the HyperparameterTuningJob for the first time
3364      * entered the `JOB_STATE_RUNNING` state.
3365      * </pre>
3366      *
3367      * <code>
3368      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3369      * </code>
3370      */
clearStartTime()3371     public Builder clearStartTime() {
3372       bitField0_ = (bitField0_ & ~0x00000400);
3373       startTime_ = null;
3374       if (startTimeBuilder_ != null) {
3375         startTimeBuilder_.dispose();
3376         startTimeBuilder_ = null;
3377       }
3378       onChanged();
3379       return this;
3380     }
3381     /**
3382      *
3383      *
3384      * <pre>
3385      * Output only. Time when the HyperparameterTuningJob for the first time
3386      * entered the `JOB_STATE_RUNNING` state.
3387      * </pre>
3388      *
3389      * <code>
3390      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3391      * </code>
3392      */
getStartTimeBuilder()3393     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
3394       bitField0_ |= 0x00000400;
3395       onChanged();
3396       return getStartTimeFieldBuilder().getBuilder();
3397     }
3398     /**
3399      *
3400      *
3401      * <pre>
3402      * Output only. Time when the HyperparameterTuningJob for the first time
3403      * entered the `JOB_STATE_RUNNING` state.
3404      * </pre>
3405      *
3406      * <code>
3407      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3408      * </code>
3409      */
getStartTimeOrBuilder()3410     public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
3411       if (startTimeBuilder_ != null) {
3412         return startTimeBuilder_.getMessageOrBuilder();
3413       } else {
3414         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
3415       }
3416     }
3417     /**
3418      *
3419      *
3420      * <pre>
3421      * Output only. Time when the HyperparameterTuningJob for the first time
3422      * entered the `JOB_STATE_RUNNING` state.
3423      * </pre>
3424      *
3425      * <code>
3426      * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3427      * </code>
3428      */
3429     private com.google.protobuf.SingleFieldBuilderV3<
3430             com.google.protobuf.Timestamp,
3431             com.google.protobuf.Timestamp.Builder,
3432             com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder()3433         getStartTimeFieldBuilder() {
3434       if (startTimeBuilder_ == null) {
3435         startTimeBuilder_ =
3436             new com.google.protobuf.SingleFieldBuilderV3<
3437                 com.google.protobuf.Timestamp,
3438                 com.google.protobuf.Timestamp.Builder,
3439                 com.google.protobuf.TimestampOrBuilder>(
3440                 getStartTime(), getParentForChildren(), isClean());
3441         startTime_ = null;
3442       }
3443       return startTimeBuilder_;
3444     }
3445 
3446     private com.google.protobuf.Timestamp endTime_;
3447     private com.google.protobuf.SingleFieldBuilderV3<
3448             com.google.protobuf.Timestamp,
3449             com.google.protobuf.Timestamp.Builder,
3450             com.google.protobuf.TimestampOrBuilder>
3451         endTimeBuilder_;
3452     /**
3453      *
3454      *
3455      * <pre>
3456      * Output only. Time when the HyperparameterTuningJob entered any of the
3457      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3458      * `JOB_STATE_CANCELLED`.
3459      * </pre>
3460      *
3461      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3462      * </code>
3463      *
3464      * @return Whether the endTime field is set.
3465      */
hasEndTime()3466     public boolean hasEndTime() {
3467       return ((bitField0_ & 0x00000800) != 0);
3468     }
3469     /**
3470      *
3471      *
3472      * <pre>
3473      * Output only. Time when the HyperparameterTuningJob entered any of the
3474      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3475      * `JOB_STATE_CANCELLED`.
3476      * </pre>
3477      *
3478      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3479      * </code>
3480      *
3481      * @return The endTime.
3482      */
getEndTime()3483     public com.google.protobuf.Timestamp getEndTime() {
3484       if (endTimeBuilder_ == null) {
3485         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
3486       } else {
3487         return endTimeBuilder_.getMessage();
3488       }
3489     }
3490     /**
3491      *
3492      *
3493      * <pre>
3494      * Output only. Time when the HyperparameterTuningJob entered any of the
3495      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3496      * `JOB_STATE_CANCELLED`.
3497      * </pre>
3498      *
3499      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3500      * </code>
3501      */
setEndTime(com.google.protobuf.Timestamp value)3502     public Builder setEndTime(com.google.protobuf.Timestamp value) {
3503       if (endTimeBuilder_ == null) {
3504         if (value == null) {
3505           throw new NullPointerException();
3506         }
3507         endTime_ = value;
3508       } else {
3509         endTimeBuilder_.setMessage(value);
3510       }
3511       bitField0_ |= 0x00000800;
3512       onChanged();
3513       return this;
3514     }
3515     /**
3516      *
3517      *
3518      * <pre>
3519      * Output only. Time when the HyperparameterTuningJob entered any of the
3520      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3521      * `JOB_STATE_CANCELLED`.
3522      * </pre>
3523      *
3524      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3525      * </code>
3526      */
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)3527     public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3528       if (endTimeBuilder_ == null) {
3529         endTime_ = builderForValue.build();
3530       } else {
3531         endTimeBuilder_.setMessage(builderForValue.build());
3532       }
3533       bitField0_ |= 0x00000800;
3534       onChanged();
3535       return this;
3536     }
3537     /**
3538      *
3539      *
3540      * <pre>
3541      * Output only. Time when the HyperparameterTuningJob entered any of the
3542      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3543      * `JOB_STATE_CANCELLED`.
3544      * </pre>
3545      *
3546      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3547      * </code>
3548      */
mergeEndTime(com.google.protobuf.Timestamp value)3549     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
3550       if (endTimeBuilder_ == null) {
3551         if (((bitField0_ & 0x00000800) != 0)
3552             && endTime_ != null
3553             && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3554           getEndTimeBuilder().mergeFrom(value);
3555         } else {
3556           endTime_ = value;
3557         }
3558       } else {
3559         endTimeBuilder_.mergeFrom(value);
3560       }
3561       bitField0_ |= 0x00000800;
3562       onChanged();
3563       return this;
3564     }
3565     /**
3566      *
3567      *
3568      * <pre>
3569      * Output only. Time when the HyperparameterTuningJob entered any of the
3570      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3571      * `JOB_STATE_CANCELLED`.
3572      * </pre>
3573      *
3574      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3575      * </code>
3576      */
clearEndTime()3577     public Builder clearEndTime() {
3578       bitField0_ = (bitField0_ & ~0x00000800);
3579       endTime_ = null;
3580       if (endTimeBuilder_ != null) {
3581         endTimeBuilder_.dispose();
3582         endTimeBuilder_ = null;
3583       }
3584       onChanged();
3585       return this;
3586     }
3587     /**
3588      *
3589      *
3590      * <pre>
3591      * Output only. Time when the HyperparameterTuningJob entered any of the
3592      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3593      * `JOB_STATE_CANCELLED`.
3594      * </pre>
3595      *
3596      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3597      * </code>
3598      */
getEndTimeBuilder()3599     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
3600       bitField0_ |= 0x00000800;
3601       onChanged();
3602       return getEndTimeFieldBuilder().getBuilder();
3603     }
3604     /**
3605      *
3606      *
3607      * <pre>
3608      * Output only. Time when the HyperparameterTuningJob entered any of the
3609      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3610      * `JOB_STATE_CANCELLED`.
3611      * </pre>
3612      *
3613      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3614      * </code>
3615      */
getEndTimeOrBuilder()3616     public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
3617       if (endTimeBuilder_ != null) {
3618         return endTimeBuilder_.getMessageOrBuilder();
3619       } else {
3620         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
3621       }
3622     }
3623     /**
3624      *
3625      *
3626      * <pre>
3627      * Output only. Time when the HyperparameterTuningJob entered any of the
3628      * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`,
3629      * `JOB_STATE_CANCELLED`.
3630      * </pre>
3631      *
3632      * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3633      * </code>
3634      */
3635     private com.google.protobuf.SingleFieldBuilderV3<
3636             com.google.protobuf.Timestamp,
3637             com.google.protobuf.Timestamp.Builder,
3638             com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder()3639         getEndTimeFieldBuilder() {
3640       if (endTimeBuilder_ == null) {
3641         endTimeBuilder_ =
3642             new com.google.protobuf.SingleFieldBuilderV3<
3643                 com.google.protobuf.Timestamp,
3644                 com.google.protobuf.Timestamp.Builder,
3645                 com.google.protobuf.TimestampOrBuilder>(
3646                 getEndTime(), getParentForChildren(), isClean());
3647         endTime_ = null;
3648       }
3649       return endTimeBuilder_;
3650     }
3651 
3652     private com.google.protobuf.Timestamp updateTime_;
3653     private com.google.protobuf.SingleFieldBuilderV3<
3654             com.google.protobuf.Timestamp,
3655             com.google.protobuf.Timestamp.Builder,
3656             com.google.protobuf.TimestampOrBuilder>
3657         updateTimeBuilder_;
3658     /**
3659      *
3660      *
3661      * <pre>
3662      * Output only. Time when the HyperparameterTuningJob was most recently
3663      * updated.
3664      * </pre>
3665      *
3666      * <code>
3667      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3668      * </code>
3669      *
3670      * @return Whether the updateTime field is set.
3671      */
hasUpdateTime()3672     public boolean hasUpdateTime() {
3673       return ((bitField0_ & 0x00001000) != 0);
3674     }
3675     /**
3676      *
3677      *
3678      * <pre>
3679      * Output only. Time when the HyperparameterTuningJob was most recently
3680      * updated.
3681      * </pre>
3682      *
3683      * <code>
3684      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3685      * </code>
3686      *
3687      * @return The updateTime.
3688      */
getUpdateTime()3689     public com.google.protobuf.Timestamp getUpdateTime() {
3690       if (updateTimeBuilder_ == null) {
3691         return updateTime_ == null
3692             ? com.google.protobuf.Timestamp.getDefaultInstance()
3693             : updateTime_;
3694       } else {
3695         return updateTimeBuilder_.getMessage();
3696       }
3697     }
3698     /**
3699      *
3700      *
3701      * <pre>
3702      * Output only. Time when the HyperparameterTuningJob was most recently
3703      * updated.
3704      * </pre>
3705      *
3706      * <code>
3707      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3708      * </code>
3709      */
setUpdateTime(com.google.protobuf.Timestamp value)3710     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
3711       if (updateTimeBuilder_ == null) {
3712         if (value == null) {
3713           throw new NullPointerException();
3714         }
3715         updateTime_ = value;
3716       } else {
3717         updateTimeBuilder_.setMessage(value);
3718       }
3719       bitField0_ |= 0x00001000;
3720       onChanged();
3721       return this;
3722     }
3723     /**
3724      *
3725      *
3726      * <pre>
3727      * Output only. Time when the HyperparameterTuningJob was most recently
3728      * updated.
3729      * </pre>
3730      *
3731      * <code>
3732      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3733      * </code>
3734      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)3735     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3736       if (updateTimeBuilder_ == null) {
3737         updateTime_ = builderForValue.build();
3738       } else {
3739         updateTimeBuilder_.setMessage(builderForValue.build());
3740       }
3741       bitField0_ |= 0x00001000;
3742       onChanged();
3743       return this;
3744     }
3745     /**
3746      *
3747      *
3748      * <pre>
3749      * Output only. Time when the HyperparameterTuningJob was most recently
3750      * updated.
3751      * </pre>
3752      *
3753      * <code>
3754      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3755      * </code>
3756      */
mergeUpdateTime(com.google.protobuf.Timestamp value)3757     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
3758       if (updateTimeBuilder_ == null) {
3759         if (((bitField0_ & 0x00001000) != 0)
3760             && updateTime_ != null
3761             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3762           getUpdateTimeBuilder().mergeFrom(value);
3763         } else {
3764           updateTime_ = value;
3765         }
3766       } else {
3767         updateTimeBuilder_.mergeFrom(value);
3768       }
3769       bitField0_ |= 0x00001000;
3770       onChanged();
3771       return this;
3772     }
3773     /**
3774      *
3775      *
3776      * <pre>
3777      * Output only. Time when the HyperparameterTuningJob was most recently
3778      * updated.
3779      * </pre>
3780      *
3781      * <code>
3782      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3783      * </code>
3784      */
clearUpdateTime()3785     public Builder clearUpdateTime() {
3786       bitField0_ = (bitField0_ & ~0x00001000);
3787       updateTime_ = null;
3788       if (updateTimeBuilder_ != null) {
3789         updateTimeBuilder_.dispose();
3790         updateTimeBuilder_ = null;
3791       }
3792       onChanged();
3793       return this;
3794     }
3795     /**
3796      *
3797      *
3798      * <pre>
3799      * Output only. Time when the HyperparameterTuningJob was most recently
3800      * updated.
3801      * </pre>
3802      *
3803      * <code>
3804      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3805      * </code>
3806      */
getUpdateTimeBuilder()3807     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
3808       bitField0_ |= 0x00001000;
3809       onChanged();
3810       return getUpdateTimeFieldBuilder().getBuilder();
3811     }
3812     /**
3813      *
3814      *
3815      * <pre>
3816      * Output only. Time when the HyperparameterTuningJob was most recently
3817      * updated.
3818      * </pre>
3819      *
3820      * <code>
3821      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3822      * </code>
3823      */
getUpdateTimeOrBuilder()3824     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
3825       if (updateTimeBuilder_ != null) {
3826         return updateTimeBuilder_.getMessageOrBuilder();
3827       } else {
3828         return updateTime_ == null
3829             ? com.google.protobuf.Timestamp.getDefaultInstance()
3830             : updateTime_;
3831       }
3832     }
3833     /**
3834      *
3835      *
3836      * <pre>
3837      * Output only. Time when the HyperparameterTuningJob was most recently
3838      * updated.
3839      * </pre>
3840      *
3841      * <code>
3842      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3843      * </code>
3844      */
3845     private com.google.protobuf.SingleFieldBuilderV3<
3846             com.google.protobuf.Timestamp,
3847             com.google.protobuf.Timestamp.Builder,
3848             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()3849         getUpdateTimeFieldBuilder() {
3850       if (updateTimeBuilder_ == null) {
3851         updateTimeBuilder_ =
3852             new com.google.protobuf.SingleFieldBuilderV3<
3853                 com.google.protobuf.Timestamp,
3854                 com.google.protobuf.Timestamp.Builder,
3855                 com.google.protobuf.TimestampOrBuilder>(
3856                 getUpdateTime(), getParentForChildren(), isClean());
3857         updateTime_ = null;
3858       }
3859       return updateTimeBuilder_;
3860     }
3861 
3862     private com.google.rpc.Status error_;
3863     private com.google.protobuf.SingleFieldBuilderV3<
3864             com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
3865         errorBuilder_;
3866     /**
3867      *
3868      *
3869      * <pre>
3870      * Output only. Only populated when job's state is JOB_STATE_FAILED or
3871      * JOB_STATE_CANCELLED.
3872      * </pre>
3873      *
3874      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3875      *
3876      * @return Whether the error field is set.
3877      */
hasError()3878     public boolean hasError() {
3879       return ((bitField0_ & 0x00002000) != 0);
3880     }
3881     /**
3882      *
3883      *
3884      * <pre>
3885      * Output only. Only populated when job's state is JOB_STATE_FAILED or
3886      * JOB_STATE_CANCELLED.
3887      * </pre>
3888      *
3889      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3890      *
3891      * @return The error.
3892      */
getError()3893     public com.google.rpc.Status getError() {
3894       if (errorBuilder_ == null) {
3895         return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
3896       } else {
3897         return errorBuilder_.getMessage();
3898       }
3899     }
3900     /**
3901      *
3902      *
3903      * <pre>
3904      * Output only. Only populated when job's state is JOB_STATE_FAILED or
3905      * JOB_STATE_CANCELLED.
3906      * </pre>
3907      *
3908      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3909      */
setError(com.google.rpc.Status value)3910     public Builder setError(com.google.rpc.Status value) {
3911       if (errorBuilder_ == null) {
3912         if (value == null) {
3913           throw new NullPointerException();
3914         }
3915         error_ = value;
3916       } else {
3917         errorBuilder_.setMessage(value);
3918       }
3919       bitField0_ |= 0x00002000;
3920       onChanged();
3921       return this;
3922     }
3923     /**
3924      *
3925      *
3926      * <pre>
3927      * Output only. Only populated when job's state is JOB_STATE_FAILED or
3928      * JOB_STATE_CANCELLED.
3929      * </pre>
3930      *
3931      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3932      */
setError(com.google.rpc.Status.Builder builderForValue)3933     public Builder setError(com.google.rpc.Status.Builder builderForValue) {
3934       if (errorBuilder_ == null) {
3935         error_ = builderForValue.build();
3936       } else {
3937         errorBuilder_.setMessage(builderForValue.build());
3938       }
3939       bitField0_ |= 0x00002000;
3940       onChanged();
3941       return this;
3942     }
3943     /**
3944      *
3945      *
3946      * <pre>
3947      * Output only. Only populated when job's state is JOB_STATE_FAILED or
3948      * JOB_STATE_CANCELLED.
3949      * </pre>
3950      *
3951      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3952      */
mergeError(com.google.rpc.Status value)3953     public Builder mergeError(com.google.rpc.Status value) {
3954       if (errorBuilder_ == null) {
3955         if (((bitField0_ & 0x00002000) != 0)
3956             && error_ != null
3957             && error_ != com.google.rpc.Status.getDefaultInstance()) {
3958           getErrorBuilder().mergeFrom(value);
3959         } else {
3960           error_ = value;
3961         }
3962       } else {
3963         errorBuilder_.mergeFrom(value);
3964       }
3965       bitField0_ |= 0x00002000;
3966       onChanged();
3967       return this;
3968     }
3969     /**
3970      *
3971      *
3972      * <pre>
3973      * Output only. Only populated when job's state is JOB_STATE_FAILED or
3974      * JOB_STATE_CANCELLED.
3975      * </pre>
3976      *
3977      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3978      */
clearError()3979     public Builder clearError() {
3980       bitField0_ = (bitField0_ & ~0x00002000);
3981       error_ = null;
3982       if (errorBuilder_ != null) {
3983         errorBuilder_.dispose();
3984         errorBuilder_ = null;
3985       }
3986       onChanged();
3987       return this;
3988     }
3989     /**
3990      *
3991      *
3992      * <pre>
3993      * Output only. Only populated when job's state is JOB_STATE_FAILED or
3994      * JOB_STATE_CANCELLED.
3995      * </pre>
3996      *
3997      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3998      */
getErrorBuilder()3999     public com.google.rpc.Status.Builder getErrorBuilder() {
4000       bitField0_ |= 0x00002000;
4001       onChanged();
4002       return getErrorFieldBuilder().getBuilder();
4003     }
4004     /**
4005      *
4006      *
4007      * <pre>
4008      * Output only. Only populated when job's state is JOB_STATE_FAILED or
4009      * JOB_STATE_CANCELLED.
4010      * </pre>
4011      *
4012      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
4013      */
getErrorOrBuilder()4014     public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
4015       if (errorBuilder_ != null) {
4016         return errorBuilder_.getMessageOrBuilder();
4017       } else {
4018         return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
4019       }
4020     }
4021     /**
4022      *
4023      *
4024      * <pre>
4025      * Output only. Only populated when job's state is JOB_STATE_FAILED or
4026      * JOB_STATE_CANCELLED.
4027      * </pre>
4028      *
4029      * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
4030      */
4031     private com.google.protobuf.SingleFieldBuilderV3<
4032             com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getErrorFieldBuilder()4033         getErrorFieldBuilder() {
4034       if (errorBuilder_ == null) {
4035         errorBuilder_ =
4036             new com.google.protobuf.SingleFieldBuilderV3<
4037                 com.google.rpc.Status,
4038                 com.google.rpc.Status.Builder,
4039                 com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
4040         error_ = null;
4041       }
4042       return errorBuilder_;
4043     }
4044 
4045     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
4046 
internalGetLabels()4047     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
4048       if (labels_ == null) {
4049         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
4050       }
4051       return labels_;
4052     }
4053 
4054     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()4055         internalGetMutableLabels() {
4056       if (labels_ == null) {
4057         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
4058       }
4059       if (!labels_.isMutable()) {
4060         labels_ = labels_.copy();
4061       }
4062       bitField0_ |= 0x00004000;
4063       onChanged();
4064       return labels_;
4065     }
4066 
getLabelsCount()4067     public int getLabelsCount() {
4068       return internalGetLabels().getMap().size();
4069     }
4070     /**
4071      *
4072      *
4073      * <pre>
4074      * The labels with user-defined metadata to organize HyperparameterTuningJobs.
4075      * Label keys and values can be no longer than 64 characters
4076      * (Unicode codepoints), can only contain lowercase letters, numeric
4077      * characters, underscores and dashes. International characters are allowed.
4078      * See https://goo.gl/xmQnxf for more information and examples of labels.
4079      * </pre>
4080      *
4081      * <code>map&lt;string, string&gt; labels = 16;</code>
4082      */
4083     @java.lang.Override
containsLabels(java.lang.String key)4084     public boolean containsLabels(java.lang.String key) {
4085       if (key == null) {
4086         throw new NullPointerException("map key");
4087       }
4088       return internalGetLabels().getMap().containsKey(key);
4089     }
4090     /** Use {@link #getLabelsMap()} instead. */
4091     @java.lang.Override
4092     @java.lang.Deprecated
getLabels()4093     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
4094       return getLabelsMap();
4095     }
4096     /**
4097      *
4098      *
4099      * <pre>
4100      * The labels with user-defined metadata to organize HyperparameterTuningJobs.
4101      * Label keys and values can be no longer than 64 characters
4102      * (Unicode codepoints), can only contain lowercase letters, numeric
4103      * characters, underscores and dashes. International characters are allowed.
4104      * See https://goo.gl/xmQnxf for more information and examples of labels.
4105      * </pre>
4106      *
4107      * <code>map&lt;string, string&gt; labels = 16;</code>
4108      */
4109     @java.lang.Override
getLabelsMap()4110     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
4111       return internalGetLabels().getMap();
4112     }
4113     /**
4114      *
4115      *
4116      * <pre>
4117      * The labels with user-defined metadata to organize HyperparameterTuningJobs.
4118      * Label keys and values can be no longer than 64 characters
4119      * (Unicode codepoints), can only contain lowercase letters, numeric
4120      * characters, underscores and dashes. International characters are allowed.
4121      * See https://goo.gl/xmQnxf for more information and examples of labels.
4122      * </pre>
4123      *
4124      * <code>map&lt;string, string&gt; labels = 16;</code>
4125      */
4126     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)4127     public /* nullable */ java.lang.String getLabelsOrDefault(
4128         java.lang.String key,
4129         /* nullable */
4130         java.lang.String defaultValue) {
4131       if (key == null) {
4132         throw new NullPointerException("map key");
4133       }
4134       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
4135       return map.containsKey(key) ? map.get(key) : defaultValue;
4136     }
4137     /**
4138      *
4139      *
4140      * <pre>
4141      * The labels with user-defined metadata to organize HyperparameterTuningJobs.
4142      * Label keys and values can be no longer than 64 characters
4143      * (Unicode codepoints), can only contain lowercase letters, numeric
4144      * characters, underscores and dashes. International characters are allowed.
4145      * See https://goo.gl/xmQnxf for more information and examples of labels.
4146      * </pre>
4147      *
4148      * <code>map&lt;string, string&gt; labels = 16;</code>
4149      */
4150     @java.lang.Override
getLabelsOrThrow(java.lang.String key)4151     public java.lang.String getLabelsOrThrow(java.lang.String key) {
4152       if (key == null) {
4153         throw new NullPointerException("map key");
4154       }
4155       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
4156       if (!map.containsKey(key)) {
4157         throw new java.lang.IllegalArgumentException();
4158       }
4159       return map.get(key);
4160     }
4161 
clearLabels()4162     public Builder clearLabels() {
4163       bitField0_ = (bitField0_ & ~0x00004000);
4164       internalGetMutableLabels().getMutableMap().clear();
4165       return this;
4166     }
4167     /**
4168      *
4169      *
4170      * <pre>
4171      * The labels with user-defined metadata to organize HyperparameterTuningJobs.
4172      * Label keys and values can be no longer than 64 characters
4173      * (Unicode codepoints), can only contain lowercase letters, numeric
4174      * characters, underscores and dashes. International characters are allowed.
4175      * See https://goo.gl/xmQnxf for more information and examples of labels.
4176      * </pre>
4177      *
4178      * <code>map&lt;string, string&gt; labels = 16;</code>
4179      */
removeLabels(java.lang.String key)4180     public Builder removeLabels(java.lang.String key) {
4181       if (key == null) {
4182         throw new NullPointerException("map key");
4183       }
4184       internalGetMutableLabels().getMutableMap().remove(key);
4185       return this;
4186     }
4187     /** Use alternate mutation accessors instead. */
4188     @java.lang.Deprecated
getMutableLabels()4189     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
4190       bitField0_ |= 0x00004000;
4191       return internalGetMutableLabels().getMutableMap();
4192     }
4193     /**
4194      *
4195      *
4196      * <pre>
4197      * The labels with user-defined metadata to organize HyperparameterTuningJobs.
4198      * Label keys and values can be no longer than 64 characters
4199      * (Unicode codepoints), can only contain lowercase letters, numeric
4200      * characters, underscores and dashes. International characters are allowed.
4201      * See https://goo.gl/xmQnxf for more information and examples of labels.
4202      * </pre>
4203      *
4204      * <code>map&lt;string, string&gt; labels = 16;</code>
4205      */
putLabels(java.lang.String key, java.lang.String value)4206     public Builder putLabels(java.lang.String key, java.lang.String value) {
4207       if (key == null) {
4208         throw new NullPointerException("map key");
4209       }
4210       if (value == null) {
4211         throw new NullPointerException("map value");
4212       }
4213       internalGetMutableLabels().getMutableMap().put(key, value);
4214       bitField0_ |= 0x00004000;
4215       return this;
4216     }
4217     /**
4218      *
4219      *
4220      * <pre>
4221      * The labels with user-defined metadata to organize HyperparameterTuningJobs.
4222      * Label keys and values can be no longer than 64 characters
4223      * (Unicode codepoints), can only contain lowercase letters, numeric
4224      * characters, underscores and dashes. International characters are allowed.
4225      * See https://goo.gl/xmQnxf for more information and examples of labels.
4226      * </pre>
4227      *
4228      * <code>map&lt;string, string&gt; labels = 16;</code>
4229      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)4230     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
4231       internalGetMutableLabels().getMutableMap().putAll(values);
4232       bitField0_ |= 0x00004000;
4233       return this;
4234     }
4235 
4236     private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_;
4237     private com.google.protobuf.SingleFieldBuilderV3<
4238             com.google.cloud.aiplatform.v1beta1.EncryptionSpec,
4239             com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder,
4240             com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>
4241         encryptionSpecBuilder_;
4242     /**
4243      *
4244      *
4245      * <pre>
4246      * Customer-managed encryption key options for a HyperparameterTuningJob.
4247      * If this is set, then all resources created by the HyperparameterTuningJob
4248      * will be encrypted with the provided encryption key.
4249      * </pre>
4250      *
4251      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4252      *
4253      * @return Whether the encryptionSpec field is set.
4254      */
hasEncryptionSpec()4255     public boolean hasEncryptionSpec() {
4256       return ((bitField0_ & 0x00008000) != 0);
4257     }
4258     /**
4259      *
4260      *
4261      * <pre>
4262      * Customer-managed encryption key options for a HyperparameterTuningJob.
4263      * If this is set, then all resources created by the HyperparameterTuningJob
4264      * will be encrypted with the provided encryption key.
4265      * </pre>
4266      *
4267      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4268      *
4269      * @return The encryptionSpec.
4270      */
getEncryptionSpec()4271     public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() {
4272       if (encryptionSpecBuilder_ == null) {
4273         return encryptionSpec_ == null
4274             ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
4275             : encryptionSpec_;
4276       } else {
4277         return encryptionSpecBuilder_.getMessage();
4278       }
4279     }
4280     /**
4281      *
4282      *
4283      * <pre>
4284      * Customer-managed encryption key options for a HyperparameterTuningJob.
4285      * If this is set, then all resources created by the HyperparameterTuningJob
4286      * will be encrypted with the provided encryption key.
4287      * </pre>
4288      *
4289      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4290      */
setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value)4291     public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) {
4292       if (encryptionSpecBuilder_ == null) {
4293         if (value == null) {
4294           throw new NullPointerException();
4295         }
4296         encryptionSpec_ = value;
4297       } else {
4298         encryptionSpecBuilder_.setMessage(value);
4299       }
4300       bitField0_ |= 0x00008000;
4301       onChanged();
4302       return this;
4303     }
4304     /**
4305      *
4306      *
4307      * <pre>
4308      * Customer-managed encryption key options for a HyperparameterTuningJob.
4309      * If this is set, then all resources created by the HyperparameterTuningJob
4310      * will be encrypted with the provided encryption key.
4311      * </pre>
4312      *
4313      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4314      */
setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue)4315     public Builder setEncryptionSpec(
4316         com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) {
4317       if (encryptionSpecBuilder_ == null) {
4318         encryptionSpec_ = builderForValue.build();
4319       } else {
4320         encryptionSpecBuilder_.setMessage(builderForValue.build());
4321       }
4322       bitField0_ |= 0x00008000;
4323       onChanged();
4324       return this;
4325     }
4326     /**
4327      *
4328      *
4329      * <pre>
4330      * Customer-managed encryption key options for a HyperparameterTuningJob.
4331      * If this is set, then all resources created by the HyperparameterTuningJob
4332      * will be encrypted with the provided encryption key.
4333      * </pre>
4334      *
4335      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4336      */
mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value)4337     public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) {
4338       if (encryptionSpecBuilder_ == null) {
4339         if (((bitField0_ & 0x00008000) != 0)
4340             && encryptionSpec_ != null
4341             && encryptionSpec_
4342                 != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) {
4343           getEncryptionSpecBuilder().mergeFrom(value);
4344         } else {
4345           encryptionSpec_ = value;
4346         }
4347       } else {
4348         encryptionSpecBuilder_.mergeFrom(value);
4349       }
4350       bitField0_ |= 0x00008000;
4351       onChanged();
4352       return this;
4353     }
4354     /**
4355      *
4356      *
4357      * <pre>
4358      * Customer-managed encryption key options for a HyperparameterTuningJob.
4359      * If this is set, then all resources created by the HyperparameterTuningJob
4360      * will be encrypted with the provided encryption key.
4361      * </pre>
4362      *
4363      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4364      */
clearEncryptionSpec()4365     public Builder clearEncryptionSpec() {
4366       bitField0_ = (bitField0_ & ~0x00008000);
4367       encryptionSpec_ = null;
4368       if (encryptionSpecBuilder_ != null) {
4369         encryptionSpecBuilder_.dispose();
4370         encryptionSpecBuilder_ = null;
4371       }
4372       onChanged();
4373       return this;
4374     }
4375     /**
4376      *
4377      *
4378      * <pre>
4379      * Customer-managed encryption key options for a HyperparameterTuningJob.
4380      * If this is set, then all resources created by the HyperparameterTuningJob
4381      * will be encrypted with the provided encryption key.
4382      * </pre>
4383      *
4384      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4385      */
getEncryptionSpecBuilder()4386     public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() {
4387       bitField0_ |= 0x00008000;
4388       onChanged();
4389       return getEncryptionSpecFieldBuilder().getBuilder();
4390     }
4391     /**
4392      *
4393      *
4394      * <pre>
4395      * Customer-managed encryption key options for a HyperparameterTuningJob.
4396      * If this is set, then all resources created by the HyperparameterTuningJob
4397      * will be encrypted with the provided encryption key.
4398      * </pre>
4399      *
4400      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4401      */
4402     public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder
getEncryptionSpecOrBuilder()4403         getEncryptionSpecOrBuilder() {
4404       if (encryptionSpecBuilder_ != null) {
4405         return encryptionSpecBuilder_.getMessageOrBuilder();
4406       } else {
4407         return encryptionSpec_ == null
4408             ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
4409             : encryptionSpec_;
4410       }
4411     }
4412     /**
4413      *
4414      *
4415      * <pre>
4416      * Customer-managed encryption key options for a HyperparameterTuningJob.
4417      * If this is set, then all resources created by the HyperparameterTuningJob
4418      * will be encrypted with the provided encryption key.
4419      * </pre>
4420      *
4421      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 17;</code>
4422      */
4423     private com.google.protobuf.SingleFieldBuilderV3<
4424             com.google.cloud.aiplatform.v1beta1.EncryptionSpec,
4425             com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder,
4426             com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>
getEncryptionSpecFieldBuilder()4427         getEncryptionSpecFieldBuilder() {
4428       if (encryptionSpecBuilder_ == null) {
4429         encryptionSpecBuilder_ =
4430             new com.google.protobuf.SingleFieldBuilderV3<
4431                 com.google.cloud.aiplatform.v1beta1.EncryptionSpec,
4432                 com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder,
4433                 com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>(
4434                 getEncryptionSpec(), getParentForChildren(), isClean());
4435         encryptionSpec_ = null;
4436       }
4437       return encryptionSpecBuilder_;
4438     }
4439 
4440     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4441     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
4442       return super.setUnknownFields(unknownFields);
4443     }
4444 
4445     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4446     public final Builder mergeUnknownFields(
4447         final com.google.protobuf.UnknownFieldSet unknownFields) {
4448       return super.mergeUnknownFields(unknownFields);
4449     }
4450 
4451     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.HyperparameterTuningJob)
4452   }
4453 
4454   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.HyperparameterTuningJob)
4455   private static final com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob DEFAULT_INSTANCE;
4456 
4457   static {
4458     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob();
4459   }
4460 
getDefaultInstance()4461   public static com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getDefaultInstance() {
4462     return DEFAULT_INSTANCE;
4463   }
4464 
4465   private static final com.google.protobuf.Parser<HyperparameterTuningJob> PARSER =
4466       new com.google.protobuf.AbstractParser<HyperparameterTuningJob>() {
4467         @java.lang.Override
4468         public HyperparameterTuningJob parsePartialFrom(
4469             com.google.protobuf.CodedInputStream input,
4470             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4471             throws com.google.protobuf.InvalidProtocolBufferException {
4472           Builder builder = newBuilder();
4473           try {
4474             builder.mergeFrom(input, extensionRegistry);
4475           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4476             throw e.setUnfinishedMessage(builder.buildPartial());
4477           } catch (com.google.protobuf.UninitializedMessageException e) {
4478             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4479           } catch (java.io.IOException e) {
4480             throw new com.google.protobuf.InvalidProtocolBufferException(e)
4481                 .setUnfinishedMessage(builder.buildPartial());
4482           }
4483           return builder.buildPartial();
4484         }
4485       };
4486 
parser()4487   public static com.google.protobuf.Parser<HyperparameterTuningJob> parser() {
4488     return PARSER;
4489   }
4490 
4491   @java.lang.Override
getParserForType()4492   public com.google.protobuf.Parser<HyperparameterTuningJob> getParserForType() {
4493     return PARSER;
4494   }
4495 
4496   @java.lang.Override
getDefaultInstanceForType()4497   public com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob getDefaultInstanceForType() {
4498     return DEFAULT_INSTANCE;
4499   }
4500 }
4501