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/dataset.proto 18 19 package com.google.cloud.aiplatform.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Describes the location from where we import data into a Dataset, together 26 * with the labels that will be applied to the DataItems and the Annotations. 27 * </pre> 28 * 29 * Protobuf type {@code google.cloud.aiplatform.v1.ImportDataConfig} 30 */ 31 public final class ImportDataConfig extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImportDataConfig) 34 ImportDataConfigOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use ImportDataConfig.newBuilder() to construct. ImportDataConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private ImportDataConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 ImportDataConfig()41 private ImportDataConfig() { 42 importSchemaUri_ = ""; 43 } 44 45 @java.lang.Override 46 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)47 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 48 return new ImportDataConfig(); 49 } 50 51 @java.lang.Override getUnknownFields()52 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 53 return this.unknownFields; 54 } 55 getDescriptor()56 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 57 return com.google.cloud.aiplatform.v1.DatasetProto 58 .internal_static_google_cloud_aiplatform_v1_ImportDataConfig_descriptor; 59 } 60 61 @SuppressWarnings({"rawtypes"}) 62 @java.lang.Override internalGetMapField(int number)63 protected com.google.protobuf.MapField internalGetMapField(int number) { 64 switch (number) { 65 case 2: 66 return internalGetDataItemLabels(); 67 case 3: 68 return internalGetAnnotationLabels(); 69 default: 70 throw new RuntimeException("Invalid map field number: " + number); 71 } 72 } 73 74 @java.lang.Override 75 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()76 internalGetFieldAccessorTable() { 77 return com.google.cloud.aiplatform.v1.DatasetProto 78 .internal_static_google_cloud_aiplatform_v1_ImportDataConfig_fieldAccessorTable 79 .ensureFieldAccessorsInitialized( 80 com.google.cloud.aiplatform.v1.ImportDataConfig.class, 81 com.google.cloud.aiplatform.v1.ImportDataConfig.Builder.class); 82 } 83 84 private int sourceCase_ = 0; 85 private java.lang.Object source_; 86 87 public enum SourceCase 88 implements 89 com.google.protobuf.Internal.EnumLite, 90 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 91 GCS_SOURCE(1), 92 SOURCE_NOT_SET(0); 93 private final int value; 94 SourceCase(int value)95 private SourceCase(int value) { 96 this.value = value; 97 } 98 /** 99 * @param value The number of the enum to look for. 100 * @return The enum associated with the given number. 101 * @deprecated Use {@link #forNumber(int)} instead. 102 */ 103 @java.lang.Deprecated valueOf(int value)104 public static SourceCase valueOf(int value) { 105 return forNumber(value); 106 } 107 forNumber(int value)108 public static SourceCase forNumber(int value) { 109 switch (value) { 110 case 1: 111 return GCS_SOURCE; 112 case 0: 113 return SOURCE_NOT_SET; 114 default: 115 return null; 116 } 117 } 118 getNumber()119 public int getNumber() { 120 return this.value; 121 } 122 }; 123 getSourceCase()124 public SourceCase getSourceCase() { 125 return SourceCase.forNumber(sourceCase_); 126 } 127 128 public static final int GCS_SOURCE_FIELD_NUMBER = 1; 129 /** 130 * 131 * 132 * <pre> 133 * The Google Cloud Storage location for the input content. 134 * </pre> 135 * 136 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 137 * 138 * @return Whether the gcsSource field is set. 139 */ 140 @java.lang.Override hasGcsSource()141 public boolean hasGcsSource() { 142 return sourceCase_ == 1; 143 } 144 /** 145 * 146 * 147 * <pre> 148 * The Google Cloud Storage location for the input content. 149 * </pre> 150 * 151 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 152 * 153 * @return The gcsSource. 154 */ 155 @java.lang.Override getGcsSource()156 public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { 157 if (sourceCase_ == 1) { 158 return (com.google.cloud.aiplatform.v1.GcsSource) source_; 159 } 160 return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); 161 } 162 /** 163 * 164 * 165 * <pre> 166 * The Google Cloud Storage location for the input content. 167 * </pre> 168 * 169 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 170 */ 171 @java.lang.Override getGcsSourceOrBuilder()172 public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { 173 if (sourceCase_ == 1) { 174 return (com.google.cloud.aiplatform.v1.GcsSource) source_; 175 } 176 return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); 177 } 178 179 public static final int DATA_ITEM_LABELS_FIELD_NUMBER = 2; 180 181 private static final class DataItemLabelsDefaultEntryHolder { 182 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 183 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 184 com.google.cloud.aiplatform.v1.DatasetProto 185 .internal_static_google_cloud_aiplatform_v1_ImportDataConfig_DataItemLabelsEntry_descriptor, 186 com.google.protobuf.WireFormat.FieldType.STRING, 187 "", 188 com.google.protobuf.WireFormat.FieldType.STRING, 189 ""); 190 } 191 192 @SuppressWarnings("serial") 193 private com.google.protobuf.MapField<java.lang.String, java.lang.String> dataItemLabels_; 194 195 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetDataItemLabels()196 internalGetDataItemLabels() { 197 if (dataItemLabels_ == null) { 198 return com.google.protobuf.MapField.emptyMapField( 199 DataItemLabelsDefaultEntryHolder.defaultEntry); 200 } 201 return dataItemLabels_; 202 } 203 getDataItemLabelsCount()204 public int getDataItemLabelsCount() { 205 return internalGetDataItemLabels().getMap().size(); 206 } 207 /** 208 * 209 * 210 * <pre> 211 * Labels that will be applied to newly imported DataItems. If an identical 212 * DataItem as one being imported already exists in the Dataset, then these 213 * labels will be appended to these of the already existing one, and if labels 214 * with identical key is imported before, the old label value will be 215 * overwritten. If two DataItems are identical in the same import data 216 * operation, the labels will be combined and if key collision happens in this 217 * case, one of the values will be picked randomly. Two DataItems are 218 * considered identical if their content bytes are identical (e.g. image bytes 219 * or pdf bytes). 220 * These labels will be overridden by Annotation labels specified inside index 221 * file referenced by 222 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 223 * e.g. jsonl file. 224 * </pre> 225 * 226 * <code>map<string, string> data_item_labels = 2;</code> 227 */ 228 @java.lang.Override containsDataItemLabels(java.lang.String key)229 public boolean containsDataItemLabels(java.lang.String key) { 230 if (key == null) { 231 throw new NullPointerException("map key"); 232 } 233 return internalGetDataItemLabels().getMap().containsKey(key); 234 } 235 /** Use {@link #getDataItemLabelsMap()} instead. */ 236 @java.lang.Override 237 @java.lang.Deprecated getDataItemLabels()238 public java.util.Map<java.lang.String, java.lang.String> getDataItemLabels() { 239 return getDataItemLabelsMap(); 240 } 241 /** 242 * 243 * 244 * <pre> 245 * Labels that will be applied to newly imported DataItems. If an identical 246 * DataItem as one being imported already exists in the Dataset, then these 247 * labels will be appended to these of the already existing one, and if labels 248 * with identical key is imported before, the old label value will be 249 * overwritten. If two DataItems are identical in the same import data 250 * operation, the labels will be combined and if key collision happens in this 251 * case, one of the values will be picked randomly. Two DataItems are 252 * considered identical if their content bytes are identical (e.g. image bytes 253 * or pdf bytes). 254 * These labels will be overridden by Annotation labels specified inside index 255 * file referenced by 256 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 257 * e.g. jsonl file. 258 * </pre> 259 * 260 * <code>map<string, string> data_item_labels = 2;</code> 261 */ 262 @java.lang.Override getDataItemLabelsMap()263 public java.util.Map<java.lang.String, java.lang.String> getDataItemLabelsMap() { 264 return internalGetDataItemLabels().getMap(); 265 } 266 /** 267 * 268 * 269 * <pre> 270 * Labels that will be applied to newly imported DataItems. If an identical 271 * DataItem as one being imported already exists in the Dataset, then these 272 * labels will be appended to these of the already existing one, and if labels 273 * with identical key is imported before, the old label value will be 274 * overwritten. If two DataItems are identical in the same import data 275 * operation, the labels will be combined and if key collision happens in this 276 * case, one of the values will be picked randomly. Two DataItems are 277 * considered identical if their content bytes are identical (e.g. image bytes 278 * or pdf bytes). 279 * These labels will be overridden by Annotation labels specified inside index 280 * file referenced by 281 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 282 * e.g. jsonl file. 283 * </pre> 284 * 285 * <code>map<string, string> data_item_labels = 2;</code> 286 */ 287 @java.lang.Override getDataItemLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)288 public /* nullable */ java.lang.String getDataItemLabelsOrDefault( 289 java.lang.String key, 290 /* nullable */ 291 java.lang.String defaultValue) { 292 if (key == null) { 293 throw new NullPointerException("map key"); 294 } 295 java.util.Map<java.lang.String, java.lang.String> map = internalGetDataItemLabels().getMap(); 296 return map.containsKey(key) ? map.get(key) : defaultValue; 297 } 298 /** 299 * 300 * 301 * <pre> 302 * Labels that will be applied to newly imported DataItems. If an identical 303 * DataItem as one being imported already exists in the Dataset, then these 304 * labels will be appended to these of the already existing one, and if labels 305 * with identical key is imported before, the old label value will be 306 * overwritten. If two DataItems are identical in the same import data 307 * operation, the labels will be combined and if key collision happens in this 308 * case, one of the values will be picked randomly. Two DataItems are 309 * considered identical if their content bytes are identical (e.g. image bytes 310 * or pdf bytes). 311 * These labels will be overridden by Annotation labels specified inside index 312 * file referenced by 313 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 314 * e.g. jsonl file. 315 * </pre> 316 * 317 * <code>map<string, string> data_item_labels = 2;</code> 318 */ 319 @java.lang.Override getDataItemLabelsOrThrow(java.lang.String key)320 public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { 321 if (key == null) { 322 throw new NullPointerException("map key"); 323 } 324 java.util.Map<java.lang.String, java.lang.String> map = internalGetDataItemLabels().getMap(); 325 if (!map.containsKey(key)) { 326 throw new java.lang.IllegalArgumentException(); 327 } 328 return map.get(key); 329 } 330 331 public static final int ANNOTATION_LABELS_FIELD_NUMBER = 3; 332 333 private static final class AnnotationLabelsDefaultEntryHolder { 334 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 335 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 336 com.google.cloud.aiplatform.v1.DatasetProto 337 .internal_static_google_cloud_aiplatform_v1_ImportDataConfig_AnnotationLabelsEntry_descriptor, 338 com.google.protobuf.WireFormat.FieldType.STRING, 339 "", 340 com.google.protobuf.WireFormat.FieldType.STRING, 341 ""); 342 } 343 344 @SuppressWarnings("serial") 345 private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotationLabels_; 346 347 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetAnnotationLabels()348 internalGetAnnotationLabels() { 349 if (annotationLabels_ == null) { 350 return com.google.protobuf.MapField.emptyMapField( 351 AnnotationLabelsDefaultEntryHolder.defaultEntry); 352 } 353 return annotationLabels_; 354 } 355 getAnnotationLabelsCount()356 public int getAnnotationLabelsCount() { 357 return internalGetAnnotationLabels().getMap().size(); 358 } 359 /** 360 * 361 * 362 * <pre> 363 * Labels that will be applied to newly imported Annotations. If two 364 * Annotations are identical, one of them will be deduped. Two Annotations are 365 * considered identical if their 366 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 367 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 368 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 369 * the same. These labels will be overridden by Annotation labels specified 370 * inside index file referenced by 371 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 372 * e.g. jsonl file. 373 * </pre> 374 * 375 * <code>map<string, string> annotation_labels = 3;</code> 376 */ 377 @java.lang.Override containsAnnotationLabels(java.lang.String key)378 public boolean containsAnnotationLabels(java.lang.String key) { 379 if (key == null) { 380 throw new NullPointerException("map key"); 381 } 382 return internalGetAnnotationLabels().getMap().containsKey(key); 383 } 384 /** Use {@link #getAnnotationLabelsMap()} instead. */ 385 @java.lang.Override 386 @java.lang.Deprecated getAnnotationLabels()387 public java.util.Map<java.lang.String, java.lang.String> getAnnotationLabels() { 388 return getAnnotationLabelsMap(); 389 } 390 /** 391 * 392 * 393 * <pre> 394 * Labels that will be applied to newly imported Annotations. If two 395 * Annotations are identical, one of them will be deduped. Two Annotations are 396 * considered identical if their 397 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 398 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 399 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 400 * the same. These labels will be overridden by Annotation labels specified 401 * inside index file referenced by 402 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 403 * e.g. jsonl file. 404 * </pre> 405 * 406 * <code>map<string, string> annotation_labels = 3;</code> 407 */ 408 @java.lang.Override getAnnotationLabelsMap()409 public java.util.Map<java.lang.String, java.lang.String> getAnnotationLabelsMap() { 410 return internalGetAnnotationLabels().getMap(); 411 } 412 /** 413 * 414 * 415 * <pre> 416 * Labels that will be applied to newly imported Annotations. If two 417 * Annotations are identical, one of them will be deduped. Two Annotations are 418 * considered identical if their 419 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 420 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 421 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 422 * the same. These labels will be overridden by Annotation labels specified 423 * inside index file referenced by 424 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 425 * e.g. jsonl file. 426 * </pre> 427 * 428 * <code>map<string, string> annotation_labels = 3;</code> 429 */ 430 @java.lang.Override getAnnotationLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)431 public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( 432 java.lang.String key, 433 /* nullable */ 434 java.lang.String defaultValue) { 435 if (key == null) { 436 throw new NullPointerException("map key"); 437 } 438 java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotationLabels().getMap(); 439 return map.containsKey(key) ? map.get(key) : defaultValue; 440 } 441 /** 442 * 443 * 444 * <pre> 445 * Labels that will be applied to newly imported Annotations. If two 446 * Annotations are identical, one of them will be deduped. Two Annotations are 447 * considered identical if their 448 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 449 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 450 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 451 * the same. These labels will be overridden by Annotation labels specified 452 * inside index file referenced by 453 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 454 * e.g. jsonl file. 455 * </pre> 456 * 457 * <code>map<string, string> annotation_labels = 3;</code> 458 */ 459 @java.lang.Override getAnnotationLabelsOrThrow(java.lang.String key)460 public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { 461 if (key == null) { 462 throw new NullPointerException("map key"); 463 } 464 java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotationLabels().getMap(); 465 if (!map.containsKey(key)) { 466 throw new java.lang.IllegalArgumentException(); 467 } 468 return map.get(key); 469 } 470 471 public static final int IMPORT_SCHEMA_URI_FIELD_NUMBER = 4; 472 473 @SuppressWarnings("serial") 474 private volatile java.lang.Object importSchemaUri_ = ""; 475 /** 476 * 477 * 478 * <pre> 479 * Required. Points to a YAML file stored on Google Cloud Storage describing 480 * the import format. Validation will be done against the schema. The schema 481 * is defined as an [OpenAPI 3.0.2 Schema 482 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 483 * </pre> 484 * 485 * <code>string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];</code> 486 * 487 * @return The importSchemaUri. 488 */ 489 @java.lang.Override getImportSchemaUri()490 public java.lang.String getImportSchemaUri() { 491 java.lang.Object ref = importSchemaUri_; 492 if (ref instanceof java.lang.String) { 493 return (java.lang.String) ref; 494 } else { 495 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 496 java.lang.String s = bs.toStringUtf8(); 497 importSchemaUri_ = s; 498 return s; 499 } 500 } 501 /** 502 * 503 * 504 * <pre> 505 * Required. Points to a YAML file stored on Google Cloud Storage describing 506 * the import format. Validation will be done against the schema. The schema 507 * is defined as an [OpenAPI 3.0.2 Schema 508 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 509 * </pre> 510 * 511 * <code>string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];</code> 512 * 513 * @return The bytes for importSchemaUri. 514 */ 515 @java.lang.Override getImportSchemaUriBytes()516 public com.google.protobuf.ByteString getImportSchemaUriBytes() { 517 java.lang.Object ref = importSchemaUri_; 518 if (ref instanceof java.lang.String) { 519 com.google.protobuf.ByteString b = 520 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 521 importSchemaUri_ = b; 522 return b; 523 } else { 524 return (com.google.protobuf.ByteString) ref; 525 } 526 } 527 528 private byte memoizedIsInitialized = -1; 529 530 @java.lang.Override isInitialized()531 public final boolean isInitialized() { 532 byte isInitialized = memoizedIsInitialized; 533 if (isInitialized == 1) return true; 534 if (isInitialized == 0) return false; 535 536 memoizedIsInitialized = 1; 537 return true; 538 } 539 540 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)541 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 542 if (sourceCase_ == 1) { 543 output.writeMessage(1, (com.google.cloud.aiplatform.v1.GcsSource) source_); 544 } 545 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 546 output, internalGetDataItemLabels(), DataItemLabelsDefaultEntryHolder.defaultEntry, 2); 547 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 548 output, internalGetAnnotationLabels(), AnnotationLabelsDefaultEntryHolder.defaultEntry, 3); 549 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importSchemaUri_)) { 550 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, importSchemaUri_); 551 } 552 getUnknownFields().writeTo(output); 553 } 554 555 @java.lang.Override getSerializedSize()556 public int getSerializedSize() { 557 int size = memoizedSize; 558 if (size != -1) return size; 559 560 size = 0; 561 if (sourceCase_ == 1) { 562 size += 563 com.google.protobuf.CodedOutputStream.computeMessageSize( 564 1, (com.google.cloud.aiplatform.v1.GcsSource) source_); 565 } 566 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 567 internalGetDataItemLabels().getMap().entrySet()) { 568 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> dataItemLabels__ = 569 DataItemLabelsDefaultEntryHolder.defaultEntry 570 .newBuilderForType() 571 .setKey(entry.getKey()) 572 .setValue(entry.getValue()) 573 .build(); 574 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataItemLabels__); 575 } 576 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 577 internalGetAnnotationLabels().getMap().entrySet()) { 578 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> annotationLabels__ = 579 AnnotationLabelsDefaultEntryHolder.defaultEntry 580 .newBuilderForType() 581 .setKey(entry.getKey()) 582 .setValue(entry.getValue()) 583 .build(); 584 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, annotationLabels__); 585 } 586 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importSchemaUri_)) { 587 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, importSchemaUri_); 588 } 589 size += getUnknownFields().getSerializedSize(); 590 memoizedSize = size; 591 return size; 592 } 593 594 @java.lang.Override equals(final java.lang.Object obj)595 public boolean equals(final java.lang.Object obj) { 596 if (obj == this) { 597 return true; 598 } 599 if (!(obj instanceof com.google.cloud.aiplatform.v1.ImportDataConfig)) { 600 return super.equals(obj); 601 } 602 com.google.cloud.aiplatform.v1.ImportDataConfig other = 603 (com.google.cloud.aiplatform.v1.ImportDataConfig) obj; 604 605 if (!internalGetDataItemLabels().equals(other.internalGetDataItemLabels())) return false; 606 if (!internalGetAnnotationLabels().equals(other.internalGetAnnotationLabels())) return false; 607 if (!getImportSchemaUri().equals(other.getImportSchemaUri())) return false; 608 if (!getSourceCase().equals(other.getSourceCase())) return false; 609 switch (sourceCase_) { 610 case 1: 611 if (!getGcsSource().equals(other.getGcsSource())) return false; 612 break; 613 case 0: 614 default: 615 } 616 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 617 return true; 618 } 619 620 @java.lang.Override hashCode()621 public int hashCode() { 622 if (memoizedHashCode != 0) { 623 return memoizedHashCode; 624 } 625 int hash = 41; 626 hash = (19 * hash) + getDescriptor().hashCode(); 627 if (!internalGetDataItemLabels().getMap().isEmpty()) { 628 hash = (37 * hash) + DATA_ITEM_LABELS_FIELD_NUMBER; 629 hash = (53 * hash) + internalGetDataItemLabels().hashCode(); 630 } 631 if (!internalGetAnnotationLabels().getMap().isEmpty()) { 632 hash = (37 * hash) + ANNOTATION_LABELS_FIELD_NUMBER; 633 hash = (53 * hash) + internalGetAnnotationLabels().hashCode(); 634 } 635 hash = (37 * hash) + IMPORT_SCHEMA_URI_FIELD_NUMBER; 636 hash = (53 * hash) + getImportSchemaUri().hashCode(); 637 switch (sourceCase_) { 638 case 1: 639 hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; 640 hash = (53 * hash) + getGcsSource().hashCode(); 641 break; 642 case 0: 643 default: 644 } 645 hash = (29 * hash) + getUnknownFields().hashCode(); 646 memoizedHashCode = hash; 647 return hash; 648 } 649 parseFrom(java.nio.ByteBuffer data)650 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom(java.nio.ByteBuffer data) 651 throws com.google.protobuf.InvalidProtocolBufferException { 652 return PARSER.parseFrom(data); 653 } 654 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)655 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom( 656 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 657 throws com.google.protobuf.InvalidProtocolBufferException { 658 return PARSER.parseFrom(data, extensionRegistry); 659 } 660 parseFrom( com.google.protobuf.ByteString data)661 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom( 662 com.google.protobuf.ByteString data) 663 throws com.google.protobuf.InvalidProtocolBufferException { 664 return PARSER.parseFrom(data); 665 } 666 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)667 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom( 668 com.google.protobuf.ByteString data, 669 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 670 throws com.google.protobuf.InvalidProtocolBufferException { 671 return PARSER.parseFrom(data, extensionRegistry); 672 } 673 parseFrom(byte[] data)674 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom(byte[] data) 675 throws com.google.protobuf.InvalidProtocolBufferException { 676 return PARSER.parseFrom(data); 677 } 678 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)679 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom( 680 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 681 throws com.google.protobuf.InvalidProtocolBufferException { 682 return PARSER.parseFrom(data, extensionRegistry); 683 } 684 parseFrom(java.io.InputStream input)685 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom(java.io.InputStream input) 686 throws java.io.IOException { 687 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 688 } 689 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)690 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom( 691 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 692 throws java.io.IOException { 693 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 694 PARSER, input, extensionRegistry); 695 } 696 parseDelimitedFrom( java.io.InputStream input)697 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseDelimitedFrom( 698 java.io.InputStream input) throws java.io.IOException { 699 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 700 } 701 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)702 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseDelimitedFrom( 703 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 704 throws java.io.IOException { 705 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 706 PARSER, input, extensionRegistry); 707 } 708 parseFrom( com.google.protobuf.CodedInputStream input)709 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom( 710 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 711 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 712 } 713 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)714 public static com.google.cloud.aiplatform.v1.ImportDataConfig parseFrom( 715 com.google.protobuf.CodedInputStream input, 716 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 717 throws java.io.IOException { 718 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 719 PARSER, input, extensionRegistry); 720 } 721 722 @java.lang.Override newBuilderForType()723 public Builder newBuilderForType() { 724 return newBuilder(); 725 } 726 newBuilder()727 public static Builder newBuilder() { 728 return DEFAULT_INSTANCE.toBuilder(); 729 } 730 newBuilder(com.google.cloud.aiplatform.v1.ImportDataConfig prototype)731 public static Builder newBuilder(com.google.cloud.aiplatform.v1.ImportDataConfig prototype) { 732 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 733 } 734 735 @java.lang.Override toBuilder()736 public Builder toBuilder() { 737 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 738 } 739 740 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)741 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 742 Builder builder = new Builder(parent); 743 return builder; 744 } 745 /** 746 * 747 * 748 * <pre> 749 * Describes the location from where we import data into a Dataset, together 750 * with the labels that will be applied to the DataItems and the Annotations. 751 * </pre> 752 * 753 * Protobuf type {@code google.cloud.aiplatform.v1.ImportDataConfig} 754 */ 755 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 756 implements 757 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ImportDataConfig) 758 com.google.cloud.aiplatform.v1.ImportDataConfigOrBuilder { getDescriptor()759 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 760 return com.google.cloud.aiplatform.v1.DatasetProto 761 .internal_static_google_cloud_aiplatform_v1_ImportDataConfig_descriptor; 762 } 763 764 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)765 protected com.google.protobuf.MapField internalGetMapField(int number) { 766 switch (number) { 767 case 2: 768 return internalGetDataItemLabels(); 769 case 3: 770 return internalGetAnnotationLabels(); 771 default: 772 throw new RuntimeException("Invalid map field number: " + number); 773 } 774 } 775 776 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)777 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 778 switch (number) { 779 case 2: 780 return internalGetMutableDataItemLabels(); 781 case 3: 782 return internalGetMutableAnnotationLabels(); 783 default: 784 throw new RuntimeException("Invalid map field number: " + number); 785 } 786 } 787 788 @java.lang.Override 789 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()790 internalGetFieldAccessorTable() { 791 return com.google.cloud.aiplatform.v1.DatasetProto 792 .internal_static_google_cloud_aiplatform_v1_ImportDataConfig_fieldAccessorTable 793 .ensureFieldAccessorsInitialized( 794 com.google.cloud.aiplatform.v1.ImportDataConfig.class, 795 com.google.cloud.aiplatform.v1.ImportDataConfig.Builder.class); 796 } 797 798 // Construct using com.google.cloud.aiplatform.v1.ImportDataConfig.newBuilder() Builder()799 private Builder() {} 800 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)801 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 802 super(parent); 803 } 804 805 @java.lang.Override clear()806 public Builder clear() { 807 super.clear(); 808 bitField0_ = 0; 809 if (gcsSourceBuilder_ != null) { 810 gcsSourceBuilder_.clear(); 811 } 812 internalGetMutableDataItemLabels().clear(); 813 internalGetMutableAnnotationLabels().clear(); 814 importSchemaUri_ = ""; 815 sourceCase_ = 0; 816 source_ = null; 817 return this; 818 } 819 820 @java.lang.Override getDescriptorForType()821 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 822 return com.google.cloud.aiplatform.v1.DatasetProto 823 .internal_static_google_cloud_aiplatform_v1_ImportDataConfig_descriptor; 824 } 825 826 @java.lang.Override getDefaultInstanceForType()827 public com.google.cloud.aiplatform.v1.ImportDataConfig getDefaultInstanceForType() { 828 return com.google.cloud.aiplatform.v1.ImportDataConfig.getDefaultInstance(); 829 } 830 831 @java.lang.Override build()832 public com.google.cloud.aiplatform.v1.ImportDataConfig build() { 833 com.google.cloud.aiplatform.v1.ImportDataConfig result = buildPartial(); 834 if (!result.isInitialized()) { 835 throw newUninitializedMessageException(result); 836 } 837 return result; 838 } 839 840 @java.lang.Override buildPartial()841 public com.google.cloud.aiplatform.v1.ImportDataConfig buildPartial() { 842 com.google.cloud.aiplatform.v1.ImportDataConfig result = 843 new com.google.cloud.aiplatform.v1.ImportDataConfig(this); 844 if (bitField0_ != 0) { 845 buildPartial0(result); 846 } 847 buildPartialOneofs(result); 848 onBuilt(); 849 return result; 850 } 851 buildPartial0(com.google.cloud.aiplatform.v1.ImportDataConfig result)852 private void buildPartial0(com.google.cloud.aiplatform.v1.ImportDataConfig result) { 853 int from_bitField0_ = bitField0_; 854 if (((from_bitField0_ & 0x00000002) != 0)) { 855 result.dataItemLabels_ = internalGetDataItemLabels(); 856 result.dataItemLabels_.makeImmutable(); 857 } 858 if (((from_bitField0_ & 0x00000004) != 0)) { 859 result.annotationLabels_ = internalGetAnnotationLabels(); 860 result.annotationLabels_.makeImmutable(); 861 } 862 if (((from_bitField0_ & 0x00000008) != 0)) { 863 result.importSchemaUri_ = importSchemaUri_; 864 } 865 } 866 buildPartialOneofs(com.google.cloud.aiplatform.v1.ImportDataConfig result)867 private void buildPartialOneofs(com.google.cloud.aiplatform.v1.ImportDataConfig result) { 868 result.sourceCase_ = sourceCase_; 869 result.source_ = this.source_; 870 if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { 871 result.source_ = gcsSourceBuilder_.build(); 872 } 873 } 874 875 @java.lang.Override clone()876 public Builder clone() { 877 return super.clone(); 878 } 879 880 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)881 public Builder setField( 882 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 883 return super.setField(field, value); 884 } 885 886 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)887 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 888 return super.clearField(field); 889 } 890 891 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)892 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 893 return super.clearOneof(oneof); 894 } 895 896 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)897 public Builder setRepeatedField( 898 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 899 return super.setRepeatedField(field, index, value); 900 } 901 902 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)903 public Builder addRepeatedField( 904 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 905 return super.addRepeatedField(field, value); 906 } 907 908 @java.lang.Override mergeFrom(com.google.protobuf.Message other)909 public Builder mergeFrom(com.google.protobuf.Message other) { 910 if (other instanceof com.google.cloud.aiplatform.v1.ImportDataConfig) { 911 return mergeFrom((com.google.cloud.aiplatform.v1.ImportDataConfig) other); 912 } else { 913 super.mergeFrom(other); 914 return this; 915 } 916 } 917 mergeFrom(com.google.cloud.aiplatform.v1.ImportDataConfig other)918 public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportDataConfig other) { 919 if (other == com.google.cloud.aiplatform.v1.ImportDataConfig.getDefaultInstance()) 920 return this; 921 internalGetMutableDataItemLabels().mergeFrom(other.internalGetDataItemLabels()); 922 bitField0_ |= 0x00000002; 923 internalGetMutableAnnotationLabels().mergeFrom(other.internalGetAnnotationLabels()); 924 bitField0_ |= 0x00000004; 925 if (!other.getImportSchemaUri().isEmpty()) { 926 importSchemaUri_ = other.importSchemaUri_; 927 bitField0_ |= 0x00000008; 928 onChanged(); 929 } 930 switch (other.getSourceCase()) { 931 case GCS_SOURCE: 932 { 933 mergeGcsSource(other.getGcsSource()); 934 break; 935 } 936 case SOURCE_NOT_SET: 937 { 938 break; 939 } 940 } 941 this.mergeUnknownFields(other.getUnknownFields()); 942 onChanged(); 943 return this; 944 } 945 946 @java.lang.Override isInitialized()947 public final boolean isInitialized() { 948 return true; 949 } 950 951 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)952 public Builder mergeFrom( 953 com.google.protobuf.CodedInputStream input, 954 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 955 throws java.io.IOException { 956 if (extensionRegistry == null) { 957 throw new java.lang.NullPointerException(); 958 } 959 try { 960 boolean done = false; 961 while (!done) { 962 int tag = input.readTag(); 963 switch (tag) { 964 case 0: 965 done = true; 966 break; 967 case 10: 968 { 969 input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); 970 sourceCase_ = 1; 971 break; 972 } // case 10 973 case 18: 974 { 975 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> dataItemLabels__ = 976 input.readMessage( 977 DataItemLabelsDefaultEntryHolder.defaultEntry.getParserForType(), 978 extensionRegistry); 979 internalGetMutableDataItemLabels() 980 .getMutableMap() 981 .put(dataItemLabels__.getKey(), dataItemLabels__.getValue()); 982 bitField0_ |= 0x00000002; 983 break; 984 } // case 18 985 case 26: 986 { 987 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 988 annotationLabels__ = 989 input.readMessage( 990 AnnotationLabelsDefaultEntryHolder.defaultEntry.getParserForType(), 991 extensionRegistry); 992 internalGetMutableAnnotationLabels() 993 .getMutableMap() 994 .put(annotationLabels__.getKey(), annotationLabels__.getValue()); 995 bitField0_ |= 0x00000004; 996 break; 997 } // case 26 998 case 34: 999 { 1000 importSchemaUri_ = input.readStringRequireUtf8(); 1001 bitField0_ |= 0x00000008; 1002 break; 1003 } // case 34 1004 default: 1005 { 1006 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1007 done = true; // was an endgroup tag 1008 } 1009 break; 1010 } // default: 1011 } // switch (tag) 1012 } // while (!done) 1013 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1014 throw e.unwrapIOException(); 1015 } finally { 1016 onChanged(); 1017 } // finally 1018 return this; 1019 } 1020 1021 private int sourceCase_ = 0; 1022 private java.lang.Object source_; 1023 getSourceCase()1024 public SourceCase getSourceCase() { 1025 return SourceCase.forNumber(sourceCase_); 1026 } 1027 clearSource()1028 public Builder clearSource() { 1029 sourceCase_ = 0; 1030 source_ = null; 1031 onChanged(); 1032 return this; 1033 } 1034 1035 private int bitField0_; 1036 1037 private com.google.protobuf.SingleFieldBuilderV3< 1038 com.google.cloud.aiplatform.v1.GcsSource, 1039 com.google.cloud.aiplatform.v1.GcsSource.Builder, 1040 com.google.cloud.aiplatform.v1.GcsSourceOrBuilder> 1041 gcsSourceBuilder_; 1042 /** 1043 * 1044 * 1045 * <pre> 1046 * The Google Cloud Storage location for the input content. 1047 * </pre> 1048 * 1049 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1050 * 1051 * @return Whether the gcsSource field is set. 1052 */ 1053 @java.lang.Override hasGcsSource()1054 public boolean hasGcsSource() { 1055 return sourceCase_ == 1; 1056 } 1057 /** 1058 * 1059 * 1060 * <pre> 1061 * The Google Cloud Storage location for the input content. 1062 * </pre> 1063 * 1064 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1065 * 1066 * @return The gcsSource. 1067 */ 1068 @java.lang.Override getGcsSource()1069 public com.google.cloud.aiplatform.v1.GcsSource getGcsSource() { 1070 if (gcsSourceBuilder_ == null) { 1071 if (sourceCase_ == 1) { 1072 return (com.google.cloud.aiplatform.v1.GcsSource) source_; 1073 } 1074 return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); 1075 } else { 1076 if (sourceCase_ == 1) { 1077 return gcsSourceBuilder_.getMessage(); 1078 } 1079 return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); 1080 } 1081 } 1082 /** 1083 * 1084 * 1085 * <pre> 1086 * The Google Cloud Storage location for the input content. 1087 * </pre> 1088 * 1089 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1090 */ setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value)1091 public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { 1092 if (gcsSourceBuilder_ == null) { 1093 if (value == null) { 1094 throw new NullPointerException(); 1095 } 1096 source_ = value; 1097 onChanged(); 1098 } else { 1099 gcsSourceBuilder_.setMessage(value); 1100 } 1101 sourceCase_ = 1; 1102 return this; 1103 } 1104 /** 1105 * 1106 * 1107 * <pre> 1108 * The Google Cloud Storage location for the input content. 1109 * </pre> 1110 * 1111 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1112 */ setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder builderForValue)1113 public Builder setGcsSource(com.google.cloud.aiplatform.v1.GcsSource.Builder builderForValue) { 1114 if (gcsSourceBuilder_ == null) { 1115 source_ = builderForValue.build(); 1116 onChanged(); 1117 } else { 1118 gcsSourceBuilder_.setMessage(builderForValue.build()); 1119 } 1120 sourceCase_ = 1; 1121 return this; 1122 } 1123 /** 1124 * 1125 * 1126 * <pre> 1127 * The Google Cloud Storage location for the input content. 1128 * </pre> 1129 * 1130 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1131 */ mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value)1132 public Builder mergeGcsSource(com.google.cloud.aiplatform.v1.GcsSource value) { 1133 if (gcsSourceBuilder_ == null) { 1134 if (sourceCase_ == 1 1135 && source_ != com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance()) { 1136 source_ = 1137 com.google.cloud.aiplatform.v1.GcsSource.newBuilder( 1138 (com.google.cloud.aiplatform.v1.GcsSource) source_) 1139 .mergeFrom(value) 1140 .buildPartial(); 1141 } else { 1142 source_ = value; 1143 } 1144 onChanged(); 1145 } else { 1146 if (sourceCase_ == 1) { 1147 gcsSourceBuilder_.mergeFrom(value); 1148 } else { 1149 gcsSourceBuilder_.setMessage(value); 1150 } 1151 } 1152 sourceCase_ = 1; 1153 return this; 1154 } 1155 /** 1156 * 1157 * 1158 * <pre> 1159 * The Google Cloud Storage location for the input content. 1160 * </pre> 1161 * 1162 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1163 */ clearGcsSource()1164 public Builder clearGcsSource() { 1165 if (gcsSourceBuilder_ == null) { 1166 if (sourceCase_ == 1) { 1167 sourceCase_ = 0; 1168 source_ = null; 1169 onChanged(); 1170 } 1171 } else { 1172 if (sourceCase_ == 1) { 1173 sourceCase_ = 0; 1174 source_ = null; 1175 } 1176 gcsSourceBuilder_.clear(); 1177 } 1178 return this; 1179 } 1180 /** 1181 * 1182 * 1183 * <pre> 1184 * The Google Cloud Storage location for the input content. 1185 * </pre> 1186 * 1187 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1188 */ getGcsSourceBuilder()1189 public com.google.cloud.aiplatform.v1.GcsSource.Builder getGcsSourceBuilder() { 1190 return getGcsSourceFieldBuilder().getBuilder(); 1191 } 1192 /** 1193 * 1194 * 1195 * <pre> 1196 * The Google Cloud Storage location for the input content. 1197 * </pre> 1198 * 1199 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1200 */ 1201 @java.lang.Override getGcsSourceOrBuilder()1202 public com.google.cloud.aiplatform.v1.GcsSourceOrBuilder getGcsSourceOrBuilder() { 1203 if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) { 1204 return gcsSourceBuilder_.getMessageOrBuilder(); 1205 } else { 1206 if (sourceCase_ == 1) { 1207 return (com.google.cloud.aiplatform.v1.GcsSource) source_; 1208 } 1209 return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); 1210 } 1211 } 1212 /** 1213 * 1214 * 1215 * <pre> 1216 * The Google Cloud Storage location for the input content. 1217 * </pre> 1218 * 1219 * <code>.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;</code> 1220 */ 1221 private com.google.protobuf.SingleFieldBuilderV3< 1222 com.google.cloud.aiplatform.v1.GcsSource, 1223 com.google.cloud.aiplatform.v1.GcsSource.Builder, 1224 com.google.cloud.aiplatform.v1.GcsSourceOrBuilder> getGcsSourceFieldBuilder()1225 getGcsSourceFieldBuilder() { 1226 if (gcsSourceBuilder_ == null) { 1227 if (!(sourceCase_ == 1)) { 1228 source_ = com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance(); 1229 } 1230 gcsSourceBuilder_ = 1231 new com.google.protobuf.SingleFieldBuilderV3< 1232 com.google.cloud.aiplatform.v1.GcsSource, 1233 com.google.cloud.aiplatform.v1.GcsSource.Builder, 1234 com.google.cloud.aiplatform.v1.GcsSourceOrBuilder>( 1235 (com.google.cloud.aiplatform.v1.GcsSource) source_, 1236 getParentForChildren(), 1237 isClean()); 1238 source_ = null; 1239 } 1240 sourceCase_ = 1; 1241 onChanged(); 1242 return gcsSourceBuilder_; 1243 } 1244 1245 private com.google.protobuf.MapField<java.lang.String, java.lang.String> dataItemLabels_; 1246 1247 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetDataItemLabels()1248 internalGetDataItemLabels() { 1249 if (dataItemLabels_ == null) { 1250 return com.google.protobuf.MapField.emptyMapField( 1251 DataItemLabelsDefaultEntryHolder.defaultEntry); 1252 } 1253 return dataItemLabels_; 1254 } 1255 1256 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableDataItemLabels()1257 internalGetMutableDataItemLabels() { 1258 if (dataItemLabels_ == null) { 1259 dataItemLabels_ = 1260 com.google.protobuf.MapField.newMapField(DataItemLabelsDefaultEntryHolder.defaultEntry); 1261 } 1262 if (!dataItemLabels_.isMutable()) { 1263 dataItemLabels_ = dataItemLabels_.copy(); 1264 } 1265 bitField0_ |= 0x00000002; 1266 onChanged(); 1267 return dataItemLabels_; 1268 } 1269 getDataItemLabelsCount()1270 public int getDataItemLabelsCount() { 1271 return internalGetDataItemLabels().getMap().size(); 1272 } 1273 /** 1274 * 1275 * 1276 * <pre> 1277 * Labels that will be applied to newly imported DataItems. If an identical 1278 * DataItem as one being imported already exists in the Dataset, then these 1279 * labels will be appended to these of the already existing one, and if labels 1280 * with identical key is imported before, the old label value will be 1281 * overwritten. If two DataItems are identical in the same import data 1282 * operation, the labels will be combined and if key collision happens in this 1283 * case, one of the values will be picked randomly. Two DataItems are 1284 * considered identical if their content bytes are identical (e.g. image bytes 1285 * or pdf bytes). 1286 * These labels will be overridden by Annotation labels specified inside index 1287 * file referenced by 1288 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1289 * e.g. jsonl file. 1290 * </pre> 1291 * 1292 * <code>map<string, string> data_item_labels = 2;</code> 1293 */ 1294 @java.lang.Override containsDataItemLabels(java.lang.String key)1295 public boolean containsDataItemLabels(java.lang.String key) { 1296 if (key == null) { 1297 throw new NullPointerException("map key"); 1298 } 1299 return internalGetDataItemLabels().getMap().containsKey(key); 1300 } 1301 /** Use {@link #getDataItemLabelsMap()} instead. */ 1302 @java.lang.Override 1303 @java.lang.Deprecated getDataItemLabels()1304 public java.util.Map<java.lang.String, java.lang.String> getDataItemLabels() { 1305 return getDataItemLabelsMap(); 1306 } 1307 /** 1308 * 1309 * 1310 * <pre> 1311 * Labels that will be applied to newly imported DataItems. If an identical 1312 * DataItem as one being imported already exists in the Dataset, then these 1313 * labels will be appended to these of the already existing one, and if labels 1314 * with identical key is imported before, the old label value will be 1315 * overwritten. If two DataItems are identical in the same import data 1316 * operation, the labels will be combined and if key collision happens in this 1317 * case, one of the values will be picked randomly. Two DataItems are 1318 * considered identical if their content bytes are identical (e.g. image bytes 1319 * or pdf bytes). 1320 * These labels will be overridden by Annotation labels specified inside index 1321 * file referenced by 1322 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1323 * e.g. jsonl file. 1324 * </pre> 1325 * 1326 * <code>map<string, string> data_item_labels = 2;</code> 1327 */ 1328 @java.lang.Override getDataItemLabelsMap()1329 public java.util.Map<java.lang.String, java.lang.String> getDataItemLabelsMap() { 1330 return internalGetDataItemLabels().getMap(); 1331 } 1332 /** 1333 * 1334 * 1335 * <pre> 1336 * Labels that will be applied to newly imported DataItems. If an identical 1337 * DataItem as one being imported already exists in the Dataset, then these 1338 * labels will be appended to these of the already existing one, and if labels 1339 * with identical key is imported before, the old label value will be 1340 * overwritten. If two DataItems are identical in the same import data 1341 * operation, the labels will be combined and if key collision happens in this 1342 * case, one of the values will be picked randomly. Two DataItems are 1343 * considered identical if their content bytes are identical (e.g. image bytes 1344 * or pdf bytes). 1345 * These labels will be overridden by Annotation labels specified inside index 1346 * file referenced by 1347 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1348 * e.g. jsonl file. 1349 * </pre> 1350 * 1351 * <code>map<string, string> data_item_labels = 2;</code> 1352 */ 1353 @java.lang.Override getDataItemLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)1354 public /* nullable */ java.lang.String getDataItemLabelsOrDefault( 1355 java.lang.String key, 1356 /* nullable */ 1357 java.lang.String defaultValue) { 1358 if (key == null) { 1359 throw new NullPointerException("map key"); 1360 } 1361 java.util.Map<java.lang.String, java.lang.String> map = internalGetDataItemLabels().getMap(); 1362 return map.containsKey(key) ? map.get(key) : defaultValue; 1363 } 1364 /** 1365 * 1366 * 1367 * <pre> 1368 * Labels that will be applied to newly imported DataItems. If an identical 1369 * DataItem as one being imported already exists in the Dataset, then these 1370 * labels will be appended to these of the already existing one, and if labels 1371 * with identical key is imported before, the old label value will be 1372 * overwritten. If two DataItems are identical in the same import data 1373 * operation, the labels will be combined and if key collision happens in this 1374 * case, one of the values will be picked randomly. Two DataItems are 1375 * considered identical if their content bytes are identical (e.g. image bytes 1376 * or pdf bytes). 1377 * These labels will be overridden by Annotation labels specified inside index 1378 * file referenced by 1379 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1380 * e.g. jsonl file. 1381 * </pre> 1382 * 1383 * <code>map<string, string> data_item_labels = 2;</code> 1384 */ 1385 @java.lang.Override getDataItemLabelsOrThrow(java.lang.String key)1386 public java.lang.String getDataItemLabelsOrThrow(java.lang.String key) { 1387 if (key == null) { 1388 throw new NullPointerException("map key"); 1389 } 1390 java.util.Map<java.lang.String, java.lang.String> map = internalGetDataItemLabels().getMap(); 1391 if (!map.containsKey(key)) { 1392 throw new java.lang.IllegalArgumentException(); 1393 } 1394 return map.get(key); 1395 } 1396 clearDataItemLabels()1397 public Builder clearDataItemLabels() { 1398 bitField0_ = (bitField0_ & ~0x00000002); 1399 internalGetMutableDataItemLabels().getMutableMap().clear(); 1400 return this; 1401 } 1402 /** 1403 * 1404 * 1405 * <pre> 1406 * Labels that will be applied to newly imported DataItems. If an identical 1407 * DataItem as one being imported already exists in the Dataset, then these 1408 * labels will be appended to these of the already existing one, and if labels 1409 * with identical key is imported before, the old label value will be 1410 * overwritten. If two DataItems are identical in the same import data 1411 * operation, the labels will be combined and if key collision happens in this 1412 * case, one of the values will be picked randomly. Two DataItems are 1413 * considered identical if their content bytes are identical (e.g. image bytes 1414 * or pdf bytes). 1415 * These labels will be overridden by Annotation labels specified inside index 1416 * file referenced by 1417 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1418 * e.g. jsonl file. 1419 * </pre> 1420 * 1421 * <code>map<string, string> data_item_labels = 2;</code> 1422 */ removeDataItemLabels(java.lang.String key)1423 public Builder removeDataItemLabels(java.lang.String key) { 1424 if (key == null) { 1425 throw new NullPointerException("map key"); 1426 } 1427 internalGetMutableDataItemLabels().getMutableMap().remove(key); 1428 return this; 1429 } 1430 /** Use alternate mutation accessors instead. */ 1431 @java.lang.Deprecated getMutableDataItemLabels()1432 public java.util.Map<java.lang.String, java.lang.String> getMutableDataItemLabels() { 1433 bitField0_ |= 0x00000002; 1434 return internalGetMutableDataItemLabels().getMutableMap(); 1435 } 1436 /** 1437 * 1438 * 1439 * <pre> 1440 * Labels that will be applied to newly imported DataItems. If an identical 1441 * DataItem as one being imported already exists in the Dataset, then these 1442 * labels will be appended to these of the already existing one, and if labels 1443 * with identical key is imported before, the old label value will be 1444 * overwritten. If two DataItems are identical in the same import data 1445 * operation, the labels will be combined and if key collision happens in this 1446 * case, one of the values will be picked randomly. Two DataItems are 1447 * considered identical if their content bytes are identical (e.g. image bytes 1448 * or pdf bytes). 1449 * These labels will be overridden by Annotation labels specified inside index 1450 * file referenced by 1451 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1452 * e.g. jsonl file. 1453 * </pre> 1454 * 1455 * <code>map<string, string> data_item_labels = 2;</code> 1456 */ putDataItemLabels(java.lang.String key, java.lang.String value)1457 public Builder putDataItemLabels(java.lang.String key, java.lang.String value) { 1458 if (key == null) { 1459 throw new NullPointerException("map key"); 1460 } 1461 if (value == null) { 1462 throw new NullPointerException("map value"); 1463 } 1464 internalGetMutableDataItemLabels().getMutableMap().put(key, value); 1465 bitField0_ |= 0x00000002; 1466 return this; 1467 } 1468 /** 1469 * 1470 * 1471 * <pre> 1472 * Labels that will be applied to newly imported DataItems. If an identical 1473 * DataItem as one being imported already exists in the Dataset, then these 1474 * labels will be appended to these of the already existing one, and if labels 1475 * with identical key is imported before, the old label value will be 1476 * overwritten. If two DataItems are identical in the same import data 1477 * operation, the labels will be combined and if key collision happens in this 1478 * case, one of the values will be picked randomly. Two DataItems are 1479 * considered identical if their content bytes are identical (e.g. image bytes 1480 * or pdf bytes). 1481 * These labels will be overridden by Annotation labels specified inside index 1482 * file referenced by 1483 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1484 * e.g. jsonl file. 1485 * </pre> 1486 * 1487 * <code>map<string, string> data_item_labels = 2;</code> 1488 */ putAllDataItemLabels(java.util.Map<java.lang.String, java.lang.String> values)1489 public Builder putAllDataItemLabels(java.util.Map<java.lang.String, java.lang.String> values) { 1490 internalGetMutableDataItemLabels().getMutableMap().putAll(values); 1491 bitField0_ |= 0x00000002; 1492 return this; 1493 } 1494 1495 private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotationLabels_; 1496 1497 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetAnnotationLabels()1498 internalGetAnnotationLabels() { 1499 if (annotationLabels_ == null) { 1500 return com.google.protobuf.MapField.emptyMapField( 1501 AnnotationLabelsDefaultEntryHolder.defaultEntry); 1502 } 1503 return annotationLabels_; 1504 } 1505 1506 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableAnnotationLabels()1507 internalGetMutableAnnotationLabels() { 1508 if (annotationLabels_ == null) { 1509 annotationLabels_ = 1510 com.google.protobuf.MapField.newMapField( 1511 AnnotationLabelsDefaultEntryHolder.defaultEntry); 1512 } 1513 if (!annotationLabels_.isMutable()) { 1514 annotationLabels_ = annotationLabels_.copy(); 1515 } 1516 bitField0_ |= 0x00000004; 1517 onChanged(); 1518 return annotationLabels_; 1519 } 1520 getAnnotationLabelsCount()1521 public int getAnnotationLabelsCount() { 1522 return internalGetAnnotationLabels().getMap().size(); 1523 } 1524 /** 1525 * 1526 * 1527 * <pre> 1528 * Labels that will be applied to newly imported Annotations. If two 1529 * Annotations are identical, one of them will be deduped. Two Annotations are 1530 * considered identical if their 1531 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 1532 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 1533 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 1534 * the same. These labels will be overridden by Annotation labels specified 1535 * inside index file referenced by 1536 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1537 * e.g. jsonl file. 1538 * </pre> 1539 * 1540 * <code>map<string, string> annotation_labels = 3;</code> 1541 */ 1542 @java.lang.Override containsAnnotationLabels(java.lang.String key)1543 public boolean containsAnnotationLabels(java.lang.String key) { 1544 if (key == null) { 1545 throw new NullPointerException("map key"); 1546 } 1547 return internalGetAnnotationLabels().getMap().containsKey(key); 1548 } 1549 /** Use {@link #getAnnotationLabelsMap()} instead. */ 1550 @java.lang.Override 1551 @java.lang.Deprecated getAnnotationLabels()1552 public java.util.Map<java.lang.String, java.lang.String> getAnnotationLabels() { 1553 return getAnnotationLabelsMap(); 1554 } 1555 /** 1556 * 1557 * 1558 * <pre> 1559 * Labels that will be applied to newly imported Annotations. If two 1560 * Annotations are identical, one of them will be deduped. Two Annotations are 1561 * considered identical if their 1562 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 1563 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 1564 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 1565 * the same. These labels will be overridden by Annotation labels specified 1566 * inside index file referenced by 1567 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1568 * e.g. jsonl file. 1569 * </pre> 1570 * 1571 * <code>map<string, string> annotation_labels = 3;</code> 1572 */ 1573 @java.lang.Override getAnnotationLabelsMap()1574 public java.util.Map<java.lang.String, java.lang.String> getAnnotationLabelsMap() { 1575 return internalGetAnnotationLabels().getMap(); 1576 } 1577 /** 1578 * 1579 * 1580 * <pre> 1581 * Labels that will be applied to newly imported Annotations. If two 1582 * Annotations are identical, one of them will be deduped. Two Annotations are 1583 * considered identical if their 1584 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 1585 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 1586 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 1587 * the same. These labels will be overridden by Annotation labels specified 1588 * inside index file referenced by 1589 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1590 * e.g. jsonl file. 1591 * </pre> 1592 * 1593 * <code>map<string, string> annotation_labels = 3;</code> 1594 */ 1595 @java.lang.Override getAnnotationLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)1596 public /* nullable */ java.lang.String getAnnotationLabelsOrDefault( 1597 java.lang.String key, 1598 /* nullable */ 1599 java.lang.String defaultValue) { 1600 if (key == null) { 1601 throw new NullPointerException("map key"); 1602 } 1603 java.util.Map<java.lang.String, java.lang.String> map = 1604 internalGetAnnotationLabels().getMap(); 1605 return map.containsKey(key) ? map.get(key) : defaultValue; 1606 } 1607 /** 1608 * 1609 * 1610 * <pre> 1611 * Labels that will be applied to newly imported Annotations. If two 1612 * Annotations are identical, one of them will be deduped. Two Annotations are 1613 * considered identical if their 1614 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 1615 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 1616 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 1617 * the same. These labels will be overridden by Annotation labels specified 1618 * inside index file referenced by 1619 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1620 * e.g. jsonl file. 1621 * </pre> 1622 * 1623 * <code>map<string, string> annotation_labels = 3;</code> 1624 */ 1625 @java.lang.Override getAnnotationLabelsOrThrow(java.lang.String key)1626 public java.lang.String getAnnotationLabelsOrThrow(java.lang.String key) { 1627 if (key == null) { 1628 throw new NullPointerException("map key"); 1629 } 1630 java.util.Map<java.lang.String, java.lang.String> map = 1631 internalGetAnnotationLabels().getMap(); 1632 if (!map.containsKey(key)) { 1633 throw new java.lang.IllegalArgumentException(); 1634 } 1635 return map.get(key); 1636 } 1637 clearAnnotationLabels()1638 public Builder clearAnnotationLabels() { 1639 bitField0_ = (bitField0_ & ~0x00000004); 1640 internalGetMutableAnnotationLabels().getMutableMap().clear(); 1641 return this; 1642 } 1643 /** 1644 * 1645 * 1646 * <pre> 1647 * Labels that will be applied to newly imported Annotations. If two 1648 * Annotations are identical, one of them will be deduped. Two Annotations are 1649 * considered identical if their 1650 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 1651 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 1652 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 1653 * the same. These labels will be overridden by Annotation labels specified 1654 * inside index file referenced by 1655 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1656 * e.g. jsonl file. 1657 * </pre> 1658 * 1659 * <code>map<string, string> annotation_labels = 3;</code> 1660 */ removeAnnotationLabels(java.lang.String key)1661 public Builder removeAnnotationLabels(java.lang.String key) { 1662 if (key == null) { 1663 throw new NullPointerException("map key"); 1664 } 1665 internalGetMutableAnnotationLabels().getMutableMap().remove(key); 1666 return this; 1667 } 1668 /** Use alternate mutation accessors instead. */ 1669 @java.lang.Deprecated getMutableAnnotationLabels()1670 public java.util.Map<java.lang.String, java.lang.String> getMutableAnnotationLabels() { 1671 bitField0_ |= 0x00000004; 1672 return internalGetMutableAnnotationLabels().getMutableMap(); 1673 } 1674 /** 1675 * 1676 * 1677 * <pre> 1678 * Labels that will be applied to newly imported Annotations. If two 1679 * Annotations are identical, one of them will be deduped. Two Annotations are 1680 * considered identical if their 1681 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 1682 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 1683 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 1684 * the same. These labels will be overridden by Annotation labels specified 1685 * inside index file referenced by 1686 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1687 * e.g. jsonl file. 1688 * </pre> 1689 * 1690 * <code>map<string, string> annotation_labels = 3;</code> 1691 */ putAnnotationLabels(java.lang.String key, java.lang.String value)1692 public Builder putAnnotationLabels(java.lang.String key, java.lang.String value) { 1693 if (key == null) { 1694 throw new NullPointerException("map key"); 1695 } 1696 if (value == null) { 1697 throw new NullPointerException("map value"); 1698 } 1699 internalGetMutableAnnotationLabels().getMutableMap().put(key, value); 1700 bitField0_ |= 0x00000004; 1701 return this; 1702 } 1703 /** 1704 * 1705 * 1706 * <pre> 1707 * Labels that will be applied to newly imported Annotations. If two 1708 * Annotations are identical, one of them will be deduped. Two Annotations are 1709 * considered identical if their 1710 * [payload][google.cloud.aiplatform.v1.Annotation.payload], 1711 * [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] 1712 * and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are 1713 * the same. These labels will be overridden by Annotation labels specified 1714 * inside index file referenced by 1715 * [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], 1716 * e.g. jsonl file. 1717 * </pre> 1718 * 1719 * <code>map<string, string> annotation_labels = 3;</code> 1720 */ putAllAnnotationLabels( java.util.Map<java.lang.String, java.lang.String> values)1721 public Builder putAllAnnotationLabels( 1722 java.util.Map<java.lang.String, java.lang.String> values) { 1723 internalGetMutableAnnotationLabels().getMutableMap().putAll(values); 1724 bitField0_ |= 0x00000004; 1725 return this; 1726 } 1727 1728 private java.lang.Object importSchemaUri_ = ""; 1729 /** 1730 * 1731 * 1732 * <pre> 1733 * Required. Points to a YAML file stored on Google Cloud Storage describing 1734 * the import format. Validation will be done against the schema. The schema 1735 * is defined as an [OpenAPI 3.0.2 Schema 1736 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1737 * </pre> 1738 * 1739 * <code>string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];</code> 1740 * 1741 * @return The importSchemaUri. 1742 */ getImportSchemaUri()1743 public java.lang.String getImportSchemaUri() { 1744 java.lang.Object ref = importSchemaUri_; 1745 if (!(ref instanceof java.lang.String)) { 1746 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1747 java.lang.String s = bs.toStringUtf8(); 1748 importSchemaUri_ = s; 1749 return s; 1750 } else { 1751 return (java.lang.String) ref; 1752 } 1753 } 1754 /** 1755 * 1756 * 1757 * <pre> 1758 * Required. Points to a YAML file stored on Google Cloud Storage describing 1759 * the import format. Validation will be done against the schema. The schema 1760 * is defined as an [OpenAPI 3.0.2 Schema 1761 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1762 * </pre> 1763 * 1764 * <code>string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];</code> 1765 * 1766 * @return The bytes for importSchemaUri. 1767 */ getImportSchemaUriBytes()1768 public com.google.protobuf.ByteString getImportSchemaUriBytes() { 1769 java.lang.Object ref = importSchemaUri_; 1770 if (ref instanceof String) { 1771 com.google.protobuf.ByteString b = 1772 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1773 importSchemaUri_ = b; 1774 return b; 1775 } else { 1776 return (com.google.protobuf.ByteString) ref; 1777 } 1778 } 1779 /** 1780 * 1781 * 1782 * <pre> 1783 * Required. Points to a YAML file stored on Google Cloud Storage describing 1784 * the import format. Validation will be done against the schema. The schema 1785 * is defined as an [OpenAPI 3.0.2 Schema 1786 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1787 * </pre> 1788 * 1789 * <code>string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];</code> 1790 * 1791 * @param value The importSchemaUri to set. 1792 * @return This builder for chaining. 1793 */ setImportSchemaUri(java.lang.String value)1794 public Builder setImportSchemaUri(java.lang.String value) { 1795 if (value == null) { 1796 throw new NullPointerException(); 1797 } 1798 importSchemaUri_ = value; 1799 bitField0_ |= 0x00000008; 1800 onChanged(); 1801 return this; 1802 } 1803 /** 1804 * 1805 * 1806 * <pre> 1807 * Required. Points to a YAML file stored on Google Cloud Storage describing 1808 * the import format. Validation will be done against the schema. The schema 1809 * is defined as an [OpenAPI 3.0.2 Schema 1810 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1811 * </pre> 1812 * 1813 * <code>string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];</code> 1814 * 1815 * @return This builder for chaining. 1816 */ clearImportSchemaUri()1817 public Builder clearImportSchemaUri() { 1818 importSchemaUri_ = getDefaultInstance().getImportSchemaUri(); 1819 bitField0_ = (bitField0_ & ~0x00000008); 1820 onChanged(); 1821 return this; 1822 } 1823 /** 1824 * 1825 * 1826 * <pre> 1827 * Required. Points to a YAML file stored on Google Cloud Storage describing 1828 * the import format. Validation will be done against the schema. The schema 1829 * is defined as an [OpenAPI 3.0.2 Schema 1830 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1831 * </pre> 1832 * 1833 * <code>string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];</code> 1834 * 1835 * @param value The bytes for importSchemaUri to set. 1836 * @return This builder for chaining. 1837 */ setImportSchemaUriBytes(com.google.protobuf.ByteString value)1838 public Builder setImportSchemaUriBytes(com.google.protobuf.ByteString value) { 1839 if (value == null) { 1840 throw new NullPointerException(); 1841 } 1842 checkByteStringIsUtf8(value); 1843 importSchemaUri_ = value; 1844 bitField0_ |= 0x00000008; 1845 onChanged(); 1846 return this; 1847 } 1848 1849 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1850 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1851 return super.setUnknownFields(unknownFields); 1852 } 1853 1854 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1855 public final Builder mergeUnknownFields( 1856 final com.google.protobuf.UnknownFieldSet unknownFields) { 1857 return super.mergeUnknownFields(unknownFields); 1858 } 1859 1860 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ImportDataConfig) 1861 } 1862 1863 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImportDataConfig) 1864 private static final com.google.cloud.aiplatform.v1.ImportDataConfig DEFAULT_INSTANCE; 1865 1866 static { 1867 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImportDataConfig(); 1868 } 1869 getDefaultInstance()1870 public static com.google.cloud.aiplatform.v1.ImportDataConfig getDefaultInstance() { 1871 return DEFAULT_INSTANCE; 1872 } 1873 1874 private static final com.google.protobuf.Parser<ImportDataConfig> PARSER = 1875 new com.google.protobuf.AbstractParser<ImportDataConfig>() { 1876 @java.lang.Override 1877 public ImportDataConfig parsePartialFrom( 1878 com.google.protobuf.CodedInputStream input, 1879 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1880 throws com.google.protobuf.InvalidProtocolBufferException { 1881 Builder builder = newBuilder(); 1882 try { 1883 builder.mergeFrom(input, extensionRegistry); 1884 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1885 throw e.setUnfinishedMessage(builder.buildPartial()); 1886 } catch (com.google.protobuf.UninitializedMessageException e) { 1887 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1888 } catch (java.io.IOException e) { 1889 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1890 .setUnfinishedMessage(builder.buildPartial()); 1891 } 1892 return builder.buildPartial(); 1893 } 1894 }; 1895 parser()1896 public static com.google.protobuf.Parser<ImportDataConfig> parser() { 1897 return PARSER; 1898 } 1899 1900 @java.lang.Override getParserForType()1901 public com.google.protobuf.Parser<ImportDataConfig> getParserForType() { 1902 return PARSER; 1903 } 1904 1905 @java.lang.Override getDefaultInstanceForType()1906 public com.google.cloud.aiplatform.v1.ImportDataConfig getDefaultInstanceForType() { 1907 return DEFAULT_INSTANCE; 1908 } 1909 } 1910