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