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/v1/hyperparameter_tuning_job.proto 18 19 package com.google.cloud.aiplatform.v1; 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.v1.HyperparameterTuningJob} 31 */ 32 public final class HyperparameterTuningJob extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.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.v1.HyperparameterTuningJobProto 62 .internal_static_google_cloud_aiplatform_v1_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.v1.HyperparameterTuningJobProto 80 .internal_static_google_cloud_aiplatform_v1_HyperparameterTuningJob_fieldAccessorTable 81 .ensureFieldAccessorsInitialized( 82 com.google.cloud.aiplatform.v1.HyperparameterTuningJob.class, 83 com.google.cloud.aiplatform.v1.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.v1.StudySpec studySpec_; 194 /** 195 * 196 * 197 * <pre> 198 * Required. Study configuration of the HyperparameterTuningJob. 199 * </pre> 200 * 201 * <code> 202 * .google.cloud.aiplatform.v1.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.v1.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.v1.StudySpec getStudySpec() { 226 return studySpec_ == null 227 ? com.google.cloud.aiplatform.v1.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.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 239 * </code> 240 */ 241 @java.lang.Override getStudySpecOrBuilder()242 public com.google.cloud.aiplatform.v1.StudySpecOrBuilder getStudySpecOrBuilder() { 243 return studySpec_ == null 244 ? com.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.CustomJobSpec getTrialJobSpec() { 341 return trialJobSpec_ == null 342 ? com.google.cloud.aiplatform.v1.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.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 355 * </code> 356 */ 357 @java.lang.Override getTrialJobSpecOrBuilder()358 public com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder getTrialJobSpecOrBuilder() { 359 return trialJobSpec_ == null 360 ? com.google.cloud.aiplatform.v1.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.v1.Trial> trials_; 368 /** 369 * 370 * 371 * <pre> 372 * Output only. Trials of the HyperparameterTuningJob. 373 * </pre> 374 * 375 * <code> 376 * repeated .google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.JobState getState() { 479 com.google.cloud.aiplatform.v1.JobState result = 480 com.google.cloud.aiplatform.v1.JobState.forNumber(state_); 481 return result == null ? com.google.cloud.aiplatform.v1.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.v1.HyperparameterTuningJobProto 747 .internal_static_google_cloud_aiplatform_v1_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<string, string> 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<string, string> 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<string, string> 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<string, string> 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.v1.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.v1.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.v1.EncryptionSpec encryption_spec = 17;</code> 888 * 889 * @return The encryptionSpec. 890 */ 891 @java.lang.Override getEncryptionSpec()892 public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { 893 return encryptionSpec_ == null 894 ? com.google.cloud.aiplatform.v1.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.v1.EncryptionSpec encryption_spec = 17;</code> 907 */ 908 @java.lang.Override getEncryptionSpecOrBuilder()909 public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { 910 return encryptionSpec_ == null 911 ? com.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.HyperparameterTuningJob)) { 1051 return super.equals(obj); 1052 } 1053 com.google.cloud.aiplatform.v1.HyperparameterTuningJob other = 1054 (com.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.HyperparameterTuningJob prototype)1245 public static Builder newBuilder( 1246 com.google.cloud.aiplatform.v1.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.v1.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.v1.HyperparameterTuningJob) 1274 com.google.cloud.aiplatform.v1.HyperparameterTuningJobOrBuilder { getDescriptor()1275 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1276 return com.google.cloud.aiplatform.v1.HyperparameterTuningJobProto 1277 .internal_static_google_cloud_aiplatform_v1_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.v1.HyperparameterTuningJobProto 1304 .internal_static_google_cloud_aiplatform_v1_HyperparameterTuningJob_fieldAccessorTable 1305 .ensureFieldAccessorsInitialized( 1306 com.google.cloud.aiplatform.v1.HyperparameterTuningJob.class, 1307 com.google.cloud.aiplatform.v1.HyperparameterTuningJob.Builder.class); 1308 } 1309 1310 // Construct using com.google.cloud.aiplatform.v1.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.v1.HyperparameterTuningJobProto 1381 .internal_static_google_cloud_aiplatform_v1_HyperparameterTuningJob_descriptor; 1382 } 1383 1384 @java.lang.Override getDefaultInstanceForType()1385 public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getDefaultInstanceForType() { 1386 return com.google.cloud.aiplatform.v1.HyperparameterTuningJob.getDefaultInstance(); 1387 } 1388 1389 @java.lang.Override build()1390 public com.google.cloud.aiplatform.v1.HyperparameterTuningJob build() { 1391 com.google.cloud.aiplatform.v1.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.v1.HyperparameterTuningJob buildPartial() { 1400 com.google.cloud.aiplatform.v1.HyperparameterTuningJob result = 1401 new com.google.cloud.aiplatform.v1.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.v1.HyperparameterTuningJob result)1410 private void buildPartialRepeatedFields( 1411 com.google.cloud.aiplatform.v1.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.v1.HyperparameterTuningJob result)1423 private void buildPartial0(com.google.cloud.aiplatform.v1.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.v1.HyperparameterTuningJob) { 1511 return mergeFrom((com.google.cloud.aiplatform.v1.HyperparameterTuningJob) other); 1512 } else { 1513 super.mergeFrom(other); 1514 return this; 1515 } 1516 } 1517 mergeFrom(com.google.cloud.aiplatform.v1.HyperparameterTuningJob other)1518 public Builder mergeFrom(com.google.cloud.aiplatform.v1.HyperparameterTuningJob other) { 1519 if (other == com.google.cloud.aiplatform.v1.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.v1.Trial m = 1667 input.readMessage( 1668 com.google.cloud.aiplatform.v1.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.v1.StudySpec studySpec_; 1973 private com.google.protobuf.SingleFieldBuilderV3< 1974 com.google.cloud.aiplatform.v1.StudySpec, 1975 com.google.cloud.aiplatform.v1.StudySpec.Builder, 1976 com.google.cloud.aiplatform.v1.StudySpecOrBuilder> 1977 studySpecBuilder_; 1978 /** 1979 * 1980 * 1981 * <pre> 1982 * Required. Study configuration of the HyperparameterTuningJob. 1983 * </pre> 1984 * 1985 * <code> 1986 * .google.cloud.aiplatform.v1.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.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2003 * </code> 2004 * 2005 * @return The studySpec. 2006 */ getStudySpec()2007 public com.google.cloud.aiplatform.v1.StudySpec getStudySpec() { 2008 if (studySpecBuilder_ == null) { 2009 return studySpec_ == null 2010 ? com.google.cloud.aiplatform.v1.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.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2025 * </code> 2026 */ setStudySpec(com.google.cloud.aiplatform.v1.StudySpec value)2027 public Builder setStudySpec(com.google.cloud.aiplatform.v1.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.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2049 * </code> 2050 */ setStudySpec(com.google.cloud.aiplatform.v1.StudySpec.Builder builderForValue)2051 public Builder setStudySpec(com.google.cloud.aiplatform.v1.StudySpec.Builder builderForValue) { 2052 if (studySpecBuilder_ == null) { 2053 studySpec_ = builderForValue.build(); 2054 } else { 2055 studySpecBuilder_.setMessage(builderForValue.build()); 2056 } 2057 bitField0_ |= 0x00000004; 2058 onChanged(); 2059 return this; 2060 } 2061 /** 2062 * 2063 * 2064 * <pre> 2065 * Required. Study configuration of the HyperparameterTuningJob. 2066 * </pre> 2067 * 2068 * <code> 2069 * .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2070 * </code> 2071 */ mergeStudySpec(com.google.cloud.aiplatform.v1.StudySpec value)2072 public Builder mergeStudySpec(com.google.cloud.aiplatform.v1.StudySpec value) { 2073 if (studySpecBuilder_ == null) { 2074 if (((bitField0_ & 0x00000004) != 0) 2075 && studySpec_ != null 2076 && studySpec_ != com.google.cloud.aiplatform.v1.StudySpec.getDefaultInstance()) { 2077 getStudySpecBuilder().mergeFrom(value); 2078 } else { 2079 studySpec_ = value; 2080 } 2081 } else { 2082 studySpecBuilder_.mergeFrom(value); 2083 } 2084 bitField0_ |= 0x00000004; 2085 onChanged(); 2086 return this; 2087 } 2088 /** 2089 * 2090 * 2091 * <pre> 2092 * Required. Study configuration of the HyperparameterTuningJob. 2093 * </pre> 2094 * 2095 * <code> 2096 * .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2097 * </code> 2098 */ clearStudySpec()2099 public Builder clearStudySpec() { 2100 bitField0_ = (bitField0_ & ~0x00000004); 2101 studySpec_ = null; 2102 if (studySpecBuilder_ != null) { 2103 studySpecBuilder_.dispose(); 2104 studySpecBuilder_ = null; 2105 } 2106 onChanged(); 2107 return this; 2108 } 2109 /** 2110 * 2111 * 2112 * <pre> 2113 * Required. Study configuration of the HyperparameterTuningJob. 2114 * </pre> 2115 * 2116 * <code> 2117 * .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2118 * </code> 2119 */ getStudySpecBuilder()2120 public com.google.cloud.aiplatform.v1.StudySpec.Builder getStudySpecBuilder() { 2121 bitField0_ |= 0x00000004; 2122 onChanged(); 2123 return getStudySpecFieldBuilder().getBuilder(); 2124 } 2125 /** 2126 * 2127 * 2128 * <pre> 2129 * Required. Study configuration of the HyperparameterTuningJob. 2130 * </pre> 2131 * 2132 * <code> 2133 * .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2134 * </code> 2135 */ getStudySpecOrBuilder()2136 public com.google.cloud.aiplatform.v1.StudySpecOrBuilder getStudySpecOrBuilder() { 2137 if (studySpecBuilder_ != null) { 2138 return studySpecBuilder_.getMessageOrBuilder(); 2139 } else { 2140 return studySpec_ == null 2141 ? com.google.cloud.aiplatform.v1.StudySpec.getDefaultInstance() 2142 : studySpec_; 2143 } 2144 } 2145 /** 2146 * 2147 * 2148 * <pre> 2149 * Required. Study configuration of the HyperparameterTuningJob. 2150 * </pre> 2151 * 2152 * <code> 2153 * .google.cloud.aiplatform.v1.StudySpec study_spec = 4 [(.google.api.field_behavior) = REQUIRED]; 2154 * </code> 2155 */ 2156 private com.google.protobuf.SingleFieldBuilderV3< 2157 com.google.cloud.aiplatform.v1.StudySpec, 2158 com.google.cloud.aiplatform.v1.StudySpec.Builder, 2159 com.google.cloud.aiplatform.v1.StudySpecOrBuilder> getStudySpecFieldBuilder()2160 getStudySpecFieldBuilder() { 2161 if (studySpecBuilder_ == null) { 2162 studySpecBuilder_ = 2163 new com.google.protobuf.SingleFieldBuilderV3< 2164 com.google.cloud.aiplatform.v1.StudySpec, 2165 com.google.cloud.aiplatform.v1.StudySpec.Builder, 2166 com.google.cloud.aiplatform.v1.StudySpecOrBuilder>( 2167 getStudySpec(), getParentForChildren(), isClean()); 2168 studySpec_ = null; 2169 } 2170 return studySpecBuilder_; 2171 } 2172 2173 private int maxTrialCount_; 2174 /** 2175 * 2176 * 2177 * <pre> 2178 * Required. The desired total number of Trials. 2179 * </pre> 2180 * 2181 * <code>int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED];</code> 2182 * 2183 * @return The maxTrialCount. 2184 */ 2185 @java.lang.Override getMaxTrialCount()2186 public int getMaxTrialCount() { 2187 return maxTrialCount_; 2188 } 2189 /** 2190 * 2191 * 2192 * <pre> 2193 * Required. The desired total number of Trials. 2194 * </pre> 2195 * 2196 * <code>int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED];</code> 2197 * 2198 * @param value The maxTrialCount to set. 2199 * @return This builder for chaining. 2200 */ setMaxTrialCount(int value)2201 public Builder setMaxTrialCount(int value) { 2202 2203 maxTrialCount_ = value; 2204 bitField0_ |= 0x00000008; 2205 onChanged(); 2206 return this; 2207 } 2208 /** 2209 * 2210 * 2211 * <pre> 2212 * Required. The desired total number of Trials. 2213 * </pre> 2214 * 2215 * <code>int32 max_trial_count = 5 [(.google.api.field_behavior) = REQUIRED];</code> 2216 * 2217 * @return This builder for chaining. 2218 */ clearMaxTrialCount()2219 public Builder clearMaxTrialCount() { 2220 bitField0_ = (bitField0_ & ~0x00000008); 2221 maxTrialCount_ = 0; 2222 onChanged(); 2223 return this; 2224 } 2225 2226 private int parallelTrialCount_; 2227 /** 2228 * 2229 * 2230 * <pre> 2231 * Required. The desired number of Trials to run in parallel. 2232 * </pre> 2233 * 2234 * <code>int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED];</code> 2235 * 2236 * @return The parallelTrialCount. 2237 */ 2238 @java.lang.Override getParallelTrialCount()2239 public int getParallelTrialCount() { 2240 return parallelTrialCount_; 2241 } 2242 /** 2243 * 2244 * 2245 * <pre> 2246 * Required. The desired number of Trials to run in parallel. 2247 * </pre> 2248 * 2249 * <code>int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED];</code> 2250 * 2251 * @param value The parallelTrialCount to set. 2252 * @return This builder for chaining. 2253 */ setParallelTrialCount(int value)2254 public Builder setParallelTrialCount(int value) { 2255 2256 parallelTrialCount_ = value; 2257 bitField0_ |= 0x00000010; 2258 onChanged(); 2259 return this; 2260 } 2261 /** 2262 * 2263 * 2264 * <pre> 2265 * Required. The desired number of Trials to run in parallel. 2266 * </pre> 2267 * 2268 * <code>int32 parallel_trial_count = 6 [(.google.api.field_behavior) = REQUIRED];</code> 2269 * 2270 * @return This builder for chaining. 2271 */ clearParallelTrialCount()2272 public Builder clearParallelTrialCount() { 2273 bitField0_ = (bitField0_ & ~0x00000010); 2274 parallelTrialCount_ = 0; 2275 onChanged(); 2276 return this; 2277 } 2278 2279 private int maxFailedTrialCount_; 2280 /** 2281 * 2282 * 2283 * <pre> 2284 * The number of failed Trials that need to be seen before failing 2285 * the HyperparameterTuningJob. 2286 * If set to 0, Vertex AI decides how many Trials must fail 2287 * before the whole job fails. 2288 * </pre> 2289 * 2290 * <code>int32 max_failed_trial_count = 7;</code> 2291 * 2292 * @return The maxFailedTrialCount. 2293 */ 2294 @java.lang.Override getMaxFailedTrialCount()2295 public int getMaxFailedTrialCount() { 2296 return maxFailedTrialCount_; 2297 } 2298 /** 2299 * 2300 * 2301 * <pre> 2302 * The number of failed Trials that need to be seen before failing 2303 * the HyperparameterTuningJob. 2304 * If set to 0, Vertex AI decides how many Trials must fail 2305 * before the whole job fails. 2306 * </pre> 2307 * 2308 * <code>int32 max_failed_trial_count = 7;</code> 2309 * 2310 * @param value The maxFailedTrialCount to set. 2311 * @return This builder for chaining. 2312 */ setMaxFailedTrialCount(int value)2313 public Builder setMaxFailedTrialCount(int value) { 2314 2315 maxFailedTrialCount_ = value; 2316 bitField0_ |= 0x00000020; 2317 onChanged(); 2318 return this; 2319 } 2320 /** 2321 * 2322 * 2323 * <pre> 2324 * The number of failed Trials that need to be seen before failing 2325 * the HyperparameterTuningJob. 2326 * If set to 0, Vertex AI decides how many Trials must fail 2327 * before the whole job fails. 2328 * </pre> 2329 * 2330 * <code>int32 max_failed_trial_count = 7;</code> 2331 * 2332 * @return This builder for chaining. 2333 */ clearMaxFailedTrialCount()2334 public Builder clearMaxFailedTrialCount() { 2335 bitField0_ = (bitField0_ & ~0x00000020); 2336 maxFailedTrialCount_ = 0; 2337 onChanged(); 2338 return this; 2339 } 2340 2341 private com.google.cloud.aiplatform.v1.CustomJobSpec trialJobSpec_; 2342 private com.google.protobuf.SingleFieldBuilderV3< 2343 com.google.cloud.aiplatform.v1.CustomJobSpec, 2344 com.google.cloud.aiplatform.v1.CustomJobSpec.Builder, 2345 com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder> 2346 trialJobSpecBuilder_; 2347 /** 2348 * 2349 * 2350 * <pre> 2351 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2352 * created in all the trials. 2353 * </pre> 2354 * 2355 * <code> 2356 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2357 * </code> 2358 * 2359 * @return Whether the trialJobSpec field is set. 2360 */ hasTrialJobSpec()2361 public boolean hasTrialJobSpec() { 2362 return ((bitField0_ & 0x00000040) != 0); 2363 } 2364 /** 2365 * 2366 * 2367 * <pre> 2368 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2369 * created in all the trials. 2370 * </pre> 2371 * 2372 * <code> 2373 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2374 * </code> 2375 * 2376 * @return The trialJobSpec. 2377 */ getTrialJobSpec()2378 public com.google.cloud.aiplatform.v1.CustomJobSpec getTrialJobSpec() { 2379 if (trialJobSpecBuilder_ == null) { 2380 return trialJobSpec_ == null 2381 ? com.google.cloud.aiplatform.v1.CustomJobSpec.getDefaultInstance() 2382 : trialJobSpec_; 2383 } else { 2384 return trialJobSpecBuilder_.getMessage(); 2385 } 2386 } 2387 /** 2388 * 2389 * 2390 * <pre> 2391 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2392 * created in all the trials. 2393 * </pre> 2394 * 2395 * <code> 2396 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2397 * </code> 2398 */ setTrialJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value)2399 public Builder setTrialJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value) { 2400 if (trialJobSpecBuilder_ == null) { 2401 if (value == null) { 2402 throw new NullPointerException(); 2403 } 2404 trialJobSpec_ = value; 2405 } else { 2406 trialJobSpecBuilder_.setMessage(value); 2407 } 2408 bitField0_ |= 0x00000040; 2409 onChanged(); 2410 return this; 2411 } 2412 /** 2413 * 2414 * 2415 * <pre> 2416 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2417 * created in all the trials. 2418 * </pre> 2419 * 2420 * <code> 2421 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2422 * </code> 2423 */ setTrialJobSpec( com.google.cloud.aiplatform.v1.CustomJobSpec.Builder builderForValue)2424 public Builder setTrialJobSpec( 2425 com.google.cloud.aiplatform.v1.CustomJobSpec.Builder builderForValue) { 2426 if (trialJobSpecBuilder_ == null) { 2427 trialJobSpec_ = builderForValue.build(); 2428 } else { 2429 trialJobSpecBuilder_.setMessage(builderForValue.build()); 2430 } 2431 bitField0_ |= 0x00000040; 2432 onChanged(); 2433 return this; 2434 } 2435 /** 2436 * 2437 * 2438 * <pre> 2439 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2440 * created in all the trials. 2441 * </pre> 2442 * 2443 * <code> 2444 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2445 * </code> 2446 */ mergeTrialJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value)2447 public Builder mergeTrialJobSpec(com.google.cloud.aiplatform.v1.CustomJobSpec value) { 2448 if (trialJobSpecBuilder_ == null) { 2449 if (((bitField0_ & 0x00000040) != 0) 2450 && trialJobSpec_ != null 2451 && trialJobSpec_ != com.google.cloud.aiplatform.v1.CustomJobSpec.getDefaultInstance()) { 2452 getTrialJobSpecBuilder().mergeFrom(value); 2453 } else { 2454 trialJobSpec_ = value; 2455 } 2456 } else { 2457 trialJobSpecBuilder_.mergeFrom(value); 2458 } 2459 bitField0_ |= 0x00000040; 2460 onChanged(); 2461 return this; 2462 } 2463 /** 2464 * 2465 * 2466 * <pre> 2467 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2468 * created in all the trials. 2469 * </pre> 2470 * 2471 * <code> 2472 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2473 * </code> 2474 */ clearTrialJobSpec()2475 public Builder clearTrialJobSpec() { 2476 bitField0_ = (bitField0_ & ~0x00000040); 2477 trialJobSpec_ = null; 2478 if (trialJobSpecBuilder_ != null) { 2479 trialJobSpecBuilder_.dispose(); 2480 trialJobSpecBuilder_ = null; 2481 } 2482 onChanged(); 2483 return this; 2484 } 2485 /** 2486 * 2487 * 2488 * <pre> 2489 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2490 * created in all the trials. 2491 * </pre> 2492 * 2493 * <code> 2494 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2495 * </code> 2496 */ getTrialJobSpecBuilder()2497 public com.google.cloud.aiplatform.v1.CustomJobSpec.Builder getTrialJobSpecBuilder() { 2498 bitField0_ |= 0x00000040; 2499 onChanged(); 2500 return getTrialJobSpecFieldBuilder().getBuilder(); 2501 } 2502 /** 2503 * 2504 * 2505 * <pre> 2506 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2507 * created in all the trials. 2508 * </pre> 2509 * 2510 * <code> 2511 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2512 * </code> 2513 */ getTrialJobSpecOrBuilder()2514 public com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder getTrialJobSpecOrBuilder() { 2515 if (trialJobSpecBuilder_ != null) { 2516 return trialJobSpecBuilder_.getMessageOrBuilder(); 2517 } else { 2518 return trialJobSpec_ == null 2519 ? com.google.cloud.aiplatform.v1.CustomJobSpec.getDefaultInstance() 2520 : trialJobSpec_; 2521 } 2522 } 2523 /** 2524 * 2525 * 2526 * <pre> 2527 * Required. The spec of a trial job. The same spec applies to the CustomJobs 2528 * created in all the trials. 2529 * </pre> 2530 * 2531 * <code> 2532 * .google.cloud.aiplatform.v1.CustomJobSpec trial_job_spec = 8 [(.google.api.field_behavior) = REQUIRED]; 2533 * </code> 2534 */ 2535 private com.google.protobuf.SingleFieldBuilderV3< 2536 com.google.cloud.aiplatform.v1.CustomJobSpec, 2537 com.google.cloud.aiplatform.v1.CustomJobSpec.Builder, 2538 com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder> getTrialJobSpecFieldBuilder()2539 getTrialJobSpecFieldBuilder() { 2540 if (trialJobSpecBuilder_ == null) { 2541 trialJobSpecBuilder_ = 2542 new com.google.protobuf.SingleFieldBuilderV3< 2543 com.google.cloud.aiplatform.v1.CustomJobSpec, 2544 com.google.cloud.aiplatform.v1.CustomJobSpec.Builder, 2545 com.google.cloud.aiplatform.v1.CustomJobSpecOrBuilder>( 2546 getTrialJobSpec(), getParentForChildren(), isClean()); 2547 trialJobSpec_ = null; 2548 } 2549 return trialJobSpecBuilder_; 2550 } 2551 2552 private java.util.List<com.google.cloud.aiplatform.v1.Trial> trials_ = 2553 java.util.Collections.emptyList(); 2554 ensureTrialsIsMutable()2555 private void ensureTrialsIsMutable() { 2556 if (!((bitField0_ & 0x00000080) != 0)) { 2557 trials_ = new java.util.ArrayList<com.google.cloud.aiplatform.v1.Trial>(trials_); 2558 bitField0_ |= 0x00000080; 2559 } 2560 } 2561 2562 private com.google.protobuf.RepeatedFieldBuilderV3< 2563 com.google.cloud.aiplatform.v1.Trial, 2564 com.google.cloud.aiplatform.v1.Trial.Builder, 2565 com.google.cloud.aiplatform.v1.TrialOrBuilder> 2566 trialsBuilder_; 2567 2568 /** 2569 * 2570 * 2571 * <pre> 2572 * Output only. Trials of the HyperparameterTuningJob. 2573 * </pre> 2574 * 2575 * <code> 2576 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2577 * </code> 2578 */ getTrialsList()2579 public java.util.List<com.google.cloud.aiplatform.v1.Trial> getTrialsList() { 2580 if (trialsBuilder_ == null) { 2581 return java.util.Collections.unmodifiableList(trials_); 2582 } else { 2583 return trialsBuilder_.getMessageList(); 2584 } 2585 } 2586 /** 2587 * 2588 * 2589 * <pre> 2590 * Output only. Trials of the HyperparameterTuningJob. 2591 * </pre> 2592 * 2593 * <code> 2594 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2595 * </code> 2596 */ getTrialsCount()2597 public int getTrialsCount() { 2598 if (trialsBuilder_ == null) { 2599 return trials_.size(); 2600 } else { 2601 return trialsBuilder_.getCount(); 2602 } 2603 } 2604 /** 2605 * 2606 * 2607 * <pre> 2608 * Output only. Trials of the HyperparameterTuningJob. 2609 * </pre> 2610 * 2611 * <code> 2612 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2613 * </code> 2614 */ getTrials(int index)2615 public com.google.cloud.aiplatform.v1.Trial getTrials(int index) { 2616 if (trialsBuilder_ == null) { 2617 return trials_.get(index); 2618 } else { 2619 return trialsBuilder_.getMessage(index); 2620 } 2621 } 2622 /** 2623 * 2624 * 2625 * <pre> 2626 * Output only. Trials of the HyperparameterTuningJob. 2627 * </pre> 2628 * 2629 * <code> 2630 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2631 * </code> 2632 */ setTrials(int index, com.google.cloud.aiplatform.v1.Trial value)2633 public Builder setTrials(int index, com.google.cloud.aiplatform.v1.Trial value) { 2634 if (trialsBuilder_ == null) { 2635 if (value == null) { 2636 throw new NullPointerException(); 2637 } 2638 ensureTrialsIsMutable(); 2639 trials_.set(index, value); 2640 onChanged(); 2641 } else { 2642 trialsBuilder_.setMessage(index, value); 2643 } 2644 return this; 2645 } 2646 /** 2647 * 2648 * 2649 * <pre> 2650 * Output only. Trials of the HyperparameterTuningJob. 2651 * </pre> 2652 * 2653 * <code> 2654 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2655 * </code> 2656 */ setTrials( int index, com.google.cloud.aiplatform.v1.Trial.Builder builderForValue)2657 public Builder setTrials( 2658 int index, com.google.cloud.aiplatform.v1.Trial.Builder builderForValue) { 2659 if (trialsBuilder_ == null) { 2660 ensureTrialsIsMutable(); 2661 trials_.set(index, builderForValue.build()); 2662 onChanged(); 2663 } else { 2664 trialsBuilder_.setMessage(index, builderForValue.build()); 2665 } 2666 return this; 2667 } 2668 /** 2669 * 2670 * 2671 * <pre> 2672 * Output only. Trials of the HyperparameterTuningJob. 2673 * </pre> 2674 * 2675 * <code> 2676 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2677 * </code> 2678 */ addTrials(com.google.cloud.aiplatform.v1.Trial value)2679 public Builder addTrials(com.google.cloud.aiplatform.v1.Trial value) { 2680 if (trialsBuilder_ == null) { 2681 if (value == null) { 2682 throw new NullPointerException(); 2683 } 2684 ensureTrialsIsMutable(); 2685 trials_.add(value); 2686 onChanged(); 2687 } else { 2688 trialsBuilder_.addMessage(value); 2689 } 2690 return this; 2691 } 2692 /** 2693 * 2694 * 2695 * <pre> 2696 * Output only. Trials of the HyperparameterTuningJob. 2697 * </pre> 2698 * 2699 * <code> 2700 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2701 * </code> 2702 */ addTrials(int index, com.google.cloud.aiplatform.v1.Trial value)2703 public Builder addTrials(int index, com.google.cloud.aiplatform.v1.Trial value) { 2704 if (trialsBuilder_ == null) { 2705 if (value == null) { 2706 throw new NullPointerException(); 2707 } 2708 ensureTrialsIsMutable(); 2709 trials_.add(index, value); 2710 onChanged(); 2711 } else { 2712 trialsBuilder_.addMessage(index, value); 2713 } 2714 return this; 2715 } 2716 /** 2717 * 2718 * 2719 * <pre> 2720 * Output only. Trials of the HyperparameterTuningJob. 2721 * </pre> 2722 * 2723 * <code> 2724 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2725 * </code> 2726 */ addTrials(com.google.cloud.aiplatform.v1.Trial.Builder builderForValue)2727 public Builder addTrials(com.google.cloud.aiplatform.v1.Trial.Builder builderForValue) { 2728 if (trialsBuilder_ == null) { 2729 ensureTrialsIsMutable(); 2730 trials_.add(builderForValue.build()); 2731 onChanged(); 2732 } else { 2733 trialsBuilder_.addMessage(builderForValue.build()); 2734 } 2735 return this; 2736 } 2737 /** 2738 * 2739 * 2740 * <pre> 2741 * Output only. Trials of the HyperparameterTuningJob. 2742 * </pre> 2743 * 2744 * <code> 2745 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2746 * </code> 2747 */ addTrials( int index, com.google.cloud.aiplatform.v1.Trial.Builder builderForValue)2748 public Builder addTrials( 2749 int index, com.google.cloud.aiplatform.v1.Trial.Builder builderForValue) { 2750 if (trialsBuilder_ == null) { 2751 ensureTrialsIsMutable(); 2752 trials_.add(index, builderForValue.build()); 2753 onChanged(); 2754 } else { 2755 trialsBuilder_.addMessage(index, builderForValue.build()); 2756 } 2757 return this; 2758 } 2759 /** 2760 * 2761 * 2762 * <pre> 2763 * Output only. Trials of the HyperparameterTuningJob. 2764 * </pre> 2765 * 2766 * <code> 2767 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2768 * </code> 2769 */ addAllTrials( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1.Trial> values)2770 public Builder addAllTrials( 2771 java.lang.Iterable<? extends com.google.cloud.aiplatform.v1.Trial> values) { 2772 if (trialsBuilder_ == null) { 2773 ensureTrialsIsMutable(); 2774 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trials_); 2775 onChanged(); 2776 } else { 2777 trialsBuilder_.addAllMessages(values); 2778 } 2779 return this; 2780 } 2781 /** 2782 * 2783 * 2784 * <pre> 2785 * Output only. Trials of the HyperparameterTuningJob. 2786 * </pre> 2787 * 2788 * <code> 2789 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2790 * </code> 2791 */ clearTrials()2792 public Builder clearTrials() { 2793 if (trialsBuilder_ == null) { 2794 trials_ = java.util.Collections.emptyList(); 2795 bitField0_ = (bitField0_ & ~0x00000080); 2796 onChanged(); 2797 } else { 2798 trialsBuilder_.clear(); 2799 } 2800 return this; 2801 } 2802 /** 2803 * 2804 * 2805 * <pre> 2806 * Output only. Trials of the HyperparameterTuningJob. 2807 * </pre> 2808 * 2809 * <code> 2810 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2811 * </code> 2812 */ removeTrials(int index)2813 public Builder removeTrials(int index) { 2814 if (trialsBuilder_ == null) { 2815 ensureTrialsIsMutable(); 2816 trials_.remove(index); 2817 onChanged(); 2818 } else { 2819 trialsBuilder_.remove(index); 2820 } 2821 return this; 2822 } 2823 /** 2824 * 2825 * 2826 * <pre> 2827 * Output only. Trials of the HyperparameterTuningJob. 2828 * </pre> 2829 * 2830 * <code> 2831 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2832 * </code> 2833 */ getTrialsBuilder(int index)2834 public com.google.cloud.aiplatform.v1.Trial.Builder getTrialsBuilder(int index) { 2835 return getTrialsFieldBuilder().getBuilder(index); 2836 } 2837 /** 2838 * 2839 * 2840 * <pre> 2841 * Output only. Trials of the HyperparameterTuningJob. 2842 * </pre> 2843 * 2844 * <code> 2845 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2846 * </code> 2847 */ getTrialsOrBuilder(int index)2848 public com.google.cloud.aiplatform.v1.TrialOrBuilder getTrialsOrBuilder(int index) { 2849 if (trialsBuilder_ == null) { 2850 return trials_.get(index); 2851 } else { 2852 return trialsBuilder_.getMessageOrBuilder(index); 2853 } 2854 } 2855 /** 2856 * 2857 * 2858 * <pre> 2859 * Output only. Trials of the HyperparameterTuningJob. 2860 * </pre> 2861 * 2862 * <code> 2863 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2864 * </code> 2865 */ 2866 public java.util.List<? extends com.google.cloud.aiplatform.v1.TrialOrBuilder> getTrialsOrBuilderList()2867 getTrialsOrBuilderList() { 2868 if (trialsBuilder_ != null) { 2869 return trialsBuilder_.getMessageOrBuilderList(); 2870 } else { 2871 return java.util.Collections.unmodifiableList(trials_); 2872 } 2873 } 2874 /** 2875 * 2876 * 2877 * <pre> 2878 * Output only. Trials of the HyperparameterTuningJob. 2879 * </pre> 2880 * 2881 * <code> 2882 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2883 * </code> 2884 */ addTrialsBuilder()2885 public com.google.cloud.aiplatform.v1.Trial.Builder addTrialsBuilder() { 2886 return getTrialsFieldBuilder() 2887 .addBuilder(com.google.cloud.aiplatform.v1.Trial.getDefaultInstance()); 2888 } 2889 /** 2890 * 2891 * 2892 * <pre> 2893 * Output only. Trials of the HyperparameterTuningJob. 2894 * </pre> 2895 * 2896 * <code> 2897 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2898 * </code> 2899 */ addTrialsBuilder(int index)2900 public com.google.cloud.aiplatform.v1.Trial.Builder addTrialsBuilder(int index) { 2901 return getTrialsFieldBuilder() 2902 .addBuilder(index, com.google.cloud.aiplatform.v1.Trial.getDefaultInstance()); 2903 } 2904 /** 2905 * 2906 * 2907 * <pre> 2908 * Output only. Trials of the HyperparameterTuningJob. 2909 * </pre> 2910 * 2911 * <code> 2912 * repeated .google.cloud.aiplatform.v1.Trial trials = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2913 * </code> 2914 */ getTrialsBuilderList()2915 public java.util.List<com.google.cloud.aiplatform.v1.Trial.Builder> getTrialsBuilderList() { 2916 return getTrialsFieldBuilder().getBuilderList(); 2917 } 2918 2919 private com.google.protobuf.RepeatedFieldBuilderV3< 2920 com.google.cloud.aiplatform.v1.Trial, 2921 com.google.cloud.aiplatform.v1.Trial.Builder, 2922 com.google.cloud.aiplatform.v1.TrialOrBuilder> getTrialsFieldBuilder()2923 getTrialsFieldBuilder() { 2924 if (trialsBuilder_ == null) { 2925 trialsBuilder_ = 2926 new com.google.protobuf.RepeatedFieldBuilderV3< 2927 com.google.cloud.aiplatform.v1.Trial, 2928 com.google.cloud.aiplatform.v1.Trial.Builder, 2929 com.google.cloud.aiplatform.v1.TrialOrBuilder>( 2930 trials_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); 2931 trials_ = null; 2932 } 2933 return trialsBuilder_; 2934 } 2935 2936 private int state_ = 0; 2937 /** 2938 * 2939 * 2940 * <pre> 2941 * Output only. The detailed state of the job. 2942 * </pre> 2943 * 2944 * <code> 2945 * .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2946 * </code> 2947 * 2948 * @return The enum numeric value on the wire for state. 2949 */ 2950 @java.lang.Override getStateValue()2951 public int getStateValue() { 2952 return state_; 2953 } 2954 /** 2955 * 2956 * 2957 * <pre> 2958 * Output only. The detailed state of the job. 2959 * </pre> 2960 * 2961 * <code> 2962 * .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2963 * </code> 2964 * 2965 * @param value The enum numeric value on the wire for state to set. 2966 * @return This builder for chaining. 2967 */ setStateValue(int value)2968 public Builder setStateValue(int value) { 2969 state_ = value; 2970 bitField0_ |= 0x00000100; 2971 onChanged(); 2972 return this; 2973 } 2974 /** 2975 * 2976 * 2977 * <pre> 2978 * Output only. The detailed state of the job. 2979 * </pre> 2980 * 2981 * <code> 2982 * .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2983 * </code> 2984 * 2985 * @return The state. 2986 */ 2987 @java.lang.Override getState()2988 public com.google.cloud.aiplatform.v1.JobState getState() { 2989 com.google.cloud.aiplatform.v1.JobState result = 2990 com.google.cloud.aiplatform.v1.JobState.forNumber(state_); 2991 return result == null ? com.google.cloud.aiplatform.v1.JobState.UNRECOGNIZED : result; 2992 } 2993 /** 2994 * 2995 * 2996 * <pre> 2997 * Output only. The detailed state of the job. 2998 * </pre> 2999 * 3000 * <code> 3001 * .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3002 * </code> 3003 * 3004 * @param value The state to set. 3005 * @return This builder for chaining. 3006 */ setState(com.google.cloud.aiplatform.v1.JobState value)3007 public Builder setState(com.google.cloud.aiplatform.v1.JobState value) { 3008 if (value == null) { 3009 throw new NullPointerException(); 3010 } 3011 bitField0_ |= 0x00000100; 3012 state_ = value.getNumber(); 3013 onChanged(); 3014 return this; 3015 } 3016 /** 3017 * 3018 * 3019 * <pre> 3020 * Output only. The detailed state of the job. 3021 * </pre> 3022 * 3023 * <code> 3024 * .google.cloud.aiplatform.v1.JobState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3025 * </code> 3026 * 3027 * @return This builder for chaining. 3028 */ clearState()3029 public Builder clearState() { 3030 bitField0_ = (bitField0_ & ~0x00000100); 3031 state_ = 0; 3032 onChanged(); 3033 return this; 3034 } 3035 3036 private com.google.protobuf.Timestamp createTime_; 3037 private com.google.protobuf.SingleFieldBuilderV3< 3038 com.google.protobuf.Timestamp, 3039 com.google.protobuf.Timestamp.Builder, 3040 com.google.protobuf.TimestampOrBuilder> 3041 createTimeBuilder_; 3042 /** 3043 * 3044 * 3045 * <pre> 3046 * Output only. Time when the HyperparameterTuningJob was created. 3047 * </pre> 3048 * 3049 * <code> 3050 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3051 * </code> 3052 * 3053 * @return Whether the createTime field is set. 3054 */ hasCreateTime()3055 public boolean hasCreateTime() { 3056 return ((bitField0_ & 0x00000200) != 0); 3057 } 3058 /** 3059 * 3060 * 3061 * <pre> 3062 * Output only. Time when the HyperparameterTuningJob was created. 3063 * </pre> 3064 * 3065 * <code> 3066 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3067 * </code> 3068 * 3069 * @return The createTime. 3070 */ getCreateTime()3071 public com.google.protobuf.Timestamp getCreateTime() { 3072 if (createTimeBuilder_ == null) { 3073 return createTime_ == null 3074 ? com.google.protobuf.Timestamp.getDefaultInstance() 3075 : createTime_; 3076 } else { 3077 return createTimeBuilder_.getMessage(); 3078 } 3079 } 3080 /** 3081 * 3082 * 3083 * <pre> 3084 * Output only. Time when the HyperparameterTuningJob was created. 3085 * </pre> 3086 * 3087 * <code> 3088 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3089 * </code> 3090 */ setCreateTime(com.google.protobuf.Timestamp value)3091 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 3092 if (createTimeBuilder_ == null) { 3093 if (value == null) { 3094 throw new NullPointerException(); 3095 } 3096 createTime_ = value; 3097 } else { 3098 createTimeBuilder_.setMessage(value); 3099 } 3100 bitField0_ |= 0x00000200; 3101 onChanged(); 3102 return this; 3103 } 3104 /** 3105 * 3106 * 3107 * <pre> 3108 * Output only. Time when the HyperparameterTuningJob was created. 3109 * </pre> 3110 * 3111 * <code> 3112 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3113 * </code> 3114 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3115 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3116 if (createTimeBuilder_ == null) { 3117 createTime_ = builderForValue.build(); 3118 } else { 3119 createTimeBuilder_.setMessage(builderForValue.build()); 3120 } 3121 bitField0_ |= 0x00000200; 3122 onChanged(); 3123 return this; 3124 } 3125 /** 3126 * 3127 * 3128 * <pre> 3129 * Output only. Time when the HyperparameterTuningJob was created. 3130 * </pre> 3131 * 3132 * <code> 3133 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3134 * </code> 3135 */ mergeCreateTime(com.google.protobuf.Timestamp value)3136 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 3137 if (createTimeBuilder_ == null) { 3138 if (((bitField0_ & 0x00000200) != 0) 3139 && createTime_ != null 3140 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3141 getCreateTimeBuilder().mergeFrom(value); 3142 } else { 3143 createTime_ = value; 3144 } 3145 } else { 3146 createTimeBuilder_.mergeFrom(value); 3147 } 3148 bitField0_ |= 0x00000200; 3149 onChanged(); 3150 return this; 3151 } 3152 /** 3153 * 3154 * 3155 * <pre> 3156 * Output only. Time when the HyperparameterTuningJob was created. 3157 * </pre> 3158 * 3159 * <code> 3160 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3161 * </code> 3162 */ clearCreateTime()3163 public Builder clearCreateTime() { 3164 bitField0_ = (bitField0_ & ~0x00000200); 3165 createTime_ = null; 3166 if (createTimeBuilder_ != null) { 3167 createTimeBuilder_.dispose(); 3168 createTimeBuilder_ = null; 3169 } 3170 onChanged(); 3171 return this; 3172 } 3173 /** 3174 * 3175 * 3176 * <pre> 3177 * Output only. Time when the HyperparameterTuningJob was created. 3178 * </pre> 3179 * 3180 * <code> 3181 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3182 * </code> 3183 */ getCreateTimeBuilder()3184 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 3185 bitField0_ |= 0x00000200; 3186 onChanged(); 3187 return getCreateTimeFieldBuilder().getBuilder(); 3188 } 3189 /** 3190 * 3191 * 3192 * <pre> 3193 * Output only. Time when the HyperparameterTuningJob was created. 3194 * </pre> 3195 * 3196 * <code> 3197 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3198 * </code> 3199 */ getCreateTimeOrBuilder()3200 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 3201 if (createTimeBuilder_ != null) { 3202 return createTimeBuilder_.getMessageOrBuilder(); 3203 } else { 3204 return createTime_ == null 3205 ? com.google.protobuf.Timestamp.getDefaultInstance() 3206 : createTime_; 3207 } 3208 } 3209 /** 3210 * 3211 * 3212 * <pre> 3213 * Output only. Time when the HyperparameterTuningJob was created. 3214 * </pre> 3215 * 3216 * <code> 3217 * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3218 * </code> 3219 */ 3220 private com.google.protobuf.SingleFieldBuilderV3< 3221 com.google.protobuf.Timestamp, 3222 com.google.protobuf.Timestamp.Builder, 3223 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()3224 getCreateTimeFieldBuilder() { 3225 if (createTimeBuilder_ == null) { 3226 createTimeBuilder_ = 3227 new com.google.protobuf.SingleFieldBuilderV3< 3228 com.google.protobuf.Timestamp, 3229 com.google.protobuf.Timestamp.Builder, 3230 com.google.protobuf.TimestampOrBuilder>( 3231 getCreateTime(), getParentForChildren(), isClean()); 3232 createTime_ = null; 3233 } 3234 return createTimeBuilder_; 3235 } 3236 3237 private com.google.protobuf.Timestamp startTime_; 3238 private com.google.protobuf.SingleFieldBuilderV3< 3239 com.google.protobuf.Timestamp, 3240 com.google.protobuf.Timestamp.Builder, 3241 com.google.protobuf.TimestampOrBuilder> 3242 startTimeBuilder_; 3243 /** 3244 * 3245 * 3246 * <pre> 3247 * Output only. Time when the HyperparameterTuningJob for the first time 3248 * entered the `JOB_STATE_RUNNING` state. 3249 * </pre> 3250 * 3251 * <code> 3252 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3253 * </code> 3254 * 3255 * @return Whether the startTime field is set. 3256 */ hasStartTime()3257 public boolean hasStartTime() { 3258 return ((bitField0_ & 0x00000400) != 0); 3259 } 3260 /** 3261 * 3262 * 3263 * <pre> 3264 * Output only. Time when the HyperparameterTuningJob for the first time 3265 * entered the `JOB_STATE_RUNNING` state. 3266 * </pre> 3267 * 3268 * <code> 3269 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3270 * </code> 3271 * 3272 * @return The startTime. 3273 */ getStartTime()3274 public com.google.protobuf.Timestamp getStartTime() { 3275 if (startTimeBuilder_ == null) { 3276 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 3277 } else { 3278 return startTimeBuilder_.getMessage(); 3279 } 3280 } 3281 /** 3282 * 3283 * 3284 * <pre> 3285 * Output only. Time when the HyperparameterTuningJob for the first time 3286 * entered the `JOB_STATE_RUNNING` state. 3287 * </pre> 3288 * 3289 * <code> 3290 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3291 * </code> 3292 */ setStartTime(com.google.protobuf.Timestamp value)3293 public Builder setStartTime(com.google.protobuf.Timestamp value) { 3294 if (startTimeBuilder_ == null) { 3295 if (value == null) { 3296 throw new NullPointerException(); 3297 } 3298 startTime_ = value; 3299 } else { 3300 startTimeBuilder_.setMessage(value); 3301 } 3302 bitField0_ |= 0x00000400; 3303 onChanged(); 3304 return this; 3305 } 3306 /** 3307 * 3308 * 3309 * <pre> 3310 * Output only. Time when the HyperparameterTuningJob for the first time 3311 * entered the `JOB_STATE_RUNNING` state. 3312 * </pre> 3313 * 3314 * <code> 3315 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3316 * </code> 3317 */ setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)3318 public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3319 if (startTimeBuilder_ == null) { 3320 startTime_ = builderForValue.build(); 3321 } else { 3322 startTimeBuilder_.setMessage(builderForValue.build()); 3323 } 3324 bitField0_ |= 0x00000400; 3325 onChanged(); 3326 return this; 3327 } 3328 /** 3329 * 3330 * 3331 * <pre> 3332 * Output only. Time when the HyperparameterTuningJob for the first time 3333 * entered the `JOB_STATE_RUNNING` state. 3334 * </pre> 3335 * 3336 * <code> 3337 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3338 * </code> 3339 */ mergeStartTime(com.google.protobuf.Timestamp value)3340 public Builder mergeStartTime(com.google.protobuf.Timestamp value) { 3341 if (startTimeBuilder_ == null) { 3342 if (((bitField0_ & 0x00000400) != 0) 3343 && startTime_ != null 3344 && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3345 getStartTimeBuilder().mergeFrom(value); 3346 } else { 3347 startTime_ = value; 3348 } 3349 } else { 3350 startTimeBuilder_.mergeFrom(value); 3351 } 3352 bitField0_ |= 0x00000400; 3353 onChanged(); 3354 return this; 3355 } 3356 /** 3357 * 3358 * 3359 * <pre> 3360 * Output only. Time when the HyperparameterTuningJob for the first time 3361 * entered the `JOB_STATE_RUNNING` state. 3362 * </pre> 3363 * 3364 * <code> 3365 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3366 * </code> 3367 */ clearStartTime()3368 public Builder clearStartTime() { 3369 bitField0_ = (bitField0_ & ~0x00000400); 3370 startTime_ = null; 3371 if (startTimeBuilder_ != null) { 3372 startTimeBuilder_.dispose(); 3373 startTimeBuilder_ = null; 3374 } 3375 onChanged(); 3376 return this; 3377 } 3378 /** 3379 * 3380 * 3381 * <pre> 3382 * Output only. Time when the HyperparameterTuningJob for the first time 3383 * entered the `JOB_STATE_RUNNING` state. 3384 * </pre> 3385 * 3386 * <code> 3387 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3388 * </code> 3389 */ getStartTimeBuilder()3390 public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { 3391 bitField0_ |= 0x00000400; 3392 onChanged(); 3393 return getStartTimeFieldBuilder().getBuilder(); 3394 } 3395 /** 3396 * 3397 * 3398 * <pre> 3399 * Output only. Time when the HyperparameterTuningJob for the first time 3400 * entered the `JOB_STATE_RUNNING` state. 3401 * </pre> 3402 * 3403 * <code> 3404 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3405 * </code> 3406 */ getStartTimeOrBuilder()3407 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 3408 if (startTimeBuilder_ != null) { 3409 return startTimeBuilder_.getMessageOrBuilder(); 3410 } else { 3411 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 3412 } 3413 } 3414 /** 3415 * 3416 * 3417 * <pre> 3418 * Output only. Time when the HyperparameterTuningJob for the first time 3419 * entered the `JOB_STATE_RUNNING` state. 3420 * </pre> 3421 * 3422 * <code> 3423 * .google.protobuf.Timestamp start_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3424 * </code> 3425 */ 3426 private com.google.protobuf.SingleFieldBuilderV3< 3427 com.google.protobuf.Timestamp, 3428 com.google.protobuf.Timestamp.Builder, 3429 com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder()3430 getStartTimeFieldBuilder() { 3431 if (startTimeBuilder_ == null) { 3432 startTimeBuilder_ = 3433 new com.google.protobuf.SingleFieldBuilderV3< 3434 com.google.protobuf.Timestamp, 3435 com.google.protobuf.Timestamp.Builder, 3436 com.google.protobuf.TimestampOrBuilder>( 3437 getStartTime(), getParentForChildren(), isClean()); 3438 startTime_ = null; 3439 } 3440 return startTimeBuilder_; 3441 } 3442 3443 private com.google.protobuf.Timestamp endTime_; 3444 private com.google.protobuf.SingleFieldBuilderV3< 3445 com.google.protobuf.Timestamp, 3446 com.google.protobuf.Timestamp.Builder, 3447 com.google.protobuf.TimestampOrBuilder> 3448 endTimeBuilder_; 3449 /** 3450 * 3451 * 3452 * <pre> 3453 * Output only. Time when the HyperparameterTuningJob entered any of the 3454 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3455 * `JOB_STATE_CANCELLED`. 3456 * </pre> 3457 * 3458 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3459 * </code> 3460 * 3461 * @return Whether the endTime field is set. 3462 */ hasEndTime()3463 public boolean hasEndTime() { 3464 return ((bitField0_ & 0x00000800) != 0); 3465 } 3466 /** 3467 * 3468 * 3469 * <pre> 3470 * Output only. Time when the HyperparameterTuningJob entered any of the 3471 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3472 * `JOB_STATE_CANCELLED`. 3473 * </pre> 3474 * 3475 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3476 * </code> 3477 * 3478 * @return The endTime. 3479 */ getEndTime()3480 public com.google.protobuf.Timestamp getEndTime() { 3481 if (endTimeBuilder_ == null) { 3482 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 3483 } else { 3484 return endTimeBuilder_.getMessage(); 3485 } 3486 } 3487 /** 3488 * 3489 * 3490 * <pre> 3491 * Output only. Time when the HyperparameterTuningJob entered any of the 3492 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3493 * `JOB_STATE_CANCELLED`. 3494 * </pre> 3495 * 3496 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3497 * </code> 3498 */ setEndTime(com.google.protobuf.Timestamp value)3499 public Builder setEndTime(com.google.protobuf.Timestamp value) { 3500 if (endTimeBuilder_ == null) { 3501 if (value == null) { 3502 throw new NullPointerException(); 3503 } 3504 endTime_ = value; 3505 } else { 3506 endTimeBuilder_.setMessage(value); 3507 } 3508 bitField0_ |= 0x00000800; 3509 onChanged(); 3510 return this; 3511 } 3512 /** 3513 * 3514 * 3515 * <pre> 3516 * Output only. Time when the HyperparameterTuningJob entered any of the 3517 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3518 * `JOB_STATE_CANCELLED`. 3519 * </pre> 3520 * 3521 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3522 * </code> 3523 */ setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)3524 public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3525 if (endTimeBuilder_ == null) { 3526 endTime_ = builderForValue.build(); 3527 } else { 3528 endTimeBuilder_.setMessage(builderForValue.build()); 3529 } 3530 bitField0_ |= 0x00000800; 3531 onChanged(); 3532 return this; 3533 } 3534 /** 3535 * 3536 * 3537 * <pre> 3538 * Output only. Time when the HyperparameterTuningJob entered any of the 3539 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3540 * `JOB_STATE_CANCELLED`. 3541 * </pre> 3542 * 3543 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3544 * </code> 3545 */ mergeEndTime(com.google.protobuf.Timestamp value)3546 public Builder mergeEndTime(com.google.protobuf.Timestamp value) { 3547 if (endTimeBuilder_ == null) { 3548 if (((bitField0_ & 0x00000800) != 0) 3549 && endTime_ != null 3550 && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3551 getEndTimeBuilder().mergeFrom(value); 3552 } else { 3553 endTime_ = value; 3554 } 3555 } else { 3556 endTimeBuilder_.mergeFrom(value); 3557 } 3558 bitField0_ |= 0x00000800; 3559 onChanged(); 3560 return this; 3561 } 3562 /** 3563 * 3564 * 3565 * <pre> 3566 * Output only. Time when the HyperparameterTuningJob entered any of the 3567 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3568 * `JOB_STATE_CANCELLED`. 3569 * </pre> 3570 * 3571 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3572 * </code> 3573 */ clearEndTime()3574 public Builder clearEndTime() { 3575 bitField0_ = (bitField0_ & ~0x00000800); 3576 endTime_ = null; 3577 if (endTimeBuilder_ != null) { 3578 endTimeBuilder_.dispose(); 3579 endTimeBuilder_ = null; 3580 } 3581 onChanged(); 3582 return this; 3583 } 3584 /** 3585 * 3586 * 3587 * <pre> 3588 * Output only. Time when the HyperparameterTuningJob entered any of the 3589 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3590 * `JOB_STATE_CANCELLED`. 3591 * </pre> 3592 * 3593 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3594 * </code> 3595 */ getEndTimeBuilder()3596 public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { 3597 bitField0_ |= 0x00000800; 3598 onChanged(); 3599 return getEndTimeFieldBuilder().getBuilder(); 3600 } 3601 /** 3602 * 3603 * 3604 * <pre> 3605 * Output only. Time when the HyperparameterTuningJob entered any of the 3606 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3607 * `JOB_STATE_CANCELLED`. 3608 * </pre> 3609 * 3610 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3611 * </code> 3612 */ getEndTimeOrBuilder()3613 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 3614 if (endTimeBuilder_ != null) { 3615 return endTimeBuilder_.getMessageOrBuilder(); 3616 } else { 3617 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 3618 } 3619 } 3620 /** 3621 * 3622 * 3623 * <pre> 3624 * Output only. Time when the HyperparameterTuningJob entered any of the 3625 * following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, 3626 * `JOB_STATE_CANCELLED`. 3627 * </pre> 3628 * 3629 * <code>.google.protobuf.Timestamp end_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3630 * </code> 3631 */ 3632 private com.google.protobuf.SingleFieldBuilderV3< 3633 com.google.protobuf.Timestamp, 3634 com.google.protobuf.Timestamp.Builder, 3635 com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder()3636 getEndTimeFieldBuilder() { 3637 if (endTimeBuilder_ == null) { 3638 endTimeBuilder_ = 3639 new com.google.protobuf.SingleFieldBuilderV3< 3640 com.google.protobuf.Timestamp, 3641 com.google.protobuf.Timestamp.Builder, 3642 com.google.protobuf.TimestampOrBuilder>( 3643 getEndTime(), getParentForChildren(), isClean()); 3644 endTime_ = null; 3645 } 3646 return endTimeBuilder_; 3647 } 3648 3649 private com.google.protobuf.Timestamp updateTime_; 3650 private com.google.protobuf.SingleFieldBuilderV3< 3651 com.google.protobuf.Timestamp, 3652 com.google.protobuf.Timestamp.Builder, 3653 com.google.protobuf.TimestampOrBuilder> 3654 updateTimeBuilder_; 3655 /** 3656 * 3657 * 3658 * <pre> 3659 * Output only. Time when the HyperparameterTuningJob was most recently 3660 * updated. 3661 * </pre> 3662 * 3663 * <code> 3664 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3665 * </code> 3666 * 3667 * @return Whether the updateTime field is set. 3668 */ hasUpdateTime()3669 public boolean hasUpdateTime() { 3670 return ((bitField0_ & 0x00001000) != 0); 3671 } 3672 /** 3673 * 3674 * 3675 * <pre> 3676 * Output only. Time when the HyperparameterTuningJob was most recently 3677 * updated. 3678 * </pre> 3679 * 3680 * <code> 3681 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3682 * </code> 3683 * 3684 * @return The updateTime. 3685 */ getUpdateTime()3686 public com.google.protobuf.Timestamp getUpdateTime() { 3687 if (updateTimeBuilder_ == null) { 3688 return updateTime_ == null 3689 ? com.google.protobuf.Timestamp.getDefaultInstance() 3690 : updateTime_; 3691 } else { 3692 return updateTimeBuilder_.getMessage(); 3693 } 3694 } 3695 /** 3696 * 3697 * 3698 * <pre> 3699 * Output only. Time when the HyperparameterTuningJob was most recently 3700 * updated. 3701 * </pre> 3702 * 3703 * <code> 3704 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3705 * </code> 3706 */ setUpdateTime(com.google.protobuf.Timestamp value)3707 public Builder setUpdateTime(com.google.protobuf.Timestamp value) { 3708 if (updateTimeBuilder_ == null) { 3709 if (value == null) { 3710 throw new NullPointerException(); 3711 } 3712 updateTime_ = value; 3713 } else { 3714 updateTimeBuilder_.setMessage(value); 3715 } 3716 bitField0_ |= 0x00001000; 3717 onChanged(); 3718 return this; 3719 } 3720 /** 3721 * 3722 * 3723 * <pre> 3724 * Output only. Time when the HyperparameterTuningJob was most recently 3725 * updated. 3726 * </pre> 3727 * 3728 * <code> 3729 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3730 * </code> 3731 */ setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)3732 public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3733 if (updateTimeBuilder_ == null) { 3734 updateTime_ = builderForValue.build(); 3735 } else { 3736 updateTimeBuilder_.setMessage(builderForValue.build()); 3737 } 3738 bitField0_ |= 0x00001000; 3739 onChanged(); 3740 return this; 3741 } 3742 /** 3743 * 3744 * 3745 * <pre> 3746 * Output only. Time when the HyperparameterTuningJob was most recently 3747 * updated. 3748 * </pre> 3749 * 3750 * <code> 3751 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3752 * </code> 3753 */ mergeUpdateTime(com.google.protobuf.Timestamp value)3754 public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { 3755 if (updateTimeBuilder_ == null) { 3756 if (((bitField0_ & 0x00001000) != 0) 3757 && updateTime_ != null 3758 && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3759 getUpdateTimeBuilder().mergeFrom(value); 3760 } else { 3761 updateTime_ = value; 3762 } 3763 } else { 3764 updateTimeBuilder_.mergeFrom(value); 3765 } 3766 bitField0_ |= 0x00001000; 3767 onChanged(); 3768 return this; 3769 } 3770 /** 3771 * 3772 * 3773 * <pre> 3774 * Output only. Time when the HyperparameterTuningJob was most recently 3775 * updated. 3776 * </pre> 3777 * 3778 * <code> 3779 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3780 * </code> 3781 */ clearUpdateTime()3782 public Builder clearUpdateTime() { 3783 bitField0_ = (bitField0_ & ~0x00001000); 3784 updateTime_ = null; 3785 if (updateTimeBuilder_ != null) { 3786 updateTimeBuilder_.dispose(); 3787 updateTimeBuilder_ = null; 3788 } 3789 onChanged(); 3790 return this; 3791 } 3792 /** 3793 * 3794 * 3795 * <pre> 3796 * Output only. Time when the HyperparameterTuningJob was most recently 3797 * updated. 3798 * </pre> 3799 * 3800 * <code> 3801 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3802 * </code> 3803 */ getUpdateTimeBuilder()3804 public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { 3805 bitField0_ |= 0x00001000; 3806 onChanged(); 3807 return getUpdateTimeFieldBuilder().getBuilder(); 3808 } 3809 /** 3810 * 3811 * 3812 * <pre> 3813 * Output only. Time when the HyperparameterTuningJob was most recently 3814 * updated. 3815 * </pre> 3816 * 3817 * <code> 3818 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3819 * </code> 3820 */ getUpdateTimeOrBuilder()3821 public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 3822 if (updateTimeBuilder_ != null) { 3823 return updateTimeBuilder_.getMessageOrBuilder(); 3824 } else { 3825 return updateTime_ == null 3826 ? com.google.protobuf.Timestamp.getDefaultInstance() 3827 : updateTime_; 3828 } 3829 } 3830 /** 3831 * 3832 * 3833 * <pre> 3834 * Output only. Time when the HyperparameterTuningJob was most recently 3835 * updated. 3836 * </pre> 3837 * 3838 * <code> 3839 * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3840 * </code> 3841 */ 3842 private com.google.protobuf.SingleFieldBuilderV3< 3843 com.google.protobuf.Timestamp, 3844 com.google.protobuf.Timestamp.Builder, 3845 com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder()3846 getUpdateTimeFieldBuilder() { 3847 if (updateTimeBuilder_ == null) { 3848 updateTimeBuilder_ = 3849 new com.google.protobuf.SingleFieldBuilderV3< 3850 com.google.protobuf.Timestamp, 3851 com.google.protobuf.Timestamp.Builder, 3852 com.google.protobuf.TimestampOrBuilder>( 3853 getUpdateTime(), getParentForChildren(), isClean()); 3854 updateTime_ = null; 3855 } 3856 return updateTimeBuilder_; 3857 } 3858 3859 private com.google.rpc.Status error_; 3860 private com.google.protobuf.SingleFieldBuilderV3< 3861 com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 3862 errorBuilder_; 3863 /** 3864 * 3865 * 3866 * <pre> 3867 * Output only. Only populated when job's state is JOB_STATE_FAILED or 3868 * JOB_STATE_CANCELLED. 3869 * </pre> 3870 * 3871 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3872 * 3873 * @return Whether the error field is set. 3874 */ hasError()3875 public boolean hasError() { 3876 return ((bitField0_ & 0x00002000) != 0); 3877 } 3878 /** 3879 * 3880 * 3881 * <pre> 3882 * Output only. Only populated when job's state is JOB_STATE_FAILED or 3883 * JOB_STATE_CANCELLED. 3884 * </pre> 3885 * 3886 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3887 * 3888 * @return The error. 3889 */ getError()3890 public com.google.rpc.Status getError() { 3891 if (errorBuilder_ == null) { 3892 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; 3893 } else { 3894 return errorBuilder_.getMessage(); 3895 } 3896 } 3897 /** 3898 * 3899 * 3900 * <pre> 3901 * Output only. Only populated when job's state is JOB_STATE_FAILED or 3902 * JOB_STATE_CANCELLED. 3903 * </pre> 3904 * 3905 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3906 */ setError(com.google.rpc.Status value)3907 public Builder setError(com.google.rpc.Status value) { 3908 if (errorBuilder_ == null) { 3909 if (value == null) { 3910 throw new NullPointerException(); 3911 } 3912 error_ = value; 3913 } else { 3914 errorBuilder_.setMessage(value); 3915 } 3916 bitField0_ |= 0x00002000; 3917 onChanged(); 3918 return this; 3919 } 3920 /** 3921 * 3922 * 3923 * <pre> 3924 * Output only. Only populated when job's state is JOB_STATE_FAILED or 3925 * JOB_STATE_CANCELLED. 3926 * </pre> 3927 * 3928 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3929 */ setError(com.google.rpc.Status.Builder builderForValue)3930 public Builder setError(com.google.rpc.Status.Builder builderForValue) { 3931 if (errorBuilder_ == null) { 3932 error_ = builderForValue.build(); 3933 } else { 3934 errorBuilder_.setMessage(builderForValue.build()); 3935 } 3936 bitField0_ |= 0x00002000; 3937 onChanged(); 3938 return this; 3939 } 3940 /** 3941 * 3942 * 3943 * <pre> 3944 * Output only. Only populated when job's state is JOB_STATE_FAILED or 3945 * JOB_STATE_CANCELLED. 3946 * </pre> 3947 * 3948 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3949 */ mergeError(com.google.rpc.Status value)3950 public Builder mergeError(com.google.rpc.Status value) { 3951 if (errorBuilder_ == null) { 3952 if (((bitField0_ & 0x00002000) != 0) 3953 && error_ != null 3954 && error_ != com.google.rpc.Status.getDefaultInstance()) { 3955 getErrorBuilder().mergeFrom(value); 3956 } else { 3957 error_ = value; 3958 } 3959 } else { 3960 errorBuilder_.mergeFrom(value); 3961 } 3962 bitField0_ |= 0x00002000; 3963 onChanged(); 3964 return this; 3965 } 3966 /** 3967 * 3968 * 3969 * <pre> 3970 * Output only. Only populated when job's state is JOB_STATE_FAILED or 3971 * JOB_STATE_CANCELLED. 3972 * </pre> 3973 * 3974 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3975 */ clearError()3976 public Builder clearError() { 3977 bitField0_ = (bitField0_ & ~0x00002000); 3978 error_ = null; 3979 if (errorBuilder_ != null) { 3980 errorBuilder_.dispose(); 3981 errorBuilder_ = null; 3982 } 3983 onChanged(); 3984 return this; 3985 } 3986 /** 3987 * 3988 * 3989 * <pre> 3990 * Output only. Only populated when job's state is JOB_STATE_FAILED or 3991 * JOB_STATE_CANCELLED. 3992 * </pre> 3993 * 3994 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3995 */ getErrorBuilder()3996 public com.google.rpc.Status.Builder getErrorBuilder() { 3997 bitField0_ |= 0x00002000; 3998 onChanged(); 3999 return getErrorFieldBuilder().getBuilder(); 4000 } 4001 /** 4002 * 4003 * 4004 * <pre> 4005 * Output only. Only populated when job's state is JOB_STATE_FAILED or 4006 * JOB_STATE_CANCELLED. 4007 * </pre> 4008 * 4009 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4010 */ getErrorOrBuilder()4011 public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { 4012 if (errorBuilder_ != null) { 4013 return errorBuilder_.getMessageOrBuilder(); 4014 } else { 4015 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; 4016 } 4017 } 4018 /** 4019 * 4020 * 4021 * <pre> 4022 * Output only. Only populated when job's state is JOB_STATE_FAILED or 4023 * JOB_STATE_CANCELLED. 4024 * </pre> 4025 * 4026 * <code>.google.rpc.Status error = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4027 */ 4028 private com.google.protobuf.SingleFieldBuilderV3< 4029 com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder()4030 getErrorFieldBuilder() { 4031 if (errorBuilder_ == null) { 4032 errorBuilder_ = 4033 new com.google.protobuf.SingleFieldBuilderV3< 4034 com.google.rpc.Status, 4035 com.google.rpc.Status.Builder, 4036 com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); 4037 error_ = null; 4038 } 4039 return errorBuilder_; 4040 } 4041 4042 private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; 4043 internalGetLabels()4044 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { 4045 if (labels_ == null) { 4046 return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); 4047 } 4048 return labels_; 4049 } 4050 4051 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels()4052 internalGetMutableLabels() { 4053 if (labels_ == null) { 4054 labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); 4055 } 4056 if (!labels_.isMutable()) { 4057 labels_ = labels_.copy(); 4058 } 4059 bitField0_ |= 0x00004000; 4060 onChanged(); 4061 return labels_; 4062 } 4063 getLabelsCount()4064 public int getLabelsCount() { 4065 return internalGetLabels().getMap().size(); 4066 } 4067 /** 4068 * 4069 * 4070 * <pre> 4071 * The labels with user-defined metadata to organize HyperparameterTuningJobs. 4072 * Label keys and values can be no longer than 64 characters 4073 * (Unicode codepoints), can only contain lowercase letters, numeric 4074 * characters, underscores and dashes. International characters are allowed. 4075 * See https://goo.gl/xmQnxf for more information and examples of labels. 4076 * </pre> 4077 * 4078 * <code>map<string, string> labels = 16;</code> 4079 */ 4080 @java.lang.Override containsLabels(java.lang.String key)4081 public boolean containsLabels(java.lang.String key) { 4082 if (key == null) { 4083 throw new NullPointerException("map key"); 4084 } 4085 return internalGetLabels().getMap().containsKey(key); 4086 } 4087 /** Use {@link #getLabelsMap()} instead. */ 4088 @java.lang.Override 4089 @java.lang.Deprecated getLabels()4090 public java.util.Map<java.lang.String, java.lang.String> getLabels() { 4091 return getLabelsMap(); 4092 } 4093 /** 4094 * 4095 * 4096 * <pre> 4097 * The labels with user-defined metadata to organize HyperparameterTuningJobs. 4098 * Label keys and values can be no longer than 64 characters 4099 * (Unicode codepoints), can only contain lowercase letters, numeric 4100 * characters, underscores and dashes. International characters are allowed. 4101 * See https://goo.gl/xmQnxf for more information and examples of labels. 4102 * </pre> 4103 * 4104 * <code>map<string, string> labels = 16;</code> 4105 */ 4106 @java.lang.Override getLabelsMap()4107 public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { 4108 return internalGetLabels().getMap(); 4109 } 4110 /** 4111 * 4112 * 4113 * <pre> 4114 * The labels with user-defined metadata to organize HyperparameterTuningJobs. 4115 * Label keys and values can be no longer than 64 characters 4116 * (Unicode codepoints), can only contain lowercase letters, numeric 4117 * characters, underscores and dashes. International characters are allowed. 4118 * See https://goo.gl/xmQnxf for more information and examples of labels. 4119 * </pre> 4120 * 4121 * <code>map<string, string> labels = 16;</code> 4122 */ 4123 @java.lang.Override getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)4124 public /* nullable */ java.lang.String getLabelsOrDefault( 4125 java.lang.String key, 4126 /* nullable */ 4127 java.lang.String defaultValue) { 4128 if (key == null) { 4129 throw new NullPointerException("map key"); 4130 } 4131 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 4132 return map.containsKey(key) ? map.get(key) : defaultValue; 4133 } 4134 /** 4135 * 4136 * 4137 * <pre> 4138 * The labels with user-defined metadata to organize HyperparameterTuningJobs. 4139 * Label keys and values can be no longer than 64 characters 4140 * (Unicode codepoints), can only contain lowercase letters, numeric 4141 * characters, underscores and dashes. International characters are allowed. 4142 * See https://goo.gl/xmQnxf for more information and examples of labels. 4143 * </pre> 4144 * 4145 * <code>map<string, string> labels = 16;</code> 4146 */ 4147 @java.lang.Override getLabelsOrThrow(java.lang.String key)4148 public java.lang.String getLabelsOrThrow(java.lang.String key) { 4149 if (key == null) { 4150 throw new NullPointerException("map key"); 4151 } 4152 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 4153 if (!map.containsKey(key)) { 4154 throw new java.lang.IllegalArgumentException(); 4155 } 4156 return map.get(key); 4157 } 4158 clearLabels()4159 public Builder clearLabels() { 4160 bitField0_ = (bitField0_ & ~0x00004000); 4161 internalGetMutableLabels().getMutableMap().clear(); 4162 return this; 4163 } 4164 /** 4165 * 4166 * 4167 * <pre> 4168 * The labels with user-defined metadata to organize HyperparameterTuningJobs. 4169 * Label keys and values can be no longer than 64 characters 4170 * (Unicode codepoints), can only contain lowercase letters, numeric 4171 * characters, underscores and dashes. International characters are allowed. 4172 * See https://goo.gl/xmQnxf for more information and examples of labels. 4173 * </pre> 4174 * 4175 * <code>map<string, string> labels = 16;</code> 4176 */ removeLabels(java.lang.String key)4177 public Builder removeLabels(java.lang.String key) { 4178 if (key == null) { 4179 throw new NullPointerException("map key"); 4180 } 4181 internalGetMutableLabels().getMutableMap().remove(key); 4182 return this; 4183 } 4184 /** Use alternate mutation accessors instead. */ 4185 @java.lang.Deprecated getMutableLabels()4186 public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { 4187 bitField0_ |= 0x00004000; 4188 return internalGetMutableLabels().getMutableMap(); 4189 } 4190 /** 4191 * 4192 * 4193 * <pre> 4194 * The labels with user-defined metadata to organize HyperparameterTuningJobs. 4195 * Label keys and values can be no longer than 64 characters 4196 * (Unicode codepoints), can only contain lowercase letters, numeric 4197 * characters, underscores and dashes. International characters are allowed. 4198 * See https://goo.gl/xmQnxf for more information and examples of labels. 4199 * </pre> 4200 * 4201 * <code>map<string, string> labels = 16;</code> 4202 */ putLabels(java.lang.String key, java.lang.String value)4203 public Builder putLabels(java.lang.String key, java.lang.String value) { 4204 if (key == null) { 4205 throw new NullPointerException("map key"); 4206 } 4207 if (value == null) { 4208 throw new NullPointerException("map value"); 4209 } 4210 internalGetMutableLabels().getMutableMap().put(key, value); 4211 bitField0_ |= 0x00004000; 4212 return this; 4213 } 4214 /** 4215 * 4216 * 4217 * <pre> 4218 * The labels with user-defined metadata to organize HyperparameterTuningJobs. 4219 * Label keys and values can be no longer than 64 characters 4220 * (Unicode codepoints), can only contain lowercase letters, numeric 4221 * characters, underscores and dashes. International characters are allowed. 4222 * See https://goo.gl/xmQnxf for more information and examples of labels. 4223 * </pre> 4224 * 4225 * <code>map<string, string> labels = 16;</code> 4226 */ putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)4227 public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { 4228 internalGetMutableLabels().getMutableMap().putAll(values); 4229 bitField0_ |= 0x00004000; 4230 return this; 4231 } 4232 4233 private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; 4234 private com.google.protobuf.SingleFieldBuilderV3< 4235 com.google.cloud.aiplatform.v1.EncryptionSpec, 4236 com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, 4237 com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> 4238 encryptionSpecBuilder_; 4239 /** 4240 * 4241 * 4242 * <pre> 4243 * Customer-managed encryption key options for a HyperparameterTuningJob. 4244 * If this is set, then all resources created by the HyperparameterTuningJob 4245 * will be encrypted with the provided encryption key. 4246 * </pre> 4247 * 4248 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4249 * 4250 * @return Whether the encryptionSpec field is set. 4251 */ hasEncryptionSpec()4252 public boolean hasEncryptionSpec() { 4253 return ((bitField0_ & 0x00008000) != 0); 4254 } 4255 /** 4256 * 4257 * 4258 * <pre> 4259 * Customer-managed encryption key options for a HyperparameterTuningJob. 4260 * If this is set, then all resources created by the HyperparameterTuningJob 4261 * will be encrypted with the provided encryption key. 4262 * </pre> 4263 * 4264 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4265 * 4266 * @return The encryptionSpec. 4267 */ getEncryptionSpec()4268 public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { 4269 if (encryptionSpecBuilder_ == null) { 4270 return encryptionSpec_ == null 4271 ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() 4272 : encryptionSpec_; 4273 } else { 4274 return encryptionSpecBuilder_.getMessage(); 4275 } 4276 } 4277 /** 4278 * 4279 * 4280 * <pre> 4281 * Customer-managed encryption key options for a HyperparameterTuningJob. 4282 * If this is set, then all resources created by the HyperparameterTuningJob 4283 * will be encrypted with the provided encryption key. 4284 * </pre> 4285 * 4286 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4287 */ setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value)4288 public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { 4289 if (encryptionSpecBuilder_ == null) { 4290 if (value == null) { 4291 throw new NullPointerException(); 4292 } 4293 encryptionSpec_ = value; 4294 } else { 4295 encryptionSpecBuilder_.setMessage(value); 4296 } 4297 bitField0_ |= 0x00008000; 4298 onChanged(); 4299 return this; 4300 } 4301 /** 4302 * 4303 * 4304 * <pre> 4305 * Customer-managed encryption key options for a HyperparameterTuningJob. 4306 * If this is set, then all resources created by the HyperparameterTuningJob 4307 * will be encrypted with the provided encryption key. 4308 * </pre> 4309 * 4310 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4311 */ setEncryptionSpec( com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue)4312 public Builder setEncryptionSpec( 4313 com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { 4314 if (encryptionSpecBuilder_ == null) { 4315 encryptionSpec_ = builderForValue.build(); 4316 } else { 4317 encryptionSpecBuilder_.setMessage(builderForValue.build()); 4318 } 4319 bitField0_ |= 0x00008000; 4320 onChanged(); 4321 return this; 4322 } 4323 /** 4324 * 4325 * 4326 * <pre> 4327 * Customer-managed encryption key options for a HyperparameterTuningJob. 4328 * If this is set, then all resources created by the HyperparameterTuningJob 4329 * will be encrypted with the provided encryption key. 4330 * </pre> 4331 * 4332 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4333 */ mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value)4334 public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { 4335 if (encryptionSpecBuilder_ == null) { 4336 if (((bitField0_ & 0x00008000) != 0) 4337 && encryptionSpec_ != null 4338 && encryptionSpec_ 4339 != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { 4340 getEncryptionSpecBuilder().mergeFrom(value); 4341 } else { 4342 encryptionSpec_ = value; 4343 } 4344 } else { 4345 encryptionSpecBuilder_.mergeFrom(value); 4346 } 4347 bitField0_ |= 0x00008000; 4348 onChanged(); 4349 return this; 4350 } 4351 /** 4352 * 4353 * 4354 * <pre> 4355 * Customer-managed encryption key options for a HyperparameterTuningJob. 4356 * If this is set, then all resources created by the HyperparameterTuningJob 4357 * will be encrypted with the provided encryption key. 4358 * </pre> 4359 * 4360 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4361 */ clearEncryptionSpec()4362 public Builder clearEncryptionSpec() { 4363 bitField0_ = (bitField0_ & ~0x00008000); 4364 encryptionSpec_ = null; 4365 if (encryptionSpecBuilder_ != null) { 4366 encryptionSpecBuilder_.dispose(); 4367 encryptionSpecBuilder_ = null; 4368 } 4369 onChanged(); 4370 return this; 4371 } 4372 /** 4373 * 4374 * 4375 * <pre> 4376 * Customer-managed encryption key options for a HyperparameterTuningJob. 4377 * If this is set, then all resources created by the HyperparameterTuningJob 4378 * will be encrypted with the provided encryption key. 4379 * </pre> 4380 * 4381 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4382 */ getEncryptionSpecBuilder()4383 public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { 4384 bitField0_ |= 0x00008000; 4385 onChanged(); 4386 return getEncryptionSpecFieldBuilder().getBuilder(); 4387 } 4388 /** 4389 * 4390 * 4391 * <pre> 4392 * Customer-managed encryption key options for a HyperparameterTuningJob. 4393 * If this is set, then all resources created by the HyperparameterTuningJob 4394 * will be encrypted with the provided encryption key. 4395 * </pre> 4396 * 4397 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4398 */ getEncryptionSpecOrBuilder()4399 public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { 4400 if (encryptionSpecBuilder_ != null) { 4401 return encryptionSpecBuilder_.getMessageOrBuilder(); 4402 } else { 4403 return encryptionSpec_ == null 4404 ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() 4405 : encryptionSpec_; 4406 } 4407 } 4408 /** 4409 * 4410 * 4411 * <pre> 4412 * Customer-managed encryption key options for a HyperparameterTuningJob. 4413 * If this is set, then all resources created by the HyperparameterTuningJob 4414 * will be encrypted with the provided encryption key. 4415 * </pre> 4416 * 4417 * <code>.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 17;</code> 4418 */ 4419 private com.google.protobuf.SingleFieldBuilderV3< 4420 com.google.cloud.aiplatform.v1.EncryptionSpec, 4421 com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, 4422 com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> getEncryptionSpecFieldBuilder()4423 getEncryptionSpecFieldBuilder() { 4424 if (encryptionSpecBuilder_ == null) { 4425 encryptionSpecBuilder_ = 4426 new com.google.protobuf.SingleFieldBuilderV3< 4427 com.google.cloud.aiplatform.v1.EncryptionSpec, 4428 com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, 4429 com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder>( 4430 getEncryptionSpec(), getParentForChildren(), isClean()); 4431 encryptionSpec_ = null; 4432 } 4433 return encryptionSpecBuilder_; 4434 } 4435 4436 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4437 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 4438 return super.setUnknownFields(unknownFields); 4439 } 4440 4441 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4442 public final Builder mergeUnknownFields( 4443 final com.google.protobuf.UnknownFieldSet unknownFields) { 4444 return super.mergeUnknownFields(unknownFields); 4445 } 4446 4447 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.HyperparameterTuningJob) 4448 } 4449 4450 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.HyperparameterTuningJob) 4451 private static final com.google.cloud.aiplatform.v1.HyperparameterTuningJob DEFAULT_INSTANCE; 4452 4453 static { 4454 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.HyperparameterTuningJob(); 4455 } 4456 getDefaultInstance()4457 public static com.google.cloud.aiplatform.v1.HyperparameterTuningJob getDefaultInstance() { 4458 return DEFAULT_INSTANCE; 4459 } 4460 4461 private static final com.google.protobuf.Parser<HyperparameterTuningJob> PARSER = 4462 new com.google.protobuf.AbstractParser<HyperparameterTuningJob>() { 4463 @java.lang.Override 4464 public HyperparameterTuningJob parsePartialFrom( 4465 com.google.protobuf.CodedInputStream input, 4466 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4467 throws com.google.protobuf.InvalidProtocolBufferException { 4468 Builder builder = newBuilder(); 4469 try { 4470 builder.mergeFrom(input, extensionRegistry); 4471 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4472 throw e.setUnfinishedMessage(builder.buildPartial()); 4473 } catch (com.google.protobuf.UninitializedMessageException e) { 4474 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 4475 } catch (java.io.IOException e) { 4476 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4477 .setUnfinishedMessage(builder.buildPartial()); 4478 } 4479 return builder.buildPartial(); 4480 } 4481 }; 4482 parser()4483 public static com.google.protobuf.Parser<HyperparameterTuningJob> parser() { 4484 return PARSER; 4485 } 4486 4487 @java.lang.Override getParserForType()4488 public com.google.protobuf.Parser<HyperparameterTuningJob> getParserForType() { 4489 return PARSER; 4490 } 4491 4492 @java.lang.Override getDefaultInstanceForType()4493 public com.google.cloud.aiplatform.v1.HyperparameterTuningJob getDefaultInstanceForType() { 4494 return DEFAULT_INSTANCE; 4495 } 4496 } 4497