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