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/datacatalog/v1/datacatalog.proto 18 19 package com.google.cloud.datacatalog.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Entry metadata. 26 * A Data Catalog entry represents another resource in Google 27 * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or 28 * outside of it. You can use the `linked_resource` field 29 * in the entry resource to refer to the original resource ID of the source 30 * system. 31 * An entry resource contains resource details, for example, its schema. 32 * Additionally, you can attach flexible metadata to an entry in the form of a 33 * [Tag][google.cloud.datacatalog.v1.Tag]. 34 * </pre> 35 * 36 * Protobuf type {@code google.cloud.datacatalog.v1.Entry} 37 */ 38 public final class Entry extends com.google.protobuf.GeneratedMessageV3 39 implements 40 // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Entry) 41 EntryOrBuilder { 42 private static final long serialVersionUID = 0L; 43 // Use Entry.newBuilder() to construct. Entry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)44 private Entry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 45 super(builder); 46 } 47 Entry()48 private Entry() { 49 name_ = ""; 50 linkedResource_ = ""; 51 fullyQualifiedName_ = ""; 52 displayName_ = ""; 53 description_ = ""; 54 } 55 56 @java.lang.Override 57 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)58 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 59 return new Entry(); 60 } 61 62 @java.lang.Override getUnknownFields()63 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 64 return this.unknownFields; 65 } 66 getDescriptor()67 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 68 return com.google.cloud.datacatalog.v1.Datacatalog 69 .internal_static_google_cloud_datacatalog_v1_Entry_descriptor; 70 } 71 72 @SuppressWarnings({"rawtypes"}) 73 @java.lang.Override internalGetMapField(int number)74 protected com.google.protobuf.MapField internalGetMapField(int number) { 75 switch (number) { 76 case 14: 77 return internalGetLabels(); 78 default: 79 throw new RuntimeException("Invalid map field number: " + number); 80 } 81 } 82 83 @java.lang.Override 84 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()85 internalGetFieldAccessorTable() { 86 return com.google.cloud.datacatalog.v1.Datacatalog 87 .internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable 88 .ensureFieldAccessorsInitialized( 89 com.google.cloud.datacatalog.v1.Entry.class, 90 com.google.cloud.datacatalog.v1.Entry.Builder.class); 91 } 92 93 private int entryTypeCase_ = 0; 94 private java.lang.Object entryType_; 95 96 public enum EntryTypeCase 97 implements 98 com.google.protobuf.Internal.EnumLite, 99 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 100 TYPE(2), 101 USER_SPECIFIED_TYPE(16), 102 ENTRYTYPE_NOT_SET(0); 103 private final int value; 104 EntryTypeCase(int value)105 private EntryTypeCase(int value) { 106 this.value = value; 107 } 108 /** 109 * @param value The number of the enum to look for. 110 * @return The enum associated with the given number. 111 * @deprecated Use {@link #forNumber(int)} instead. 112 */ 113 @java.lang.Deprecated valueOf(int value)114 public static EntryTypeCase valueOf(int value) { 115 return forNumber(value); 116 } 117 forNumber(int value)118 public static EntryTypeCase forNumber(int value) { 119 switch (value) { 120 case 2: 121 return TYPE; 122 case 16: 123 return USER_SPECIFIED_TYPE; 124 case 0: 125 return ENTRYTYPE_NOT_SET; 126 default: 127 return null; 128 } 129 } 130 getNumber()131 public int getNumber() { 132 return this.value; 133 } 134 }; 135 getEntryTypeCase()136 public EntryTypeCase getEntryTypeCase() { 137 return EntryTypeCase.forNumber(entryTypeCase_); 138 } 139 140 private int systemCase_ = 0; 141 private java.lang.Object system_; 142 143 public enum SystemCase 144 implements 145 com.google.protobuf.Internal.EnumLite, 146 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 147 INTEGRATED_SYSTEM(17), 148 USER_SPECIFIED_SYSTEM(18), 149 SYSTEM_NOT_SET(0); 150 private final int value; 151 SystemCase(int value)152 private SystemCase(int value) { 153 this.value = value; 154 } 155 /** 156 * @param value The number of the enum to look for. 157 * @return The enum associated with the given number. 158 * @deprecated Use {@link #forNumber(int)} instead. 159 */ 160 @java.lang.Deprecated valueOf(int value)161 public static SystemCase valueOf(int value) { 162 return forNumber(value); 163 } 164 forNumber(int value)165 public static SystemCase forNumber(int value) { 166 switch (value) { 167 case 17: 168 return INTEGRATED_SYSTEM; 169 case 18: 170 return USER_SPECIFIED_SYSTEM; 171 case 0: 172 return SYSTEM_NOT_SET; 173 default: 174 return null; 175 } 176 } 177 getNumber()178 public int getNumber() { 179 return this.value; 180 } 181 }; 182 getSystemCase()183 public SystemCase getSystemCase() { 184 return SystemCase.forNumber(systemCase_); 185 } 186 187 private int systemSpecCase_ = 0; 188 private java.lang.Object systemSpec_; 189 190 public enum SystemSpecCase 191 implements 192 com.google.protobuf.Internal.EnumLite, 193 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 194 SQL_DATABASE_SYSTEM_SPEC(39), 195 LOOKER_SYSTEM_SPEC(40), 196 SYSTEMSPEC_NOT_SET(0); 197 private final int value; 198 SystemSpecCase(int value)199 private SystemSpecCase(int value) { 200 this.value = value; 201 } 202 /** 203 * @param value The number of the enum to look for. 204 * @return The enum associated with the given number. 205 * @deprecated Use {@link #forNumber(int)} instead. 206 */ 207 @java.lang.Deprecated valueOf(int value)208 public static SystemSpecCase valueOf(int value) { 209 return forNumber(value); 210 } 211 forNumber(int value)212 public static SystemSpecCase forNumber(int value) { 213 switch (value) { 214 case 39: 215 return SQL_DATABASE_SYSTEM_SPEC; 216 case 40: 217 return LOOKER_SYSTEM_SPEC; 218 case 0: 219 return SYSTEMSPEC_NOT_SET; 220 default: 221 return null; 222 } 223 } 224 getNumber()225 public int getNumber() { 226 return this.value; 227 } 228 }; 229 getSystemSpecCase()230 public SystemSpecCase getSystemSpecCase() { 231 return SystemSpecCase.forNumber(systemSpecCase_); 232 } 233 234 private int typeSpecCase_ = 0; 235 private java.lang.Object typeSpec_; 236 237 public enum TypeSpecCase 238 implements 239 com.google.protobuf.Internal.EnumLite, 240 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 241 GCS_FILESET_SPEC(6), 242 BIGQUERY_TABLE_SPEC(12), 243 BIGQUERY_DATE_SHARDED_SPEC(15), 244 TYPESPEC_NOT_SET(0); 245 private final int value; 246 TypeSpecCase(int value)247 private TypeSpecCase(int value) { 248 this.value = value; 249 } 250 /** 251 * @param value The number of the enum to look for. 252 * @return The enum associated with the given number. 253 * @deprecated Use {@link #forNumber(int)} instead. 254 */ 255 @java.lang.Deprecated valueOf(int value)256 public static TypeSpecCase valueOf(int value) { 257 return forNumber(value); 258 } 259 forNumber(int value)260 public static TypeSpecCase forNumber(int value) { 261 switch (value) { 262 case 6: 263 return GCS_FILESET_SPEC; 264 case 12: 265 return BIGQUERY_TABLE_SPEC; 266 case 15: 267 return BIGQUERY_DATE_SHARDED_SPEC; 268 case 0: 269 return TYPESPEC_NOT_SET; 270 default: 271 return null; 272 } 273 } 274 getNumber()275 public int getNumber() { 276 return this.value; 277 } 278 }; 279 getTypeSpecCase()280 public TypeSpecCase getTypeSpecCase() { 281 return TypeSpecCase.forNumber(typeSpecCase_); 282 } 283 284 private int specCase_ = 0; 285 private java.lang.Object spec_; 286 287 public enum SpecCase 288 implements 289 com.google.protobuf.Internal.EnumLite, 290 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 291 DATABASE_TABLE_SPEC(24), 292 DATA_SOURCE_CONNECTION_SPEC(27), 293 ROUTINE_SPEC(28), 294 FILESET_SPEC(33), 295 SPEC_NOT_SET(0); 296 private final int value; 297 SpecCase(int value)298 private SpecCase(int value) { 299 this.value = value; 300 } 301 /** 302 * @param value The number of the enum to look for. 303 * @return The enum associated with the given number. 304 * @deprecated Use {@link #forNumber(int)} instead. 305 */ 306 @java.lang.Deprecated valueOf(int value)307 public static SpecCase valueOf(int value) { 308 return forNumber(value); 309 } 310 forNumber(int value)311 public static SpecCase forNumber(int value) { 312 switch (value) { 313 case 24: 314 return DATABASE_TABLE_SPEC; 315 case 27: 316 return DATA_SOURCE_CONNECTION_SPEC; 317 case 28: 318 return ROUTINE_SPEC; 319 case 33: 320 return FILESET_SPEC; 321 case 0: 322 return SPEC_NOT_SET; 323 default: 324 return null; 325 } 326 } 327 getNumber()328 public int getNumber() { 329 return this.value; 330 } 331 }; 332 getSpecCase()333 public SpecCase getSpecCase() { 334 return SpecCase.forNumber(specCase_); 335 } 336 337 public static final int NAME_FIELD_NUMBER = 1; 338 339 @SuppressWarnings("serial") 340 private volatile java.lang.Object name_ = ""; 341 /** 342 * 343 * 344 * <pre> 345 * Output only. The resource name of an entry in URL format. 346 * Note: The entry itself and its child resources might not be 347 * stored in the location specified in its name. 348 * </pre> 349 * 350 * <code> 351 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 352 * </code> 353 * 354 * @return The name. 355 */ 356 @java.lang.Override getName()357 public java.lang.String getName() { 358 java.lang.Object ref = name_; 359 if (ref instanceof java.lang.String) { 360 return (java.lang.String) ref; 361 } else { 362 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 363 java.lang.String s = bs.toStringUtf8(); 364 name_ = s; 365 return s; 366 } 367 } 368 /** 369 * 370 * 371 * <pre> 372 * Output only. The resource name of an entry in URL format. 373 * Note: The entry itself and its child resources might not be 374 * stored in the location specified in its name. 375 * </pre> 376 * 377 * <code> 378 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 379 * </code> 380 * 381 * @return The bytes for name. 382 */ 383 @java.lang.Override getNameBytes()384 public com.google.protobuf.ByteString getNameBytes() { 385 java.lang.Object ref = name_; 386 if (ref instanceof java.lang.String) { 387 com.google.protobuf.ByteString b = 388 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 389 name_ = b; 390 return b; 391 } else { 392 return (com.google.protobuf.ByteString) ref; 393 } 394 } 395 396 public static final int LINKED_RESOURCE_FIELD_NUMBER = 9; 397 398 @SuppressWarnings("serial") 399 private volatile java.lang.Object linkedResource_ = ""; 400 /** 401 * 402 * 403 * <pre> 404 * The resource this metadata entry refers to. 405 * For Google Cloud Platform resources, `linked_resource` is the 406 * [Full Resource Name] 407 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). 408 * For example, the `linked_resource` for a table resource from BigQuery is: 409 * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` 410 * Output only when the entry is one of the types in the `EntryType` enum. 411 * For entries with a `user_specified_type`, this field is optional and 412 * defaults to an empty string. 413 * The resource string must contain only letters (a-z, A-Z), numbers (0-9), 414 * underscores (_), periods (.), colons (:), slashes (/), dashes (-), 415 * and hashes (#). 416 * The maximum size is 200 bytes when encoded in UTF-8. 417 * </pre> 418 * 419 * <code>string linked_resource = 9;</code> 420 * 421 * @return The linkedResource. 422 */ 423 @java.lang.Override getLinkedResource()424 public java.lang.String getLinkedResource() { 425 java.lang.Object ref = linkedResource_; 426 if (ref instanceof java.lang.String) { 427 return (java.lang.String) ref; 428 } else { 429 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 430 java.lang.String s = bs.toStringUtf8(); 431 linkedResource_ = s; 432 return s; 433 } 434 } 435 /** 436 * 437 * 438 * <pre> 439 * The resource this metadata entry refers to. 440 * For Google Cloud Platform resources, `linked_resource` is the 441 * [Full Resource Name] 442 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). 443 * For example, the `linked_resource` for a table resource from BigQuery is: 444 * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` 445 * Output only when the entry is one of the types in the `EntryType` enum. 446 * For entries with a `user_specified_type`, this field is optional and 447 * defaults to an empty string. 448 * The resource string must contain only letters (a-z, A-Z), numbers (0-9), 449 * underscores (_), periods (.), colons (:), slashes (/), dashes (-), 450 * and hashes (#). 451 * The maximum size is 200 bytes when encoded in UTF-8. 452 * </pre> 453 * 454 * <code>string linked_resource = 9;</code> 455 * 456 * @return The bytes for linkedResource. 457 */ 458 @java.lang.Override getLinkedResourceBytes()459 public com.google.protobuf.ByteString getLinkedResourceBytes() { 460 java.lang.Object ref = linkedResource_; 461 if (ref instanceof java.lang.String) { 462 com.google.protobuf.ByteString b = 463 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 464 linkedResource_ = b; 465 return b; 466 } else { 467 return (com.google.protobuf.ByteString) ref; 468 } 469 } 470 471 public static final int FULLY_QUALIFIED_NAME_FIELD_NUMBER = 29; 472 473 @SuppressWarnings("serial") 474 private volatile java.lang.Object fullyQualifiedName_ = ""; 475 /** 476 * 477 * 478 * <pre> 479 * Fully qualified name (FQN) of the resource. Set automatically for entries 480 * representing resources from synced systems. Settable only during creation 481 * and read-only afterwards. Can be used for search and lookup of the entries. 482 * FQNs take two forms: 483 * * For non-regionalized resources: 484 * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 485 * * For regionalized resources: 486 * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 487 * Example for a DPMS table: 488 * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` 489 * </pre> 490 * 491 * <code>string fully_qualified_name = 29;</code> 492 * 493 * @return The fullyQualifiedName. 494 */ 495 @java.lang.Override getFullyQualifiedName()496 public java.lang.String getFullyQualifiedName() { 497 java.lang.Object ref = fullyQualifiedName_; 498 if (ref instanceof java.lang.String) { 499 return (java.lang.String) ref; 500 } else { 501 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 502 java.lang.String s = bs.toStringUtf8(); 503 fullyQualifiedName_ = s; 504 return s; 505 } 506 } 507 /** 508 * 509 * 510 * <pre> 511 * Fully qualified name (FQN) of the resource. Set automatically for entries 512 * representing resources from synced systems. Settable only during creation 513 * and read-only afterwards. Can be used for search and lookup of the entries. 514 * FQNs take two forms: 515 * * For non-regionalized resources: 516 * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 517 * * For regionalized resources: 518 * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 519 * Example for a DPMS table: 520 * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` 521 * </pre> 522 * 523 * <code>string fully_qualified_name = 29;</code> 524 * 525 * @return The bytes for fullyQualifiedName. 526 */ 527 @java.lang.Override getFullyQualifiedNameBytes()528 public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { 529 java.lang.Object ref = fullyQualifiedName_; 530 if (ref instanceof java.lang.String) { 531 com.google.protobuf.ByteString b = 532 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 533 fullyQualifiedName_ = b; 534 return b; 535 } else { 536 return (com.google.protobuf.ByteString) ref; 537 } 538 } 539 540 public static final int TYPE_FIELD_NUMBER = 2; 541 /** 542 * 543 * 544 * <pre> 545 * The type of the entry. 546 * Only used for entries with types listed in the `EntryType` enum. 547 * Currently, only `FILESET` enum value is allowed. All other entries 548 * created in Data Catalog must use the `user_specified_type`. 549 * </pre> 550 * 551 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 552 * 553 * @return Whether the type field is set. 554 */ hasType()555 public boolean hasType() { 556 return entryTypeCase_ == 2; 557 } 558 /** 559 * 560 * 561 * <pre> 562 * The type of the entry. 563 * Only used for entries with types listed in the `EntryType` enum. 564 * Currently, only `FILESET` enum value is allowed. All other entries 565 * created in Data Catalog must use the `user_specified_type`. 566 * </pre> 567 * 568 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 569 * 570 * @return The enum numeric value on the wire for type. 571 */ getTypeValue()572 public int getTypeValue() { 573 if (entryTypeCase_ == 2) { 574 return (java.lang.Integer) entryType_; 575 } 576 return 0; 577 } 578 /** 579 * 580 * 581 * <pre> 582 * The type of the entry. 583 * Only used for entries with types listed in the `EntryType` enum. 584 * Currently, only `FILESET` enum value is allowed. All other entries 585 * created in Data Catalog must use the `user_specified_type`. 586 * </pre> 587 * 588 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 589 * 590 * @return The type. 591 */ getType()592 public com.google.cloud.datacatalog.v1.EntryType getType() { 593 if (entryTypeCase_ == 2) { 594 com.google.cloud.datacatalog.v1.EntryType result = 595 com.google.cloud.datacatalog.v1.EntryType.forNumber((java.lang.Integer) entryType_); 596 return result == null ? com.google.cloud.datacatalog.v1.EntryType.UNRECOGNIZED : result; 597 } 598 return com.google.cloud.datacatalog.v1.EntryType.ENTRY_TYPE_UNSPECIFIED; 599 } 600 601 public static final int USER_SPECIFIED_TYPE_FIELD_NUMBER = 16; 602 /** 603 * 604 * 605 * <pre> 606 * Custom entry type that doesn't match any of the values allowed for input 607 * and listed in the `EntryType` enum. 608 * When creating an entry, first check the type values in the enum. 609 * If there are no appropriate types for the new entry, 610 * provide a custom value, for example, `my_special_type`. 611 * The `user_specified_type` string has the following limitations: 612 * * Is case insensitive. 613 * * Must begin with a letter or underscore. 614 * * Can only contain letters, numbers, and underscores. 615 * * Must be at least 1 character and at most 64 characters long. 616 * </pre> 617 * 618 * <code>string user_specified_type = 16;</code> 619 * 620 * @return Whether the userSpecifiedType field is set. 621 */ hasUserSpecifiedType()622 public boolean hasUserSpecifiedType() { 623 return entryTypeCase_ == 16; 624 } 625 /** 626 * 627 * 628 * <pre> 629 * Custom entry type that doesn't match any of the values allowed for input 630 * and listed in the `EntryType` enum. 631 * When creating an entry, first check the type values in the enum. 632 * If there are no appropriate types for the new entry, 633 * provide a custom value, for example, `my_special_type`. 634 * The `user_specified_type` string has the following limitations: 635 * * Is case insensitive. 636 * * Must begin with a letter or underscore. 637 * * Can only contain letters, numbers, and underscores. 638 * * Must be at least 1 character and at most 64 characters long. 639 * </pre> 640 * 641 * <code>string user_specified_type = 16;</code> 642 * 643 * @return The userSpecifiedType. 644 */ getUserSpecifiedType()645 public java.lang.String getUserSpecifiedType() { 646 java.lang.Object ref = ""; 647 if (entryTypeCase_ == 16) { 648 ref = entryType_; 649 } 650 if (ref instanceof java.lang.String) { 651 return (java.lang.String) ref; 652 } else { 653 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 654 java.lang.String s = bs.toStringUtf8(); 655 if (entryTypeCase_ == 16) { 656 entryType_ = s; 657 } 658 return s; 659 } 660 } 661 /** 662 * 663 * 664 * <pre> 665 * Custom entry type that doesn't match any of the values allowed for input 666 * and listed in the `EntryType` enum. 667 * When creating an entry, first check the type values in the enum. 668 * If there are no appropriate types for the new entry, 669 * provide a custom value, for example, `my_special_type`. 670 * The `user_specified_type` string has the following limitations: 671 * * Is case insensitive. 672 * * Must begin with a letter or underscore. 673 * * Can only contain letters, numbers, and underscores. 674 * * Must be at least 1 character and at most 64 characters long. 675 * </pre> 676 * 677 * <code>string user_specified_type = 16;</code> 678 * 679 * @return The bytes for userSpecifiedType. 680 */ getUserSpecifiedTypeBytes()681 public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() { 682 java.lang.Object ref = ""; 683 if (entryTypeCase_ == 16) { 684 ref = entryType_; 685 } 686 if (ref instanceof java.lang.String) { 687 com.google.protobuf.ByteString b = 688 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 689 if (entryTypeCase_ == 16) { 690 entryType_ = b; 691 } 692 return b; 693 } else { 694 return (com.google.protobuf.ByteString) ref; 695 } 696 } 697 698 public static final int INTEGRATED_SYSTEM_FIELD_NUMBER = 17; 699 /** 700 * 701 * 702 * <pre> 703 * Output only. Indicates the entry's source system that Data Catalog 704 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 705 * </pre> 706 * 707 * <code> 708 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 709 * </code> 710 * 711 * @return Whether the integratedSystem field is set. 712 */ hasIntegratedSystem()713 public boolean hasIntegratedSystem() { 714 return systemCase_ == 17; 715 } 716 /** 717 * 718 * 719 * <pre> 720 * Output only. Indicates the entry's source system that Data Catalog 721 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 722 * </pre> 723 * 724 * <code> 725 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 726 * </code> 727 * 728 * @return The enum numeric value on the wire for integratedSystem. 729 */ getIntegratedSystemValue()730 public int getIntegratedSystemValue() { 731 if (systemCase_ == 17) { 732 return (java.lang.Integer) system_; 733 } 734 return 0; 735 } 736 /** 737 * 738 * 739 * <pre> 740 * Output only. Indicates the entry's source system that Data Catalog 741 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 742 * </pre> 743 * 744 * <code> 745 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 746 * </code> 747 * 748 * @return The integratedSystem. 749 */ getIntegratedSystem()750 public com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem() { 751 if (systemCase_ == 17) { 752 com.google.cloud.datacatalog.v1.IntegratedSystem result = 753 com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber((java.lang.Integer) system_); 754 return result == null 755 ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED 756 : result; 757 } 758 return com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; 759 } 760 761 public static final int USER_SPECIFIED_SYSTEM_FIELD_NUMBER = 18; 762 /** 763 * 764 * 765 * <pre> 766 * Indicates the entry's source system that Data Catalog doesn't 767 * automatically integrate with. 768 * The `user_specified_system` string has the following limitations: 769 * * Is case insensitive. 770 * * Must begin with a letter or underscore. 771 * * Can only contain letters, numbers, and underscores. 772 * * Must be at least 1 character and at most 64 characters long. 773 * </pre> 774 * 775 * <code>string user_specified_system = 18;</code> 776 * 777 * @return Whether the userSpecifiedSystem field is set. 778 */ hasUserSpecifiedSystem()779 public boolean hasUserSpecifiedSystem() { 780 return systemCase_ == 18; 781 } 782 /** 783 * 784 * 785 * <pre> 786 * Indicates the entry's source system that Data Catalog doesn't 787 * automatically integrate with. 788 * The `user_specified_system` string has the following limitations: 789 * * Is case insensitive. 790 * * Must begin with a letter or underscore. 791 * * Can only contain letters, numbers, and underscores. 792 * * Must be at least 1 character and at most 64 characters long. 793 * </pre> 794 * 795 * <code>string user_specified_system = 18;</code> 796 * 797 * @return The userSpecifiedSystem. 798 */ getUserSpecifiedSystem()799 public java.lang.String getUserSpecifiedSystem() { 800 java.lang.Object ref = ""; 801 if (systemCase_ == 18) { 802 ref = system_; 803 } 804 if (ref instanceof java.lang.String) { 805 return (java.lang.String) ref; 806 } else { 807 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 808 java.lang.String s = bs.toStringUtf8(); 809 if (systemCase_ == 18) { 810 system_ = s; 811 } 812 return s; 813 } 814 } 815 /** 816 * 817 * 818 * <pre> 819 * Indicates the entry's source system that Data Catalog doesn't 820 * automatically integrate with. 821 * The `user_specified_system` string has the following limitations: 822 * * Is case insensitive. 823 * * Must begin with a letter or underscore. 824 * * Can only contain letters, numbers, and underscores. 825 * * Must be at least 1 character and at most 64 characters long. 826 * </pre> 827 * 828 * <code>string user_specified_system = 18;</code> 829 * 830 * @return The bytes for userSpecifiedSystem. 831 */ getUserSpecifiedSystemBytes()832 public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { 833 java.lang.Object ref = ""; 834 if (systemCase_ == 18) { 835 ref = system_; 836 } 837 if (ref instanceof java.lang.String) { 838 com.google.protobuf.ByteString b = 839 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 840 if (systemCase_ == 18) { 841 system_ = b; 842 } 843 return b; 844 } else { 845 return (com.google.protobuf.ByteString) ref; 846 } 847 } 848 849 public static final int SQL_DATABASE_SYSTEM_SPEC_FIELD_NUMBER = 39; 850 /** 851 * 852 * 853 * <pre> 854 * Specification that applies to a relational database system. Only settable 855 * when `user_specified_system` is equal to `SQL_DATABASE` 856 * </pre> 857 * 858 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39;</code> 859 * 860 * @return Whether the sqlDatabaseSystemSpec field is set. 861 */ 862 @java.lang.Override hasSqlDatabaseSystemSpec()863 public boolean hasSqlDatabaseSystemSpec() { 864 return systemSpecCase_ == 39; 865 } 866 /** 867 * 868 * 869 * <pre> 870 * Specification that applies to a relational database system. Only settable 871 * when `user_specified_system` is equal to `SQL_DATABASE` 872 * </pre> 873 * 874 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39;</code> 875 * 876 * @return The sqlDatabaseSystemSpec. 877 */ 878 @java.lang.Override getSqlDatabaseSystemSpec()879 public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getSqlDatabaseSystemSpec() { 880 if (systemSpecCase_ == 39) { 881 return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; 882 } 883 return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); 884 } 885 /** 886 * 887 * 888 * <pre> 889 * Specification that applies to a relational database system. Only settable 890 * when `user_specified_system` is equal to `SQL_DATABASE` 891 * </pre> 892 * 893 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39;</code> 894 */ 895 @java.lang.Override 896 public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder getSqlDatabaseSystemSpecOrBuilder()897 getSqlDatabaseSystemSpecOrBuilder() { 898 if (systemSpecCase_ == 39) { 899 return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; 900 } 901 return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); 902 } 903 904 public static final int LOOKER_SYSTEM_SPEC_FIELD_NUMBER = 40; 905 /** 906 * 907 * 908 * <pre> 909 * Specification that applies to Looker sysstem. Only settable when 910 * `user_specified_system` is equal to `LOOKER` 911 * </pre> 912 * 913 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 914 * 915 * @return Whether the lookerSystemSpec field is set. 916 */ 917 @java.lang.Override hasLookerSystemSpec()918 public boolean hasLookerSystemSpec() { 919 return systemSpecCase_ == 40; 920 } 921 /** 922 * 923 * 924 * <pre> 925 * Specification that applies to Looker sysstem. Only settable when 926 * `user_specified_system` is equal to `LOOKER` 927 * </pre> 928 * 929 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 930 * 931 * @return The lookerSystemSpec. 932 */ 933 @java.lang.Override getLookerSystemSpec()934 public com.google.cloud.datacatalog.v1.LookerSystemSpec getLookerSystemSpec() { 935 if (systemSpecCase_ == 40) { 936 return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; 937 } 938 return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); 939 } 940 /** 941 * 942 * 943 * <pre> 944 * Specification that applies to Looker sysstem. Only settable when 945 * `user_specified_system` is equal to `LOOKER` 946 * </pre> 947 * 948 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 949 */ 950 @java.lang.Override getLookerSystemSpecOrBuilder()951 public com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder getLookerSystemSpecOrBuilder() { 952 if (systemSpecCase_ == 40) { 953 return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; 954 } 955 return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); 956 } 957 958 public static final int GCS_FILESET_SPEC_FIELD_NUMBER = 6; 959 /** 960 * 961 * 962 * <pre> 963 * Specification that applies to a Cloud Storage fileset. Valid only 964 * for entries with the `FILESET` type. 965 * </pre> 966 * 967 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 968 * 969 * @return Whether the gcsFilesetSpec field is set. 970 */ 971 @java.lang.Override hasGcsFilesetSpec()972 public boolean hasGcsFilesetSpec() { 973 return typeSpecCase_ == 6; 974 } 975 /** 976 * 977 * 978 * <pre> 979 * Specification that applies to a Cloud Storage fileset. Valid only 980 * for entries with the `FILESET` type. 981 * </pre> 982 * 983 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 984 * 985 * @return The gcsFilesetSpec. 986 */ 987 @java.lang.Override getGcsFilesetSpec()988 public com.google.cloud.datacatalog.v1.GcsFilesetSpec getGcsFilesetSpec() { 989 if (typeSpecCase_ == 6) { 990 return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; 991 } 992 return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); 993 } 994 /** 995 * 996 * 997 * <pre> 998 * Specification that applies to a Cloud Storage fileset. Valid only 999 * for entries with the `FILESET` type. 1000 * </pre> 1001 * 1002 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 1003 */ 1004 @java.lang.Override getGcsFilesetSpecOrBuilder()1005 public com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder() { 1006 if (typeSpecCase_ == 6) { 1007 return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; 1008 } 1009 return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); 1010 } 1011 1012 public static final int BIGQUERY_TABLE_SPEC_FIELD_NUMBER = 12; 1013 /** 1014 * 1015 * 1016 * <pre> 1017 * Output only. Specification that applies to a BigQuery table. Valid only 1018 * for entries with the `TABLE` type. 1019 * </pre> 1020 * 1021 * <code> 1022 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1023 * </code> 1024 * 1025 * @return Whether the bigqueryTableSpec field is set. 1026 */ 1027 @java.lang.Override hasBigqueryTableSpec()1028 public boolean hasBigqueryTableSpec() { 1029 return typeSpecCase_ == 12; 1030 } 1031 /** 1032 * 1033 * 1034 * <pre> 1035 * Output only. Specification that applies to a BigQuery table. Valid only 1036 * for entries with the `TABLE` type. 1037 * </pre> 1038 * 1039 * <code> 1040 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1041 * </code> 1042 * 1043 * @return The bigqueryTableSpec. 1044 */ 1045 @java.lang.Override getBigqueryTableSpec()1046 public com.google.cloud.datacatalog.v1.BigQueryTableSpec getBigqueryTableSpec() { 1047 if (typeSpecCase_ == 12) { 1048 return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; 1049 } 1050 return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); 1051 } 1052 /** 1053 * 1054 * 1055 * <pre> 1056 * Output only. Specification that applies to a BigQuery table. Valid only 1057 * for entries with the `TABLE` type. 1058 * </pre> 1059 * 1060 * <code> 1061 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1062 * </code> 1063 */ 1064 @java.lang.Override 1065 public com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder getBigqueryTableSpecOrBuilder()1066 getBigqueryTableSpecOrBuilder() { 1067 if (typeSpecCase_ == 12) { 1068 return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; 1069 } 1070 return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); 1071 } 1072 1073 public static final int BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER = 15; 1074 /** 1075 * 1076 * 1077 * <pre> 1078 * Output only. Specification for a group of BigQuery tables with 1079 * the `[prefix]YYYYMMDD` name pattern. 1080 * For more information, see [Introduction to partitioned tables] 1081 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 1082 * </pre> 1083 * 1084 * <code> 1085 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1086 * </code> 1087 * 1088 * @return Whether the bigqueryDateShardedSpec field is set. 1089 */ 1090 @java.lang.Override hasBigqueryDateShardedSpec()1091 public boolean hasBigqueryDateShardedSpec() { 1092 return typeSpecCase_ == 15; 1093 } 1094 /** 1095 * 1096 * 1097 * <pre> 1098 * Output only. Specification for a group of BigQuery tables with 1099 * the `[prefix]YYYYMMDD` name pattern. 1100 * For more information, see [Introduction to partitioned tables] 1101 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 1102 * </pre> 1103 * 1104 * <code> 1105 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1106 * </code> 1107 * 1108 * @return The bigqueryDateShardedSpec. 1109 */ 1110 @java.lang.Override getBigqueryDateShardedSpec()1111 public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getBigqueryDateShardedSpec() { 1112 if (typeSpecCase_ == 15) { 1113 return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; 1114 } 1115 return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); 1116 } 1117 /** 1118 * 1119 * 1120 * <pre> 1121 * Output only. Specification for a group of BigQuery tables with 1122 * the `[prefix]YYYYMMDD` name pattern. 1123 * For more information, see [Introduction to partitioned tables] 1124 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 1125 * </pre> 1126 * 1127 * <code> 1128 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1129 * </code> 1130 */ 1131 @java.lang.Override 1132 public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder getBigqueryDateShardedSpecOrBuilder()1133 getBigqueryDateShardedSpecOrBuilder() { 1134 if (typeSpecCase_ == 15) { 1135 return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; 1136 } 1137 return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); 1138 } 1139 1140 public static final int DATABASE_TABLE_SPEC_FIELD_NUMBER = 24; 1141 /** 1142 * 1143 * 1144 * <pre> 1145 * Specification that applies to a table resource. Valid only 1146 * for entries with the `TABLE` or `EXPLORE` type. 1147 * </pre> 1148 * 1149 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 1150 * 1151 * @return Whether the databaseTableSpec field is set. 1152 */ 1153 @java.lang.Override hasDatabaseTableSpec()1154 public boolean hasDatabaseTableSpec() { 1155 return specCase_ == 24; 1156 } 1157 /** 1158 * 1159 * 1160 * <pre> 1161 * Specification that applies to a table resource. Valid only 1162 * for entries with the `TABLE` or `EXPLORE` type. 1163 * </pre> 1164 * 1165 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 1166 * 1167 * @return The databaseTableSpec. 1168 */ 1169 @java.lang.Override getDatabaseTableSpec()1170 public com.google.cloud.datacatalog.v1.DatabaseTableSpec getDatabaseTableSpec() { 1171 if (specCase_ == 24) { 1172 return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; 1173 } 1174 return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); 1175 } 1176 /** 1177 * 1178 * 1179 * <pre> 1180 * Specification that applies to a table resource. Valid only 1181 * for entries with the `TABLE` or `EXPLORE` type. 1182 * </pre> 1183 * 1184 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 1185 */ 1186 @java.lang.Override 1187 public com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder getDatabaseTableSpecOrBuilder()1188 getDatabaseTableSpecOrBuilder() { 1189 if (specCase_ == 24) { 1190 return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; 1191 } 1192 return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); 1193 } 1194 1195 public static final int DATA_SOURCE_CONNECTION_SPEC_FIELD_NUMBER = 27; 1196 /** 1197 * 1198 * 1199 * <pre> 1200 * Specification that applies to a data source connection. Valid only 1201 * for entries with the `DATA_SOURCE_CONNECTION` type. 1202 * </pre> 1203 * 1204 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 1205 * </code> 1206 * 1207 * @return Whether the dataSourceConnectionSpec field is set. 1208 */ 1209 @java.lang.Override hasDataSourceConnectionSpec()1210 public boolean hasDataSourceConnectionSpec() { 1211 return specCase_ == 27; 1212 } 1213 /** 1214 * 1215 * 1216 * <pre> 1217 * Specification that applies to a data source connection. Valid only 1218 * for entries with the `DATA_SOURCE_CONNECTION` type. 1219 * </pre> 1220 * 1221 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 1222 * </code> 1223 * 1224 * @return The dataSourceConnectionSpec. 1225 */ 1226 @java.lang.Override getDataSourceConnectionSpec()1227 public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDataSourceConnectionSpec() { 1228 if (specCase_ == 27) { 1229 return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; 1230 } 1231 return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); 1232 } 1233 /** 1234 * 1235 * 1236 * <pre> 1237 * Specification that applies to a data source connection. Valid only 1238 * for entries with the `DATA_SOURCE_CONNECTION` type. 1239 * </pre> 1240 * 1241 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 1242 * </code> 1243 */ 1244 @java.lang.Override 1245 public com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder getDataSourceConnectionSpecOrBuilder()1246 getDataSourceConnectionSpecOrBuilder() { 1247 if (specCase_ == 27) { 1248 return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; 1249 } 1250 return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); 1251 } 1252 1253 public static final int ROUTINE_SPEC_FIELD_NUMBER = 28; 1254 /** 1255 * 1256 * 1257 * <pre> 1258 * Specification that applies to a user-defined function or procedure. Valid 1259 * only for entries with the `ROUTINE` type. 1260 * </pre> 1261 * 1262 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 1263 * 1264 * @return Whether the routineSpec field is set. 1265 */ 1266 @java.lang.Override hasRoutineSpec()1267 public boolean hasRoutineSpec() { 1268 return specCase_ == 28; 1269 } 1270 /** 1271 * 1272 * 1273 * <pre> 1274 * Specification that applies to a user-defined function or procedure. Valid 1275 * only for entries with the `ROUTINE` type. 1276 * </pre> 1277 * 1278 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 1279 * 1280 * @return The routineSpec. 1281 */ 1282 @java.lang.Override getRoutineSpec()1283 public com.google.cloud.datacatalog.v1.RoutineSpec getRoutineSpec() { 1284 if (specCase_ == 28) { 1285 return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; 1286 } 1287 return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); 1288 } 1289 /** 1290 * 1291 * 1292 * <pre> 1293 * Specification that applies to a user-defined function or procedure. Valid 1294 * only for entries with the `ROUTINE` type. 1295 * </pre> 1296 * 1297 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 1298 */ 1299 @java.lang.Override getRoutineSpecOrBuilder()1300 public com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder getRoutineSpecOrBuilder() { 1301 if (specCase_ == 28) { 1302 return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; 1303 } 1304 return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); 1305 } 1306 1307 public static final int FILESET_SPEC_FIELD_NUMBER = 33; 1308 /** 1309 * 1310 * 1311 * <pre> 1312 * Specification that applies to a fileset resource. Valid only 1313 * for entries with the `FILESET` type. 1314 * </pre> 1315 * 1316 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 1317 * 1318 * @return Whether the filesetSpec field is set. 1319 */ 1320 @java.lang.Override hasFilesetSpec()1321 public boolean hasFilesetSpec() { 1322 return specCase_ == 33; 1323 } 1324 /** 1325 * 1326 * 1327 * <pre> 1328 * Specification that applies to a fileset resource. Valid only 1329 * for entries with the `FILESET` type. 1330 * </pre> 1331 * 1332 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 1333 * 1334 * @return The filesetSpec. 1335 */ 1336 @java.lang.Override getFilesetSpec()1337 public com.google.cloud.datacatalog.v1.FilesetSpec getFilesetSpec() { 1338 if (specCase_ == 33) { 1339 return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; 1340 } 1341 return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); 1342 } 1343 /** 1344 * 1345 * 1346 * <pre> 1347 * Specification that applies to a fileset resource. Valid only 1348 * for entries with the `FILESET` type. 1349 * </pre> 1350 * 1351 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 1352 */ 1353 @java.lang.Override getFilesetSpecOrBuilder()1354 public com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder getFilesetSpecOrBuilder() { 1355 if (specCase_ == 33) { 1356 return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; 1357 } 1358 return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); 1359 } 1360 1361 public static final int DISPLAY_NAME_FIELD_NUMBER = 3; 1362 1363 @SuppressWarnings("serial") 1364 private volatile java.lang.Object displayName_ = ""; 1365 /** 1366 * 1367 * 1368 * <pre> 1369 * Display name of an entry. 1370 * The maximum size is 500 bytes when encoded in UTF-8. 1371 * Default value is an empty string. 1372 * </pre> 1373 * 1374 * <code>string display_name = 3;</code> 1375 * 1376 * @return The displayName. 1377 */ 1378 @java.lang.Override getDisplayName()1379 public java.lang.String getDisplayName() { 1380 java.lang.Object ref = displayName_; 1381 if (ref instanceof java.lang.String) { 1382 return (java.lang.String) ref; 1383 } else { 1384 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1385 java.lang.String s = bs.toStringUtf8(); 1386 displayName_ = s; 1387 return s; 1388 } 1389 } 1390 /** 1391 * 1392 * 1393 * <pre> 1394 * Display name of an entry. 1395 * The maximum size is 500 bytes when encoded in UTF-8. 1396 * Default value is an empty string. 1397 * </pre> 1398 * 1399 * <code>string display_name = 3;</code> 1400 * 1401 * @return The bytes for displayName. 1402 */ 1403 @java.lang.Override getDisplayNameBytes()1404 public com.google.protobuf.ByteString getDisplayNameBytes() { 1405 java.lang.Object ref = displayName_; 1406 if (ref instanceof java.lang.String) { 1407 com.google.protobuf.ByteString b = 1408 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1409 displayName_ = b; 1410 return b; 1411 } else { 1412 return (com.google.protobuf.ByteString) ref; 1413 } 1414 } 1415 1416 public static final int DESCRIPTION_FIELD_NUMBER = 4; 1417 1418 @SuppressWarnings("serial") 1419 private volatile java.lang.Object description_ = ""; 1420 /** 1421 * 1422 * 1423 * <pre> 1424 * Entry description that can consist of several sentences or paragraphs 1425 * that describe entry contents. 1426 * The description must not contain Unicode non-characters as well as C0 1427 * and C1 control codes except tabs (HT), new lines (LF), carriage returns 1428 * (CR), and page breaks (FF). 1429 * The maximum size is 2000 bytes when encoded in UTF-8. 1430 * Default value is an empty string. 1431 * </pre> 1432 * 1433 * <code>string description = 4;</code> 1434 * 1435 * @return The description. 1436 */ 1437 @java.lang.Override getDescription()1438 public java.lang.String getDescription() { 1439 java.lang.Object ref = description_; 1440 if (ref instanceof java.lang.String) { 1441 return (java.lang.String) ref; 1442 } else { 1443 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1444 java.lang.String s = bs.toStringUtf8(); 1445 description_ = s; 1446 return s; 1447 } 1448 } 1449 /** 1450 * 1451 * 1452 * <pre> 1453 * Entry description that can consist of several sentences or paragraphs 1454 * that describe entry contents. 1455 * The description must not contain Unicode non-characters as well as C0 1456 * and C1 control codes except tabs (HT), new lines (LF), carriage returns 1457 * (CR), and page breaks (FF). 1458 * The maximum size is 2000 bytes when encoded in UTF-8. 1459 * Default value is an empty string. 1460 * </pre> 1461 * 1462 * <code>string description = 4;</code> 1463 * 1464 * @return The bytes for description. 1465 */ 1466 @java.lang.Override getDescriptionBytes()1467 public com.google.protobuf.ByteString getDescriptionBytes() { 1468 java.lang.Object ref = description_; 1469 if (ref instanceof java.lang.String) { 1470 com.google.protobuf.ByteString b = 1471 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1472 description_ = b; 1473 return b; 1474 } else { 1475 return (com.google.protobuf.ByteString) ref; 1476 } 1477 } 1478 1479 public static final int BUSINESS_CONTEXT_FIELD_NUMBER = 37; 1480 private com.google.cloud.datacatalog.v1.BusinessContext businessContext_; 1481 /** 1482 * 1483 * 1484 * <pre> 1485 * Business Context of the entry. Not supported for BigQuery datasets 1486 * </pre> 1487 * 1488 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 1489 * 1490 * @return Whether the businessContext field is set. 1491 */ 1492 @java.lang.Override hasBusinessContext()1493 public boolean hasBusinessContext() { 1494 return businessContext_ != null; 1495 } 1496 /** 1497 * 1498 * 1499 * <pre> 1500 * Business Context of the entry. Not supported for BigQuery datasets 1501 * </pre> 1502 * 1503 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 1504 * 1505 * @return The businessContext. 1506 */ 1507 @java.lang.Override getBusinessContext()1508 public com.google.cloud.datacatalog.v1.BusinessContext getBusinessContext() { 1509 return businessContext_ == null 1510 ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() 1511 : businessContext_; 1512 } 1513 /** 1514 * 1515 * 1516 * <pre> 1517 * Business Context of the entry. Not supported for BigQuery datasets 1518 * </pre> 1519 * 1520 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 1521 */ 1522 @java.lang.Override getBusinessContextOrBuilder()1523 public com.google.cloud.datacatalog.v1.BusinessContextOrBuilder getBusinessContextOrBuilder() { 1524 return businessContext_ == null 1525 ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() 1526 : businessContext_; 1527 } 1528 1529 public static final int SCHEMA_FIELD_NUMBER = 5; 1530 private com.google.cloud.datacatalog.v1.Schema schema_; 1531 /** 1532 * 1533 * 1534 * <pre> 1535 * Schema of the entry. An entry might not have any schema attached to it. 1536 * </pre> 1537 * 1538 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 1539 * 1540 * @return Whether the schema field is set. 1541 */ 1542 @java.lang.Override hasSchema()1543 public boolean hasSchema() { 1544 return schema_ != null; 1545 } 1546 /** 1547 * 1548 * 1549 * <pre> 1550 * Schema of the entry. An entry might not have any schema attached to it. 1551 * </pre> 1552 * 1553 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 1554 * 1555 * @return The schema. 1556 */ 1557 @java.lang.Override getSchema()1558 public com.google.cloud.datacatalog.v1.Schema getSchema() { 1559 return schema_ == null ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() : schema_; 1560 } 1561 /** 1562 * 1563 * 1564 * <pre> 1565 * Schema of the entry. An entry might not have any schema attached to it. 1566 * </pre> 1567 * 1568 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 1569 */ 1570 @java.lang.Override getSchemaOrBuilder()1571 public com.google.cloud.datacatalog.v1.SchemaOrBuilder getSchemaOrBuilder() { 1572 return schema_ == null ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() : schema_; 1573 } 1574 1575 public static final int SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER = 7; 1576 private com.google.cloud.datacatalog.v1.SystemTimestamps sourceSystemTimestamps_; 1577 /** 1578 * 1579 * 1580 * <pre> 1581 * Timestamps from the underlying resource, not from the Data Catalog 1582 * entry. 1583 * Output only when the entry has a system listed in the `IntegratedSystem` 1584 * enum. For entries with `user_specified_system`, this field is optional 1585 * and defaults to an empty timestamp. 1586 * </pre> 1587 * 1588 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 1589 * 1590 * @return Whether the sourceSystemTimestamps field is set. 1591 */ 1592 @java.lang.Override hasSourceSystemTimestamps()1593 public boolean hasSourceSystemTimestamps() { 1594 return sourceSystemTimestamps_ != null; 1595 } 1596 /** 1597 * 1598 * 1599 * <pre> 1600 * Timestamps from the underlying resource, not from the Data Catalog 1601 * entry. 1602 * Output only when the entry has a system listed in the `IntegratedSystem` 1603 * enum. For entries with `user_specified_system`, this field is optional 1604 * and defaults to an empty timestamp. 1605 * </pre> 1606 * 1607 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 1608 * 1609 * @return The sourceSystemTimestamps. 1610 */ 1611 @java.lang.Override getSourceSystemTimestamps()1612 public com.google.cloud.datacatalog.v1.SystemTimestamps getSourceSystemTimestamps() { 1613 return sourceSystemTimestamps_ == null 1614 ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() 1615 : sourceSystemTimestamps_; 1616 } 1617 /** 1618 * 1619 * 1620 * <pre> 1621 * Timestamps from the underlying resource, not from the Data Catalog 1622 * entry. 1623 * Output only when the entry has a system listed in the `IntegratedSystem` 1624 * enum. For entries with `user_specified_system`, this field is optional 1625 * and defaults to an empty timestamp. 1626 * </pre> 1627 * 1628 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 1629 */ 1630 @java.lang.Override 1631 public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getSourceSystemTimestampsOrBuilder()1632 getSourceSystemTimestampsOrBuilder() { 1633 return sourceSystemTimestamps_ == null 1634 ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() 1635 : sourceSystemTimestamps_; 1636 } 1637 1638 public static final int USAGE_SIGNAL_FIELD_NUMBER = 13; 1639 private com.google.cloud.datacatalog.v1.UsageSignal usageSignal_; 1640 /** 1641 * 1642 * 1643 * <pre> 1644 * Resource usage statistics. 1645 * </pre> 1646 * 1647 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 1648 * 1649 * @return Whether the usageSignal field is set. 1650 */ 1651 @java.lang.Override hasUsageSignal()1652 public boolean hasUsageSignal() { 1653 return usageSignal_ != null; 1654 } 1655 /** 1656 * 1657 * 1658 * <pre> 1659 * Resource usage statistics. 1660 * </pre> 1661 * 1662 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 1663 * 1664 * @return The usageSignal. 1665 */ 1666 @java.lang.Override getUsageSignal()1667 public com.google.cloud.datacatalog.v1.UsageSignal getUsageSignal() { 1668 return usageSignal_ == null 1669 ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() 1670 : usageSignal_; 1671 } 1672 /** 1673 * 1674 * 1675 * <pre> 1676 * Resource usage statistics. 1677 * </pre> 1678 * 1679 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 1680 */ 1681 @java.lang.Override getUsageSignalOrBuilder()1682 public com.google.cloud.datacatalog.v1.UsageSignalOrBuilder getUsageSignalOrBuilder() { 1683 return usageSignal_ == null 1684 ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() 1685 : usageSignal_; 1686 } 1687 1688 public static final int LABELS_FIELD_NUMBER = 14; 1689 1690 private static final class LabelsDefaultEntryHolder { 1691 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 1692 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 1693 com.google.cloud.datacatalog.v1.Datacatalog 1694 .internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_descriptor, 1695 com.google.protobuf.WireFormat.FieldType.STRING, 1696 "", 1697 com.google.protobuf.WireFormat.FieldType.STRING, 1698 ""); 1699 } 1700 1701 @SuppressWarnings("serial") 1702 private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; 1703 internalGetLabels()1704 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { 1705 if (labels_ == null) { 1706 return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); 1707 } 1708 return labels_; 1709 } 1710 getLabelsCount()1711 public int getLabelsCount() { 1712 return internalGetLabels().getMap().size(); 1713 } 1714 /** 1715 * 1716 * 1717 * <pre> 1718 * Cloud labels attached to the entry. 1719 * In Data Catalog, you can create and modify labels attached only to custom 1720 * entries. Synced entries have unmodifiable labels that come from the source 1721 * system. 1722 * </pre> 1723 * 1724 * <code>map<string, string> labels = 14;</code> 1725 */ 1726 @java.lang.Override containsLabels(java.lang.String key)1727 public boolean containsLabels(java.lang.String key) { 1728 if (key == null) { 1729 throw new NullPointerException("map key"); 1730 } 1731 return internalGetLabels().getMap().containsKey(key); 1732 } 1733 /** Use {@link #getLabelsMap()} instead. */ 1734 @java.lang.Override 1735 @java.lang.Deprecated getLabels()1736 public java.util.Map<java.lang.String, java.lang.String> getLabels() { 1737 return getLabelsMap(); 1738 } 1739 /** 1740 * 1741 * 1742 * <pre> 1743 * Cloud labels attached to the entry. 1744 * In Data Catalog, you can create and modify labels attached only to custom 1745 * entries. Synced entries have unmodifiable labels that come from the source 1746 * system. 1747 * </pre> 1748 * 1749 * <code>map<string, string> labels = 14;</code> 1750 */ 1751 @java.lang.Override getLabelsMap()1752 public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { 1753 return internalGetLabels().getMap(); 1754 } 1755 /** 1756 * 1757 * 1758 * <pre> 1759 * Cloud labels attached to the entry. 1760 * In Data Catalog, you can create and modify labels attached only to custom 1761 * entries. Synced entries have unmodifiable labels that come from the source 1762 * system. 1763 * </pre> 1764 * 1765 * <code>map<string, string> labels = 14;</code> 1766 */ 1767 @java.lang.Override getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)1768 public /* nullable */ java.lang.String getLabelsOrDefault( 1769 java.lang.String key, 1770 /* nullable */ 1771 java.lang.String defaultValue) { 1772 if (key == null) { 1773 throw new NullPointerException("map key"); 1774 } 1775 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 1776 return map.containsKey(key) ? map.get(key) : defaultValue; 1777 } 1778 /** 1779 * 1780 * 1781 * <pre> 1782 * Cloud labels attached to the entry. 1783 * In Data Catalog, you can create and modify labels attached only to custom 1784 * entries. Synced entries have unmodifiable labels that come from the source 1785 * system. 1786 * </pre> 1787 * 1788 * <code>map<string, string> labels = 14;</code> 1789 */ 1790 @java.lang.Override getLabelsOrThrow(java.lang.String key)1791 public java.lang.String getLabelsOrThrow(java.lang.String key) { 1792 if (key == null) { 1793 throw new NullPointerException("map key"); 1794 } 1795 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 1796 if (!map.containsKey(key)) { 1797 throw new java.lang.IllegalArgumentException(); 1798 } 1799 return map.get(key); 1800 } 1801 1802 public static final int DATA_SOURCE_FIELD_NUMBER = 20; 1803 private com.google.cloud.datacatalog.v1.DataSource dataSource_; 1804 /** 1805 * 1806 * 1807 * <pre> 1808 * Output only. Physical location of the entry. 1809 * </pre> 1810 * 1811 * <code> 1812 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1813 * </code> 1814 * 1815 * @return Whether the dataSource field is set. 1816 */ 1817 @java.lang.Override hasDataSource()1818 public boolean hasDataSource() { 1819 return dataSource_ != null; 1820 } 1821 /** 1822 * 1823 * 1824 * <pre> 1825 * Output only. Physical location of the entry. 1826 * </pre> 1827 * 1828 * <code> 1829 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1830 * </code> 1831 * 1832 * @return The dataSource. 1833 */ 1834 @java.lang.Override getDataSource()1835 public com.google.cloud.datacatalog.v1.DataSource getDataSource() { 1836 return dataSource_ == null 1837 ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() 1838 : dataSource_; 1839 } 1840 /** 1841 * 1842 * 1843 * <pre> 1844 * Output only. Physical location of the entry. 1845 * </pre> 1846 * 1847 * <code> 1848 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1849 * </code> 1850 */ 1851 @java.lang.Override getDataSourceOrBuilder()1852 public com.google.cloud.datacatalog.v1.DataSourceOrBuilder getDataSourceOrBuilder() { 1853 return dataSource_ == null 1854 ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() 1855 : dataSource_; 1856 } 1857 1858 public static final int PERSONAL_DETAILS_FIELD_NUMBER = 26; 1859 private com.google.cloud.datacatalog.v1.PersonalDetails personalDetails_; 1860 /** 1861 * 1862 * 1863 * <pre> 1864 * Output only. Additional information related to the entry. Private to the 1865 * current user. 1866 * </pre> 1867 * 1868 * <code> 1869 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1870 * </code> 1871 * 1872 * @return Whether the personalDetails field is set. 1873 */ 1874 @java.lang.Override hasPersonalDetails()1875 public boolean hasPersonalDetails() { 1876 return personalDetails_ != null; 1877 } 1878 /** 1879 * 1880 * 1881 * <pre> 1882 * Output only. Additional information related to the entry. Private to the 1883 * current user. 1884 * </pre> 1885 * 1886 * <code> 1887 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1888 * </code> 1889 * 1890 * @return The personalDetails. 1891 */ 1892 @java.lang.Override getPersonalDetails()1893 public com.google.cloud.datacatalog.v1.PersonalDetails getPersonalDetails() { 1894 return personalDetails_ == null 1895 ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() 1896 : personalDetails_; 1897 } 1898 /** 1899 * 1900 * 1901 * <pre> 1902 * Output only. Additional information related to the entry. Private to the 1903 * current user. 1904 * </pre> 1905 * 1906 * <code> 1907 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1908 * </code> 1909 */ 1910 @java.lang.Override getPersonalDetailsOrBuilder()1911 public com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder getPersonalDetailsOrBuilder() { 1912 return personalDetails_ == null 1913 ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() 1914 : personalDetails_; 1915 } 1916 1917 private byte memoizedIsInitialized = -1; 1918 1919 @java.lang.Override isInitialized()1920 public final boolean isInitialized() { 1921 byte isInitialized = memoizedIsInitialized; 1922 if (isInitialized == 1) return true; 1923 if (isInitialized == 0) return false; 1924 1925 memoizedIsInitialized = 1; 1926 return true; 1927 } 1928 1929 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1930 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1931 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1932 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 1933 } 1934 if (entryTypeCase_ == 2) { 1935 output.writeEnum(2, ((java.lang.Integer) entryType_)); 1936 } 1937 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 1938 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); 1939 } 1940 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 1941 com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); 1942 } 1943 if (schema_ != null) { 1944 output.writeMessage(5, getSchema()); 1945 } 1946 if (typeSpecCase_ == 6) { 1947 output.writeMessage(6, (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_); 1948 } 1949 if (sourceSystemTimestamps_ != null) { 1950 output.writeMessage(7, getSourceSystemTimestamps()); 1951 } 1952 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { 1953 com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkedResource_); 1954 } 1955 if (typeSpecCase_ == 12) { 1956 output.writeMessage(12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); 1957 } 1958 if (usageSignal_ != null) { 1959 output.writeMessage(13, getUsageSignal()); 1960 } 1961 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 1962 output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 14); 1963 if (typeSpecCase_ == 15) { 1964 output.writeMessage(15, (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_); 1965 } 1966 if (entryTypeCase_ == 16) { 1967 com.google.protobuf.GeneratedMessageV3.writeString(output, 16, entryType_); 1968 } 1969 if (systemCase_ == 17) { 1970 output.writeEnum(17, ((java.lang.Integer) system_)); 1971 } 1972 if (systemCase_ == 18) { 1973 com.google.protobuf.GeneratedMessageV3.writeString(output, 18, system_); 1974 } 1975 if (dataSource_ != null) { 1976 output.writeMessage(20, getDataSource()); 1977 } 1978 if (specCase_ == 24) { 1979 output.writeMessage(24, (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_); 1980 } 1981 if (personalDetails_ != null) { 1982 output.writeMessage(26, getPersonalDetails()); 1983 } 1984 if (specCase_ == 27) { 1985 output.writeMessage(27, (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_); 1986 } 1987 if (specCase_ == 28) { 1988 output.writeMessage(28, (com.google.cloud.datacatalog.v1.RoutineSpec) spec_); 1989 } 1990 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { 1991 com.google.protobuf.GeneratedMessageV3.writeString(output, 29, fullyQualifiedName_); 1992 } 1993 if (specCase_ == 33) { 1994 output.writeMessage(33, (com.google.cloud.datacatalog.v1.FilesetSpec) spec_); 1995 } 1996 if (businessContext_ != null) { 1997 output.writeMessage(37, getBusinessContext()); 1998 } 1999 if (systemSpecCase_ == 39) { 2000 output.writeMessage(39, (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_); 2001 } 2002 if (systemSpecCase_ == 40) { 2003 output.writeMessage(40, (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_); 2004 } 2005 getUnknownFields().writeTo(output); 2006 } 2007 2008 @java.lang.Override getSerializedSize()2009 public int getSerializedSize() { 2010 int size = memoizedSize; 2011 if (size != -1) return size; 2012 2013 size = 0; 2014 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 2015 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 2016 } 2017 if (entryTypeCase_ == 2) { 2018 size += 2019 com.google.protobuf.CodedOutputStream.computeEnumSize( 2020 2, ((java.lang.Integer) entryType_)); 2021 } 2022 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 2023 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); 2024 } 2025 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 2026 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); 2027 } 2028 if (schema_ != null) { 2029 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema()); 2030 } 2031 if (typeSpecCase_ == 6) { 2032 size += 2033 com.google.protobuf.CodedOutputStream.computeMessageSize( 2034 6, (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_); 2035 } 2036 if (sourceSystemTimestamps_ != null) { 2037 size += 2038 com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSourceSystemTimestamps()); 2039 } 2040 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) { 2041 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkedResource_); 2042 } 2043 if (typeSpecCase_ == 12) { 2044 size += 2045 com.google.protobuf.CodedOutputStream.computeMessageSize( 2046 12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); 2047 } 2048 if (usageSignal_ != null) { 2049 size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUsageSignal()); 2050 } 2051 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 2052 internalGetLabels().getMap().entrySet()) { 2053 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = 2054 LabelsDefaultEntryHolder.defaultEntry 2055 .newBuilderForType() 2056 .setKey(entry.getKey()) 2057 .setValue(entry.getValue()) 2058 .build(); 2059 size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, labels__); 2060 } 2061 if (typeSpecCase_ == 15) { 2062 size += 2063 com.google.protobuf.CodedOutputStream.computeMessageSize( 2064 15, (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_); 2065 } 2066 if (entryTypeCase_ == 16) { 2067 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, entryType_); 2068 } 2069 if (systemCase_ == 17) { 2070 size += 2071 com.google.protobuf.CodedOutputStream.computeEnumSize(17, ((java.lang.Integer) system_)); 2072 } 2073 if (systemCase_ == 18) { 2074 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, system_); 2075 } 2076 if (dataSource_ != null) { 2077 size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getDataSource()); 2078 } 2079 if (specCase_ == 24) { 2080 size += 2081 com.google.protobuf.CodedOutputStream.computeMessageSize( 2082 24, (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_); 2083 } 2084 if (personalDetails_ != null) { 2085 size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getPersonalDetails()); 2086 } 2087 if (specCase_ == 27) { 2088 size += 2089 com.google.protobuf.CodedOutputStream.computeMessageSize( 2090 27, (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_); 2091 } 2092 if (specCase_ == 28) { 2093 size += 2094 com.google.protobuf.CodedOutputStream.computeMessageSize( 2095 28, (com.google.cloud.datacatalog.v1.RoutineSpec) spec_); 2096 } 2097 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullyQualifiedName_)) { 2098 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, fullyQualifiedName_); 2099 } 2100 if (specCase_ == 33) { 2101 size += 2102 com.google.protobuf.CodedOutputStream.computeMessageSize( 2103 33, (com.google.cloud.datacatalog.v1.FilesetSpec) spec_); 2104 } 2105 if (businessContext_ != null) { 2106 size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getBusinessContext()); 2107 } 2108 if (systemSpecCase_ == 39) { 2109 size += 2110 com.google.protobuf.CodedOutputStream.computeMessageSize( 2111 39, (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_); 2112 } 2113 if (systemSpecCase_ == 40) { 2114 size += 2115 com.google.protobuf.CodedOutputStream.computeMessageSize( 2116 40, (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_); 2117 } 2118 size += getUnknownFields().getSerializedSize(); 2119 memoizedSize = size; 2120 return size; 2121 } 2122 2123 @java.lang.Override equals(final java.lang.Object obj)2124 public boolean equals(final java.lang.Object obj) { 2125 if (obj == this) { 2126 return true; 2127 } 2128 if (!(obj instanceof com.google.cloud.datacatalog.v1.Entry)) { 2129 return super.equals(obj); 2130 } 2131 com.google.cloud.datacatalog.v1.Entry other = (com.google.cloud.datacatalog.v1.Entry) obj; 2132 2133 if (!getName().equals(other.getName())) return false; 2134 if (!getLinkedResource().equals(other.getLinkedResource())) return false; 2135 if (!getFullyQualifiedName().equals(other.getFullyQualifiedName())) return false; 2136 if (!getDisplayName().equals(other.getDisplayName())) return false; 2137 if (!getDescription().equals(other.getDescription())) return false; 2138 if (hasBusinessContext() != other.hasBusinessContext()) return false; 2139 if (hasBusinessContext()) { 2140 if (!getBusinessContext().equals(other.getBusinessContext())) return false; 2141 } 2142 if (hasSchema() != other.hasSchema()) return false; 2143 if (hasSchema()) { 2144 if (!getSchema().equals(other.getSchema())) return false; 2145 } 2146 if (hasSourceSystemTimestamps() != other.hasSourceSystemTimestamps()) return false; 2147 if (hasSourceSystemTimestamps()) { 2148 if (!getSourceSystemTimestamps().equals(other.getSourceSystemTimestamps())) return false; 2149 } 2150 if (hasUsageSignal() != other.hasUsageSignal()) return false; 2151 if (hasUsageSignal()) { 2152 if (!getUsageSignal().equals(other.getUsageSignal())) return false; 2153 } 2154 if (!internalGetLabels().equals(other.internalGetLabels())) return false; 2155 if (hasDataSource() != other.hasDataSource()) return false; 2156 if (hasDataSource()) { 2157 if (!getDataSource().equals(other.getDataSource())) return false; 2158 } 2159 if (hasPersonalDetails() != other.hasPersonalDetails()) return false; 2160 if (hasPersonalDetails()) { 2161 if (!getPersonalDetails().equals(other.getPersonalDetails())) return false; 2162 } 2163 if (!getEntryTypeCase().equals(other.getEntryTypeCase())) return false; 2164 switch (entryTypeCase_) { 2165 case 2: 2166 if (getTypeValue() != other.getTypeValue()) return false; 2167 break; 2168 case 16: 2169 if (!getUserSpecifiedType().equals(other.getUserSpecifiedType())) return false; 2170 break; 2171 case 0: 2172 default: 2173 } 2174 if (!getSystemCase().equals(other.getSystemCase())) return false; 2175 switch (systemCase_) { 2176 case 17: 2177 if (getIntegratedSystemValue() != other.getIntegratedSystemValue()) return false; 2178 break; 2179 case 18: 2180 if (!getUserSpecifiedSystem().equals(other.getUserSpecifiedSystem())) return false; 2181 break; 2182 case 0: 2183 default: 2184 } 2185 if (!getSystemSpecCase().equals(other.getSystemSpecCase())) return false; 2186 switch (systemSpecCase_) { 2187 case 39: 2188 if (!getSqlDatabaseSystemSpec().equals(other.getSqlDatabaseSystemSpec())) return false; 2189 break; 2190 case 40: 2191 if (!getLookerSystemSpec().equals(other.getLookerSystemSpec())) return false; 2192 break; 2193 case 0: 2194 default: 2195 } 2196 if (!getTypeSpecCase().equals(other.getTypeSpecCase())) return false; 2197 switch (typeSpecCase_) { 2198 case 6: 2199 if (!getGcsFilesetSpec().equals(other.getGcsFilesetSpec())) return false; 2200 break; 2201 case 12: 2202 if (!getBigqueryTableSpec().equals(other.getBigqueryTableSpec())) return false; 2203 break; 2204 case 15: 2205 if (!getBigqueryDateShardedSpec().equals(other.getBigqueryDateShardedSpec())) return false; 2206 break; 2207 case 0: 2208 default: 2209 } 2210 if (!getSpecCase().equals(other.getSpecCase())) return false; 2211 switch (specCase_) { 2212 case 24: 2213 if (!getDatabaseTableSpec().equals(other.getDatabaseTableSpec())) return false; 2214 break; 2215 case 27: 2216 if (!getDataSourceConnectionSpec().equals(other.getDataSourceConnectionSpec())) 2217 return false; 2218 break; 2219 case 28: 2220 if (!getRoutineSpec().equals(other.getRoutineSpec())) return false; 2221 break; 2222 case 33: 2223 if (!getFilesetSpec().equals(other.getFilesetSpec())) return false; 2224 break; 2225 case 0: 2226 default: 2227 } 2228 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2229 return true; 2230 } 2231 2232 @java.lang.Override hashCode()2233 public int hashCode() { 2234 if (memoizedHashCode != 0) { 2235 return memoizedHashCode; 2236 } 2237 int hash = 41; 2238 hash = (19 * hash) + getDescriptor().hashCode(); 2239 hash = (37 * hash) + NAME_FIELD_NUMBER; 2240 hash = (53 * hash) + getName().hashCode(); 2241 hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER; 2242 hash = (53 * hash) + getLinkedResource().hashCode(); 2243 hash = (37 * hash) + FULLY_QUALIFIED_NAME_FIELD_NUMBER; 2244 hash = (53 * hash) + getFullyQualifiedName().hashCode(); 2245 hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; 2246 hash = (53 * hash) + getDisplayName().hashCode(); 2247 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 2248 hash = (53 * hash) + getDescription().hashCode(); 2249 if (hasBusinessContext()) { 2250 hash = (37 * hash) + BUSINESS_CONTEXT_FIELD_NUMBER; 2251 hash = (53 * hash) + getBusinessContext().hashCode(); 2252 } 2253 if (hasSchema()) { 2254 hash = (37 * hash) + SCHEMA_FIELD_NUMBER; 2255 hash = (53 * hash) + getSchema().hashCode(); 2256 } 2257 if (hasSourceSystemTimestamps()) { 2258 hash = (37 * hash) + SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER; 2259 hash = (53 * hash) + getSourceSystemTimestamps().hashCode(); 2260 } 2261 if (hasUsageSignal()) { 2262 hash = (37 * hash) + USAGE_SIGNAL_FIELD_NUMBER; 2263 hash = (53 * hash) + getUsageSignal().hashCode(); 2264 } 2265 if (!internalGetLabels().getMap().isEmpty()) { 2266 hash = (37 * hash) + LABELS_FIELD_NUMBER; 2267 hash = (53 * hash) + internalGetLabels().hashCode(); 2268 } 2269 if (hasDataSource()) { 2270 hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; 2271 hash = (53 * hash) + getDataSource().hashCode(); 2272 } 2273 if (hasPersonalDetails()) { 2274 hash = (37 * hash) + PERSONAL_DETAILS_FIELD_NUMBER; 2275 hash = (53 * hash) + getPersonalDetails().hashCode(); 2276 } 2277 switch (entryTypeCase_) { 2278 case 2: 2279 hash = (37 * hash) + TYPE_FIELD_NUMBER; 2280 hash = (53 * hash) + getTypeValue(); 2281 break; 2282 case 16: 2283 hash = (37 * hash) + USER_SPECIFIED_TYPE_FIELD_NUMBER; 2284 hash = (53 * hash) + getUserSpecifiedType().hashCode(); 2285 break; 2286 case 0: 2287 default: 2288 } 2289 switch (systemCase_) { 2290 case 17: 2291 hash = (37 * hash) + INTEGRATED_SYSTEM_FIELD_NUMBER; 2292 hash = (53 * hash) + getIntegratedSystemValue(); 2293 break; 2294 case 18: 2295 hash = (37 * hash) + USER_SPECIFIED_SYSTEM_FIELD_NUMBER; 2296 hash = (53 * hash) + getUserSpecifiedSystem().hashCode(); 2297 break; 2298 case 0: 2299 default: 2300 } 2301 switch (systemSpecCase_) { 2302 case 39: 2303 hash = (37 * hash) + SQL_DATABASE_SYSTEM_SPEC_FIELD_NUMBER; 2304 hash = (53 * hash) + getSqlDatabaseSystemSpec().hashCode(); 2305 break; 2306 case 40: 2307 hash = (37 * hash) + LOOKER_SYSTEM_SPEC_FIELD_NUMBER; 2308 hash = (53 * hash) + getLookerSystemSpec().hashCode(); 2309 break; 2310 case 0: 2311 default: 2312 } 2313 switch (typeSpecCase_) { 2314 case 6: 2315 hash = (37 * hash) + GCS_FILESET_SPEC_FIELD_NUMBER; 2316 hash = (53 * hash) + getGcsFilesetSpec().hashCode(); 2317 break; 2318 case 12: 2319 hash = (37 * hash) + BIGQUERY_TABLE_SPEC_FIELD_NUMBER; 2320 hash = (53 * hash) + getBigqueryTableSpec().hashCode(); 2321 break; 2322 case 15: 2323 hash = (37 * hash) + BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER; 2324 hash = (53 * hash) + getBigqueryDateShardedSpec().hashCode(); 2325 break; 2326 case 0: 2327 default: 2328 } 2329 switch (specCase_) { 2330 case 24: 2331 hash = (37 * hash) + DATABASE_TABLE_SPEC_FIELD_NUMBER; 2332 hash = (53 * hash) + getDatabaseTableSpec().hashCode(); 2333 break; 2334 case 27: 2335 hash = (37 * hash) + DATA_SOURCE_CONNECTION_SPEC_FIELD_NUMBER; 2336 hash = (53 * hash) + getDataSourceConnectionSpec().hashCode(); 2337 break; 2338 case 28: 2339 hash = (37 * hash) + ROUTINE_SPEC_FIELD_NUMBER; 2340 hash = (53 * hash) + getRoutineSpec().hashCode(); 2341 break; 2342 case 33: 2343 hash = (37 * hash) + FILESET_SPEC_FIELD_NUMBER; 2344 hash = (53 * hash) + getFilesetSpec().hashCode(); 2345 break; 2346 case 0: 2347 default: 2348 } 2349 hash = (29 * hash) + getUnknownFields().hashCode(); 2350 memoizedHashCode = hash; 2351 return hash; 2352 } 2353 parseFrom(java.nio.ByteBuffer data)2354 public static com.google.cloud.datacatalog.v1.Entry parseFrom(java.nio.ByteBuffer data) 2355 throws com.google.protobuf.InvalidProtocolBufferException { 2356 return PARSER.parseFrom(data); 2357 } 2358 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2359 public static com.google.cloud.datacatalog.v1.Entry parseFrom( 2360 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2361 throws com.google.protobuf.InvalidProtocolBufferException { 2362 return PARSER.parseFrom(data, extensionRegistry); 2363 } 2364 parseFrom(com.google.protobuf.ByteString data)2365 public static com.google.cloud.datacatalog.v1.Entry parseFrom(com.google.protobuf.ByteString data) 2366 throws com.google.protobuf.InvalidProtocolBufferException { 2367 return PARSER.parseFrom(data); 2368 } 2369 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2370 public static com.google.cloud.datacatalog.v1.Entry parseFrom( 2371 com.google.protobuf.ByteString data, 2372 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2373 throws com.google.protobuf.InvalidProtocolBufferException { 2374 return PARSER.parseFrom(data, extensionRegistry); 2375 } 2376 parseFrom(byte[] data)2377 public static com.google.cloud.datacatalog.v1.Entry parseFrom(byte[] data) 2378 throws com.google.protobuf.InvalidProtocolBufferException { 2379 return PARSER.parseFrom(data); 2380 } 2381 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2382 public static com.google.cloud.datacatalog.v1.Entry parseFrom( 2383 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2384 throws com.google.protobuf.InvalidProtocolBufferException { 2385 return PARSER.parseFrom(data, extensionRegistry); 2386 } 2387 parseFrom(java.io.InputStream input)2388 public static com.google.cloud.datacatalog.v1.Entry parseFrom(java.io.InputStream input) 2389 throws java.io.IOException { 2390 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2391 } 2392 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2393 public static com.google.cloud.datacatalog.v1.Entry parseFrom( 2394 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2395 throws java.io.IOException { 2396 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2397 PARSER, input, extensionRegistry); 2398 } 2399 parseDelimitedFrom(java.io.InputStream input)2400 public static com.google.cloud.datacatalog.v1.Entry parseDelimitedFrom(java.io.InputStream input) 2401 throws java.io.IOException { 2402 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2403 } 2404 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2405 public static com.google.cloud.datacatalog.v1.Entry parseDelimitedFrom( 2406 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2407 throws java.io.IOException { 2408 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2409 PARSER, input, extensionRegistry); 2410 } 2411 parseFrom( com.google.protobuf.CodedInputStream input)2412 public static com.google.cloud.datacatalog.v1.Entry parseFrom( 2413 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2414 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2415 } 2416 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2417 public static com.google.cloud.datacatalog.v1.Entry parseFrom( 2418 com.google.protobuf.CodedInputStream input, 2419 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2420 throws java.io.IOException { 2421 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2422 PARSER, input, extensionRegistry); 2423 } 2424 2425 @java.lang.Override newBuilderForType()2426 public Builder newBuilderForType() { 2427 return newBuilder(); 2428 } 2429 newBuilder()2430 public static Builder newBuilder() { 2431 return DEFAULT_INSTANCE.toBuilder(); 2432 } 2433 newBuilder(com.google.cloud.datacatalog.v1.Entry prototype)2434 public static Builder newBuilder(com.google.cloud.datacatalog.v1.Entry prototype) { 2435 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2436 } 2437 2438 @java.lang.Override toBuilder()2439 public Builder toBuilder() { 2440 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2441 } 2442 2443 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2444 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2445 Builder builder = new Builder(parent); 2446 return builder; 2447 } 2448 /** 2449 * 2450 * 2451 * <pre> 2452 * Entry metadata. 2453 * A Data Catalog entry represents another resource in Google 2454 * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or 2455 * outside of it. You can use the `linked_resource` field 2456 * in the entry resource to refer to the original resource ID of the source 2457 * system. 2458 * An entry resource contains resource details, for example, its schema. 2459 * Additionally, you can attach flexible metadata to an entry in the form of a 2460 * [Tag][google.cloud.datacatalog.v1.Tag]. 2461 * </pre> 2462 * 2463 * Protobuf type {@code google.cloud.datacatalog.v1.Entry} 2464 */ 2465 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2466 implements 2467 // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Entry) 2468 com.google.cloud.datacatalog.v1.EntryOrBuilder { getDescriptor()2469 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2470 return com.google.cloud.datacatalog.v1.Datacatalog 2471 .internal_static_google_cloud_datacatalog_v1_Entry_descriptor; 2472 } 2473 2474 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)2475 protected com.google.protobuf.MapField internalGetMapField(int number) { 2476 switch (number) { 2477 case 14: 2478 return internalGetLabels(); 2479 default: 2480 throw new RuntimeException("Invalid map field number: " + number); 2481 } 2482 } 2483 2484 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)2485 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 2486 switch (number) { 2487 case 14: 2488 return internalGetMutableLabels(); 2489 default: 2490 throw new RuntimeException("Invalid map field number: " + number); 2491 } 2492 } 2493 2494 @java.lang.Override 2495 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2496 internalGetFieldAccessorTable() { 2497 return com.google.cloud.datacatalog.v1.Datacatalog 2498 .internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable 2499 .ensureFieldAccessorsInitialized( 2500 com.google.cloud.datacatalog.v1.Entry.class, 2501 com.google.cloud.datacatalog.v1.Entry.Builder.class); 2502 } 2503 2504 // Construct using com.google.cloud.datacatalog.v1.Entry.newBuilder() Builder()2505 private Builder() {} 2506 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2507 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2508 super(parent); 2509 } 2510 2511 @java.lang.Override clear()2512 public Builder clear() { 2513 super.clear(); 2514 bitField0_ = 0; 2515 name_ = ""; 2516 linkedResource_ = ""; 2517 fullyQualifiedName_ = ""; 2518 if (sqlDatabaseSystemSpecBuilder_ != null) { 2519 sqlDatabaseSystemSpecBuilder_.clear(); 2520 } 2521 if (lookerSystemSpecBuilder_ != null) { 2522 lookerSystemSpecBuilder_.clear(); 2523 } 2524 if (gcsFilesetSpecBuilder_ != null) { 2525 gcsFilesetSpecBuilder_.clear(); 2526 } 2527 if (bigqueryTableSpecBuilder_ != null) { 2528 bigqueryTableSpecBuilder_.clear(); 2529 } 2530 if (bigqueryDateShardedSpecBuilder_ != null) { 2531 bigqueryDateShardedSpecBuilder_.clear(); 2532 } 2533 if (databaseTableSpecBuilder_ != null) { 2534 databaseTableSpecBuilder_.clear(); 2535 } 2536 if (dataSourceConnectionSpecBuilder_ != null) { 2537 dataSourceConnectionSpecBuilder_.clear(); 2538 } 2539 if (routineSpecBuilder_ != null) { 2540 routineSpecBuilder_.clear(); 2541 } 2542 if (filesetSpecBuilder_ != null) { 2543 filesetSpecBuilder_.clear(); 2544 } 2545 displayName_ = ""; 2546 description_ = ""; 2547 businessContext_ = null; 2548 if (businessContextBuilder_ != null) { 2549 businessContextBuilder_.dispose(); 2550 businessContextBuilder_ = null; 2551 } 2552 schema_ = null; 2553 if (schemaBuilder_ != null) { 2554 schemaBuilder_.dispose(); 2555 schemaBuilder_ = null; 2556 } 2557 sourceSystemTimestamps_ = null; 2558 if (sourceSystemTimestampsBuilder_ != null) { 2559 sourceSystemTimestampsBuilder_.dispose(); 2560 sourceSystemTimestampsBuilder_ = null; 2561 } 2562 usageSignal_ = null; 2563 if (usageSignalBuilder_ != null) { 2564 usageSignalBuilder_.dispose(); 2565 usageSignalBuilder_ = null; 2566 } 2567 internalGetMutableLabels().clear(); 2568 dataSource_ = null; 2569 if (dataSourceBuilder_ != null) { 2570 dataSourceBuilder_.dispose(); 2571 dataSourceBuilder_ = null; 2572 } 2573 personalDetails_ = null; 2574 if (personalDetailsBuilder_ != null) { 2575 personalDetailsBuilder_.dispose(); 2576 personalDetailsBuilder_ = null; 2577 } 2578 entryTypeCase_ = 0; 2579 entryType_ = null; 2580 systemCase_ = 0; 2581 system_ = null; 2582 systemSpecCase_ = 0; 2583 systemSpec_ = null; 2584 typeSpecCase_ = 0; 2585 typeSpec_ = null; 2586 specCase_ = 0; 2587 spec_ = null; 2588 return this; 2589 } 2590 2591 @java.lang.Override getDescriptorForType()2592 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2593 return com.google.cloud.datacatalog.v1.Datacatalog 2594 .internal_static_google_cloud_datacatalog_v1_Entry_descriptor; 2595 } 2596 2597 @java.lang.Override getDefaultInstanceForType()2598 public com.google.cloud.datacatalog.v1.Entry getDefaultInstanceForType() { 2599 return com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); 2600 } 2601 2602 @java.lang.Override build()2603 public com.google.cloud.datacatalog.v1.Entry build() { 2604 com.google.cloud.datacatalog.v1.Entry result = buildPartial(); 2605 if (!result.isInitialized()) { 2606 throw newUninitializedMessageException(result); 2607 } 2608 return result; 2609 } 2610 2611 @java.lang.Override buildPartial()2612 public com.google.cloud.datacatalog.v1.Entry buildPartial() { 2613 com.google.cloud.datacatalog.v1.Entry result = 2614 new com.google.cloud.datacatalog.v1.Entry(this); 2615 if (bitField0_ != 0) { 2616 buildPartial0(result); 2617 } 2618 buildPartialOneofs(result); 2619 onBuilt(); 2620 return result; 2621 } 2622 buildPartial0(com.google.cloud.datacatalog.v1.Entry result)2623 private void buildPartial0(com.google.cloud.datacatalog.v1.Entry result) { 2624 int from_bitField0_ = bitField0_; 2625 if (((from_bitField0_ & 0x00000001) != 0)) { 2626 result.name_ = name_; 2627 } 2628 if (((from_bitField0_ & 0x00000002) != 0)) { 2629 result.linkedResource_ = linkedResource_; 2630 } 2631 if (((from_bitField0_ & 0x00000004) != 0)) { 2632 result.fullyQualifiedName_ = fullyQualifiedName_; 2633 } 2634 if (((from_bitField0_ & 0x00010000) != 0)) { 2635 result.displayName_ = displayName_; 2636 } 2637 if (((from_bitField0_ & 0x00020000) != 0)) { 2638 result.description_ = description_; 2639 } 2640 if (((from_bitField0_ & 0x00040000) != 0)) { 2641 result.businessContext_ = 2642 businessContextBuilder_ == null ? businessContext_ : businessContextBuilder_.build(); 2643 } 2644 if (((from_bitField0_ & 0x00080000) != 0)) { 2645 result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); 2646 } 2647 if (((from_bitField0_ & 0x00100000) != 0)) { 2648 result.sourceSystemTimestamps_ = 2649 sourceSystemTimestampsBuilder_ == null 2650 ? sourceSystemTimestamps_ 2651 : sourceSystemTimestampsBuilder_.build(); 2652 } 2653 if (((from_bitField0_ & 0x00200000) != 0)) { 2654 result.usageSignal_ = 2655 usageSignalBuilder_ == null ? usageSignal_ : usageSignalBuilder_.build(); 2656 } 2657 if (((from_bitField0_ & 0x00400000) != 0)) { 2658 result.labels_ = internalGetLabels(); 2659 result.labels_.makeImmutable(); 2660 } 2661 if (((from_bitField0_ & 0x00800000) != 0)) { 2662 result.dataSource_ = dataSourceBuilder_ == null ? dataSource_ : dataSourceBuilder_.build(); 2663 } 2664 if (((from_bitField0_ & 0x01000000) != 0)) { 2665 result.personalDetails_ = 2666 personalDetailsBuilder_ == null ? personalDetails_ : personalDetailsBuilder_.build(); 2667 } 2668 } 2669 buildPartialOneofs(com.google.cloud.datacatalog.v1.Entry result)2670 private void buildPartialOneofs(com.google.cloud.datacatalog.v1.Entry result) { 2671 result.entryTypeCase_ = entryTypeCase_; 2672 result.entryType_ = this.entryType_; 2673 result.systemCase_ = systemCase_; 2674 result.system_ = this.system_; 2675 result.systemSpecCase_ = systemSpecCase_; 2676 result.systemSpec_ = this.systemSpec_; 2677 if (systemSpecCase_ == 39 && sqlDatabaseSystemSpecBuilder_ != null) { 2678 result.systemSpec_ = sqlDatabaseSystemSpecBuilder_.build(); 2679 } 2680 if (systemSpecCase_ == 40 && lookerSystemSpecBuilder_ != null) { 2681 result.systemSpec_ = lookerSystemSpecBuilder_.build(); 2682 } 2683 result.typeSpecCase_ = typeSpecCase_; 2684 result.typeSpec_ = this.typeSpec_; 2685 if (typeSpecCase_ == 6 && gcsFilesetSpecBuilder_ != null) { 2686 result.typeSpec_ = gcsFilesetSpecBuilder_.build(); 2687 } 2688 if (typeSpecCase_ == 12 && bigqueryTableSpecBuilder_ != null) { 2689 result.typeSpec_ = bigqueryTableSpecBuilder_.build(); 2690 } 2691 if (typeSpecCase_ == 15 && bigqueryDateShardedSpecBuilder_ != null) { 2692 result.typeSpec_ = bigqueryDateShardedSpecBuilder_.build(); 2693 } 2694 result.specCase_ = specCase_; 2695 result.spec_ = this.spec_; 2696 if (specCase_ == 24 && databaseTableSpecBuilder_ != null) { 2697 result.spec_ = databaseTableSpecBuilder_.build(); 2698 } 2699 if (specCase_ == 27 && dataSourceConnectionSpecBuilder_ != null) { 2700 result.spec_ = dataSourceConnectionSpecBuilder_.build(); 2701 } 2702 if (specCase_ == 28 && routineSpecBuilder_ != null) { 2703 result.spec_ = routineSpecBuilder_.build(); 2704 } 2705 if (specCase_ == 33 && filesetSpecBuilder_ != null) { 2706 result.spec_ = filesetSpecBuilder_.build(); 2707 } 2708 } 2709 2710 @java.lang.Override clone()2711 public Builder clone() { 2712 return super.clone(); 2713 } 2714 2715 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2716 public Builder setField( 2717 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2718 return super.setField(field, value); 2719 } 2720 2721 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2722 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2723 return super.clearField(field); 2724 } 2725 2726 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2727 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2728 return super.clearOneof(oneof); 2729 } 2730 2731 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2732 public Builder setRepeatedField( 2733 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2734 return super.setRepeatedField(field, index, value); 2735 } 2736 2737 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2738 public Builder addRepeatedField( 2739 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2740 return super.addRepeatedField(field, value); 2741 } 2742 2743 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2744 public Builder mergeFrom(com.google.protobuf.Message other) { 2745 if (other instanceof com.google.cloud.datacatalog.v1.Entry) { 2746 return mergeFrom((com.google.cloud.datacatalog.v1.Entry) other); 2747 } else { 2748 super.mergeFrom(other); 2749 return this; 2750 } 2751 } 2752 mergeFrom(com.google.cloud.datacatalog.v1.Entry other)2753 public Builder mergeFrom(com.google.cloud.datacatalog.v1.Entry other) { 2754 if (other == com.google.cloud.datacatalog.v1.Entry.getDefaultInstance()) return this; 2755 if (!other.getName().isEmpty()) { 2756 name_ = other.name_; 2757 bitField0_ |= 0x00000001; 2758 onChanged(); 2759 } 2760 if (!other.getLinkedResource().isEmpty()) { 2761 linkedResource_ = other.linkedResource_; 2762 bitField0_ |= 0x00000002; 2763 onChanged(); 2764 } 2765 if (!other.getFullyQualifiedName().isEmpty()) { 2766 fullyQualifiedName_ = other.fullyQualifiedName_; 2767 bitField0_ |= 0x00000004; 2768 onChanged(); 2769 } 2770 if (!other.getDisplayName().isEmpty()) { 2771 displayName_ = other.displayName_; 2772 bitField0_ |= 0x00010000; 2773 onChanged(); 2774 } 2775 if (!other.getDescription().isEmpty()) { 2776 description_ = other.description_; 2777 bitField0_ |= 0x00020000; 2778 onChanged(); 2779 } 2780 if (other.hasBusinessContext()) { 2781 mergeBusinessContext(other.getBusinessContext()); 2782 } 2783 if (other.hasSchema()) { 2784 mergeSchema(other.getSchema()); 2785 } 2786 if (other.hasSourceSystemTimestamps()) { 2787 mergeSourceSystemTimestamps(other.getSourceSystemTimestamps()); 2788 } 2789 if (other.hasUsageSignal()) { 2790 mergeUsageSignal(other.getUsageSignal()); 2791 } 2792 internalGetMutableLabels().mergeFrom(other.internalGetLabels()); 2793 bitField0_ |= 0x00400000; 2794 if (other.hasDataSource()) { 2795 mergeDataSource(other.getDataSource()); 2796 } 2797 if (other.hasPersonalDetails()) { 2798 mergePersonalDetails(other.getPersonalDetails()); 2799 } 2800 switch (other.getEntryTypeCase()) { 2801 case TYPE: 2802 { 2803 setTypeValue(other.getTypeValue()); 2804 break; 2805 } 2806 case USER_SPECIFIED_TYPE: 2807 { 2808 entryTypeCase_ = 16; 2809 entryType_ = other.entryType_; 2810 onChanged(); 2811 break; 2812 } 2813 case ENTRYTYPE_NOT_SET: 2814 { 2815 break; 2816 } 2817 } 2818 switch (other.getSystemCase()) { 2819 case INTEGRATED_SYSTEM: 2820 { 2821 setIntegratedSystemValue(other.getIntegratedSystemValue()); 2822 break; 2823 } 2824 case USER_SPECIFIED_SYSTEM: 2825 { 2826 systemCase_ = 18; 2827 system_ = other.system_; 2828 onChanged(); 2829 break; 2830 } 2831 case SYSTEM_NOT_SET: 2832 { 2833 break; 2834 } 2835 } 2836 switch (other.getSystemSpecCase()) { 2837 case SQL_DATABASE_SYSTEM_SPEC: 2838 { 2839 mergeSqlDatabaseSystemSpec(other.getSqlDatabaseSystemSpec()); 2840 break; 2841 } 2842 case LOOKER_SYSTEM_SPEC: 2843 { 2844 mergeLookerSystemSpec(other.getLookerSystemSpec()); 2845 break; 2846 } 2847 case SYSTEMSPEC_NOT_SET: 2848 { 2849 break; 2850 } 2851 } 2852 switch (other.getTypeSpecCase()) { 2853 case GCS_FILESET_SPEC: 2854 { 2855 mergeGcsFilesetSpec(other.getGcsFilesetSpec()); 2856 break; 2857 } 2858 case BIGQUERY_TABLE_SPEC: 2859 { 2860 mergeBigqueryTableSpec(other.getBigqueryTableSpec()); 2861 break; 2862 } 2863 case BIGQUERY_DATE_SHARDED_SPEC: 2864 { 2865 mergeBigqueryDateShardedSpec(other.getBigqueryDateShardedSpec()); 2866 break; 2867 } 2868 case TYPESPEC_NOT_SET: 2869 { 2870 break; 2871 } 2872 } 2873 switch (other.getSpecCase()) { 2874 case DATABASE_TABLE_SPEC: 2875 { 2876 mergeDatabaseTableSpec(other.getDatabaseTableSpec()); 2877 break; 2878 } 2879 case DATA_SOURCE_CONNECTION_SPEC: 2880 { 2881 mergeDataSourceConnectionSpec(other.getDataSourceConnectionSpec()); 2882 break; 2883 } 2884 case ROUTINE_SPEC: 2885 { 2886 mergeRoutineSpec(other.getRoutineSpec()); 2887 break; 2888 } 2889 case FILESET_SPEC: 2890 { 2891 mergeFilesetSpec(other.getFilesetSpec()); 2892 break; 2893 } 2894 case SPEC_NOT_SET: 2895 { 2896 break; 2897 } 2898 } 2899 this.mergeUnknownFields(other.getUnknownFields()); 2900 onChanged(); 2901 return this; 2902 } 2903 2904 @java.lang.Override isInitialized()2905 public final boolean isInitialized() { 2906 return true; 2907 } 2908 2909 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2910 public Builder mergeFrom( 2911 com.google.protobuf.CodedInputStream input, 2912 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2913 throws java.io.IOException { 2914 if (extensionRegistry == null) { 2915 throw new java.lang.NullPointerException(); 2916 } 2917 try { 2918 boolean done = false; 2919 while (!done) { 2920 int tag = input.readTag(); 2921 switch (tag) { 2922 case 0: 2923 done = true; 2924 break; 2925 case 10: 2926 { 2927 name_ = input.readStringRequireUtf8(); 2928 bitField0_ |= 0x00000001; 2929 break; 2930 } // case 10 2931 case 16: 2932 { 2933 int rawValue = input.readEnum(); 2934 entryTypeCase_ = 2; 2935 entryType_ = rawValue; 2936 break; 2937 } // case 16 2938 case 26: 2939 { 2940 displayName_ = input.readStringRequireUtf8(); 2941 bitField0_ |= 0x00010000; 2942 break; 2943 } // case 26 2944 case 34: 2945 { 2946 description_ = input.readStringRequireUtf8(); 2947 bitField0_ |= 0x00020000; 2948 break; 2949 } // case 34 2950 case 42: 2951 { 2952 input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); 2953 bitField0_ |= 0x00080000; 2954 break; 2955 } // case 42 2956 case 50: 2957 { 2958 input.readMessage(getGcsFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); 2959 typeSpecCase_ = 6; 2960 break; 2961 } // case 50 2962 case 58: 2963 { 2964 input.readMessage( 2965 getSourceSystemTimestampsFieldBuilder().getBuilder(), extensionRegistry); 2966 bitField0_ |= 0x00100000; 2967 break; 2968 } // case 58 2969 case 74: 2970 { 2971 linkedResource_ = input.readStringRequireUtf8(); 2972 bitField0_ |= 0x00000002; 2973 break; 2974 } // case 74 2975 case 98: 2976 { 2977 input.readMessage( 2978 getBigqueryTableSpecFieldBuilder().getBuilder(), extensionRegistry); 2979 typeSpecCase_ = 12; 2980 break; 2981 } // case 98 2982 case 106: 2983 { 2984 input.readMessage(getUsageSignalFieldBuilder().getBuilder(), extensionRegistry); 2985 bitField0_ |= 0x00200000; 2986 break; 2987 } // case 106 2988 case 114: 2989 { 2990 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = 2991 input.readMessage( 2992 LabelsDefaultEntryHolder.defaultEntry.getParserForType(), 2993 extensionRegistry); 2994 internalGetMutableLabels() 2995 .getMutableMap() 2996 .put(labels__.getKey(), labels__.getValue()); 2997 bitField0_ |= 0x00400000; 2998 break; 2999 } // case 114 3000 case 122: 3001 { 3002 input.readMessage( 3003 getBigqueryDateShardedSpecFieldBuilder().getBuilder(), extensionRegistry); 3004 typeSpecCase_ = 15; 3005 break; 3006 } // case 122 3007 case 130: 3008 { 3009 java.lang.String s = input.readStringRequireUtf8(); 3010 entryTypeCase_ = 16; 3011 entryType_ = s; 3012 break; 3013 } // case 130 3014 case 136: 3015 { 3016 int rawValue = input.readEnum(); 3017 systemCase_ = 17; 3018 system_ = rawValue; 3019 break; 3020 } // case 136 3021 case 146: 3022 { 3023 java.lang.String s = input.readStringRequireUtf8(); 3024 systemCase_ = 18; 3025 system_ = s; 3026 break; 3027 } // case 146 3028 case 162: 3029 { 3030 input.readMessage(getDataSourceFieldBuilder().getBuilder(), extensionRegistry); 3031 bitField0_ |= 0x00800000; 3032 break; 3033 } // case 162 3034 case 194: 3035 { 3036 input.readMessage( 3037 getDatabaseTableSpecFieldBuilder().getBuilder(), extensionRegistry); 3038 specCase_ = 24; 3039 break; 3040 } // case 194 3041 case 210: 3042 { 3043 input.readMessage(getPersonalDetailsFieldBuilder().getBuilder(), extensionRegistry); 3044 bitField0_ |= 0x01000000; 3045 break; 3046 } // case 210 3047 case 218: 3048 { 3049 input.readMessage( 3050 getDataSourceConnectionSpecFieldBuilder().getBuilder(), extensionRegistry); 3051 specCase_ = 27; 3052 break; 3053 } // case 218 3054 case 226: 3055 { 3056 input.readMessage(getRoutineSpecFieldBuilder().getBuilder(), extensionRegistry); 3057 specCase_ = 28; 3058 break; 3059 } // case 226 3060 case 234: 3061 { 3062 fullyQualifiedName_ = input.readStringRequireUtf8(); 3063 bitField0_ |= 0x00000004; 3064 break; 3065 } // case 234 3066 case 266: 3067 { 3068 input.readMessage(getFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); 3069 specCase_ = 33; 3070 break; 3071 } // case 266 3072 case 298: 3073 { 3074 input.readMessage(getBusinessContextFieldBuilder().getBuilder(), extensionRegistry); 3075 bitField0_ |= 0x00040000; 3076 break; 3077 } // case 298 3078 case 314: 3079 { 3080 input.readMessage( 3081 getSqlDatabaseSystemSpecFieldBuilder().getBuilder(), extensionRegistry); 3082 systemSpecCase_ = 39; 3083 break; 3084 } // case 314 3085 case 322: 3086 { 3087 input.readMessage( 3088 getLookerSystemSpecFieldBuilder().getBuilder(), extensionRegistry); 3089 systemSpecCase_ = 40; 3090 break; 3091 } // case 322 3092 default: 3093 { 3094 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 3095 done = true; // was an endgroup tag 3096 } 3097 break; 3098 } // default: 3099 } // switch (tag) 3100 } // while (!done) 3101 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3102 throw e.unwrapIOException(); 3103 } finally { 3104 onChanged(); 3105 } // finally 3106 return this; 3107 } 3108 3109 private int entryTypeCase_ = 0; 3110 private java.lang.Object entryType_; 3111 getEntryTypeCase()3112 public EntryTypeCase getEntryTypeCase() { 3113 return EntryTypeCase.forNumber(entryTypeCase_); 3114 } 3115 clearEntryType()3116 public Builder clearEntryType() { 3117 entryTypeCase_ = 0; 3118 entryType_ = null; 3119 onChanged(); 3120 return this; 3121 } 3122 3123 private int systemCase_ = 0; 3124 private java.lang.Object system_; 3125 getSystemCase()3126 public SystemCase getSystemCase() { 3127 return SystemCase.forNumber(systemCase_); 3128 } 3129 clearSystem()3130 public Builder clearSystem() { 3131 systemCase_ = 0; 3132 system_ = null; 3133 onChanged(); 3134 return this; 3135 } 3136 3137 private int systemSpecCase_ = 0; 3138 private java.lang.Object systemSpec_; 3139 getSystemSpecCase()3140 public SystemSpecCase getSystemSpecCase() { 3141 return SystemSpecCase.forNumber(systemSpecCase_); 3142 } 3143 clearSystemSpec()3144 public Builder clearSystemSpec() { 3145 systemSpecCase_ = 0; 3146 systemSpec_ = null; 3147 onChanged(); 3148 return this; 3149 } 3150 3151 private int typeSpecCase_ = 0; 3152 private java.lang.Object typeSpec_; 3153 getTypeSpecCase()3154 public TypeSpecCase getTypeSpecCase() { 3155 return TypeSpecCase.forNumber(typeSpecCase_); 3156 } 3157 clearTypeSpec()3158 public Builder clearTypeSpec() { 3159 typeSpecCase_ = 0; 3160 typeSpec_ = null; 3161 onChanged(); 3162 return this; 3163 } 3164 3165 private int specCase_ = 0; 3166 private java.lang.Object spec_; 3167 getSpecCase()3168 public SpecCase getSpecCase() { 3169 return SpecCase.forNumber(specCase_); 3170 } 3171 clearSpec()3172 public Builder clearSpec() { 3173 specCase_ = 0; 3174 spec_ = null; 3175 onChanged(); 3176 return this; 3177 } 3178 3179 private int bitField0_; 3180 3181 private java.lang.Object name_ = ""; 3182 /** 3183 * 3184 * 3185 * <pre> 3186 * Output only. The resource name of an entry in URL format. 3187 * Note: The entry itself and its child resources might not be 3188 * stored in the location specified in its name. 3189 * </pre> 3190 * 3191 * <code> 3192 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 3193 * </code> 3194 * 3195 * @return The name. 3196 */ getName()3197 public java.lang.String getName() { 3198 java.lang.Object ref = name_; 3199 if (!(ref instanceof java.lang.String)) { 3200 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3201 java.lang.String s = bs.toStringUtf8(); 3202 name_ = s; 3203 return s; 3204 } else { 3205 return (java.lang.String) ref; 3206 } 3207 } 3208 /** 3209 * 3210 * 3211 * <pre> 3212 * Output only. The resource name of an entry in URL format. 3213 * Note: The entry itself and its child resources might not be 3214 * stored in the location specified in its name. 3215 * </pre> 3216 * 3217 * <code> 3218 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 3219 * </code> 3220 * 3221 * @return The bytes for name. 3222 */ getNameBytes()3223 public com.google.protobuf.ByteString getNameBytes() { 3224 java.lang.Object ref = name_; 3225 if (ref instanceof String) { 3226 com.google.protobuf.ByteString b = 3227 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3228 name_ = b; 3229 return b; 3230 } else { 3231 return (com.google.protobuf.ByteString) ref; 3232 } 3233 } 3234 /** 3235 * 3236 * 3237 * <pre> 3238 * Output only. The resource name of an entry in URL format. 3239 * Note: The entry itself and its child resources might not be 3240 * stored in the location specified in its name. 3241 * </pre> 3242 * 3243 * <code> 3244 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 3245 * </code> 3246 * 3247 * @param value The name to set. 3248 * @return This builder for chaining. 3249 */ setName(java.lang.String value)3250 public Builder setName(java.lang.String value) { 3251 if (value == null) { 3252 throw new NullPointerException(); 3253 } 3254 name_ = value; 3255 bitField0_ |= 0x00000001; 3256 onChanged(); 3257 return this; 3258 } 3259 /** 3260 * 3261 * 3262 * <pre> 3263 * Output only. The resource name of an entry in URL format. 3264 * Note: The entry itself and its child resources might not be 3265 * stored in the location specified in its name. 3266 * </pre> 3267 * 3268 * <code> 3269 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 3270 * </code> 3271 * 3272 * @return This builder for chaining. 3273 */ clearName()3274 public Builder clearName() { 3275 name_ = getDefaultInstance().getName(); 3276 bitField0_ = (bitField0_ & ~0x00000001); 3277 onChanged(); 3278 return this; 3279 } 3280 /** 3281 * 3282 * 3283 * <pre> 3284 * Output only. The resource name of an entry in URL format. 3285 * Note: The entry itself and its child resources might not be 3286 * stored in the location specified in its name. 3287 * </pre> 3288 * 3289 * <code> 3290 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 3291 * </code> 3292 * 3293 * @param value The bytes for name to set. 3294 * @return This builder for chaining. 3295 */ setNameBytes(com.google.protobuf.ByteString value)3296 public Builder setNameBytes(com.google.protobuf.ByteString value) { 3297 if (value == null) { 3298 throw new NullPointerException(); 3299 } 3300 checkByteStringIsUtf8(value); 3301 name_ = value; 3302 bitField0_ |= 0x00000001; 3303 onChanged(); 3304 return this; 3305 } 3306 3307 private java.lang.Object linkedResource_ = ""; 3308 /** 3309 * 3310 * 3311 * <pre> 3312 * The resource this metadata entry refers to. 3313 * For Google Cloud Platform resources, `linked_resource` is the 3314 * [Full Resource Name] 3315 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). 3316 * For example, the `linked_resource` for a table resource from BigQuery is: 3317 * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` 3318 * Output only when the entry is one of the types in the `EntryType` enum. 3319 * For entries with a `user_specified_type`, this field is optional and 3320 * defaults to an empty string. 3321 * The resource string must contain only letters (a-z, A-Z), numbers (0-9), 3322 * underscores (_), periods (.), colons (:), slashes (/), dashes (-), 3323 * and hashes (#). 3324 * The maximum size is 200 bytes when encoded in UTF-8. 3325 * </pre> 3326 * 3327 * <code>string linked_resource = 9;</code> 3328 * 3329 * @return The linkedResource. 3330 */ getLinkedResource()3331 public java.lang.String getLinkedResource() { 3332 java.lang.Object ref = linkedResource_; 3333 if (!(ref instanceof java.lang.String)) { 3334 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3335 java.lang.String s = bs.toStringUtf8(); 3336 linkedResource_ = s; 3337 return s; 3338 } else { 3339 return (java.lang.String) ref; 3340 } 3341 } 3342 /** 3343 * 3344 * 3345 * <pre> 3346 * The resource this metadata entry refers to. 3347 * For Google Cloud Platform resources, `linked_resource` is the 3348 * [Full Resource Name] 3349 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). 3350 * For example, the `linked_resource` for a table resource from BigQuery is: 3351 * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` 3352 * Output only when the entry is one of the types in the `EntryType` enum. 3353 * For entries with a `user_specified_type`, this field is optional and 3354 * defaults to an empty string. 3355 * The resource string must contain only letters (a-z, A-Z), numbers (0-9), 3356 * underscores (_), periods (.), colons (:), slashes (/), dashes (-), 3357 * and hashes (#). 3358 * The maximum size is 200 bytes when encoded in UTF-8. 3359 * </pre> 3360 * 3361 * <code>string linked_resource = 9;</code> 3362 * 3363 * @return The bytes for linkedResource. 3364 */ getLinkedResourceBytes()3365 public com.google.protobuf.ByteString getLinkedResourceBytes() { 3366 java.lang.Object ref = linkedResource_; 3367 if (ref instanceof String) { 3368 com.google.protobuf.ByteString b = 3369 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3370 linkedResource_ = b; 3371 return b; 3372 } else { 3373 return (com.google.protobuf.ByteString) ref; 3374 } 3375 } 3376 /** 3377 * 3378 * 3379 * <pre> 3380 * The resource this metadata entry refers to. 3381 * For Google Cloud Platform resources, `linked_resource` is the 3382 * [Full Resource Name] 3383 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). 3384 * For example, the `linked_resource` for a table resource from BigQuery is: 3385 * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` 3386 * Output only when the entry is one of the types in the `EntryType` enum. 3387 * For entries with a `user_specified_type`, this field is optional and 3388 * defaults to an empty string. 3389 * The resource string must contain only letters (a-z, A-Z), numbers (0-9), 3390 * underscores (_), periods (.), colons (:), slashes (/), dashes (-), 3391 * and hashes (#). 3392 * The maximum size is 200 bytes when encoded in UTF-8. 3393 * </pre> 3394 * 3395 * <code>string linked_resource = 9;</code> 3396 * 3397 * @param value The linkedResource to set. 3398 * @return This builder for chaining. 3399 */ setLinkedResource(java.lang.String value)3400 public Builder setLinkedResource(java.lang.String value) { 3401 if (value == null) { 3402 throw new NullPointerException(); 3403 } 3404 linkedResource_ = value; 3405 bitField0_ |= 0x00000002; 3406 onChanged(); 3407 return this; 3408 } 3409 /** 3410 * 3411 * 3412 * <pre> 3413 * The resource this metadata entry refers to. 3414 * For Google Cloud Platform resources, `linked_resource` is the 3415 * [Full Resource Name] 3416 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). 3417 * For example, the `linked_resource` for a table resource from BigQuery is: 3418 * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` 3419 * Output only when the entry is one of the types in the `EntryType` enum. 3420 * For entries with a `user_specified_type`, this field is optional and 3421 * defaults to an empty string. 3422 * The resource string must contain only letters (a-z, A-Z), numbers (0-9), 3423 * underscores (_), periods (.), colons (:), slashes (/), dashes (-), 3424 * and hashes (#). 3425 * The maximum size is 200 bytes when encoded in UTF-8. 3426 * </pre> 3427 * 3428 * <code>string linked_resource = 9;</code> 3429 * 3430 * @return This builder for chaining. 3431 */ clearLinkedResource()3432 public Builder clearLinkedResource() { 3433 linkedResource_ = getDefaultInstance().getLinkedResource(); 3434 bitField0_ = (bitField0_ & ~0x00000002); 3435 onChanged(); 3436 return this; 3437 } 3438 /** 3439 * 3440 * 3441 * <pre> 3442 * The resource this metadata entry refers to. 3443 * For Google Cloud Platform resources, `linked_resource` is the 3444 * [Full Resource Name] 3445 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). 3446 * For example, the `linked_resource` for a table resource from BigQuery is: 3447 * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` 3448 * Output only when the entry is one of the types in the `EntryType` enum. 3449 * For entries with a `user_specified_type`, this field is optional and 3450 * defaults to an empty string. 3451 * The resource string must contain only letters (a-z, A-Z), numbers (0-9), 3452 * underscores (_), periods (.), colons (:), slashes (/), dashes (-), 3453 * and hashes (#). 3454 * The maximum size is 200 bytes when encoded in UTF-8. 3455 * </pre> 3456 * 3457 * <code>string linked_resource = 9;</code> 3458 * 3459 * @param value The bytes for linkedResource to set. 3460 * @return This builder for chaining. 3461 */ setLinkedResourceBytes(com.google.protobuf.ByteString value)3462 public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { 3463 if (value == null) { 3464 throw new NullPointerException(); 3465 } 3466 checkByteStringIsUtf8(value); 3467 linkedResource_ = value; 3468 bitField0_ |= 0x00000002; 3469 onChanged(); 3470 return this; 3471 } 3472 3473 private java.lang.Object fullyQualifiedName_ = ""; 3474 /** 3475 * 3476 * 3477 * <pre> 3478 * Fully qualified name (FQN) of the resource. Set automatically for entries 3479 * representing resources from synced systems. Settable only during creation 3480 * and read-only afterwards. Can be used for search and lookup of the entries. 3481 * FQNs take two forms: 3482 * * For non-regionalized resources: 3483 * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3484 * * For regionalized resources: 3485 * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3486 * Example for a DPMS table: 3487 * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` 3488 * </pre> 3489 * 3490 * <code>string fully_qualified_name = 29;</code> 3491 * 3492 * @return The fullyQualifiedName. 3493 */ getFullyQualifiedName()3494 public java.lang.String getFullyQualifiedName() { 3495 java.lang.Object ref = fullyQualifiedName_; 3496 if (!(ref instanceof java.lang.String)) { 3497 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3498 java.lang.String s = bs.toStringUtf8(); 3499 fullyQualifiedName_ = s; 3500 return s; 3501 } else { 3502 return (java.lang.String) ref; 3503 } 3504 } 3505 /** 3506 * 3507 * 3508 * <pre> 3509 * Fully qualified name (FQN) of the resource. Set automatically for entries 3510 * representing resources from synced systems. Settable only during creation 3511 * and read-only afterwards. Can be used for search and lookup of the entries. 3512 * FQNs take two forms: 3513 * * For non-regionalized resources: 3514 * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3515 * * For regionalized resources: 3516 * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3517 * Example for a DPMS table: 3518 * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` 3519 * </pre> 3520 * 3521 * <code>string fully_qualified_name = 29;</code> 3522 * 3523 * @return The bytes for fullyQualifiedName. 3524 */ getFullyQualifiedNameBytes()3525 public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { 3526 java.lang.Object ref = fullyQualifiedName_; 3527 if (ref instanceof String) { 3528 com.google.protobuf.ByteString b = 3529 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3530 fullyQualifiedName_ = b; 3531 return b; 3532 } else { 3533 return (com.google.protobuf.ByteString) ref; 3534 } 3535 } 3536 /** 3537 * 3538 * 3539 * <pre> 3540 * Fully qualified name (FQN) of the resource. Set automatically for entries 3541 * representing resources from synced systems. Settable only during creation 3542 * and read-only afterwards. Can be used for search and lookup of the entries. 3543 * FQNs take two forms: 3544 * * For non-regionalized resources: 3545 * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3546 * * For regionalized resources: 3547 * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3548 * Example for a DPMS table: 3549 * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` 3550 * </pre> 3551 * 3552 * <code>string fully_qualified_name = 29;</code> 3553 * 3554 * @param value The fullyQualifiedName to set. 3555 * @return This builder for chaining. 3556 */ setFullyQualifiedName(java.lang.String value)3557 public Builder setFullyQualifiedName(java.lang.String value) { 3558 if (value == null) { 3559 throw new NullPointerException(); 3560 } 3561 fullyQualifiedName_ = value; 3562 bitField0_ |= 0x00000004; 3563 onChanged(); 3564 return this; 3565 } 3566 /** 3567 * 3568 * 3569 * <pre> 3570 * Fully qualified name (FQN) of the resource. Set automatically for entries 3571 * representing resources from synced systems. Settable only during creation 3572 * and read-only afterwards. Can be used for search and lookup of the entries. 3573 * FQNs take two forms: 3574 * * For non-regionalized resources: 3575 * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3576 * * For regionalized resources: 3577 * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3578 * Example for a DPMS table: 3579 * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` 3580 * </pre> 3581 * 3582 * <code>string fully_qualified_name = 29;</code> 3583 * 3584 * @return This builder for chaining. 3585 */ clearFullyQualifiedName()3586 public Builder clearFullyQualifiedName() { 3587 fullyQualifiedName_ = getDefaultInstance().getFullyQualifiedName(); 3588 bitField0_ = (bitField0_ & ~0x00000004); 3589 onChanged(); 3590 return this; 3591 } 3592 /** 3593 * 3594 * 3595 * <pre> 3596 * Fully qualified name (FQN) of the resource. Set automatically for entries 3597 * representing resources from synced systems. Settable only during creation 3598 * and read-only afterwards. Can be used for search and lookup of the entries. 3599 * FQNs take two forms: 3600 * * For non-regionalized resources: 3601 * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3602 * * For regionalized resources: 3603 * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` 3604 * Example for a DPMS table: 3605 * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` 3606 * </pre> 3607 * 3608 * <code>string fully_qualified_name = 29;</code> 3609 * 3610 * @param value The bytes for fullyQualifiedName to set. 3611 * @return This builder for chaining. 3612 */ setFullyQualifiedNameBytes(com.google.protobuf.ByteString value)3613 public Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) { 3614 if (value == null) { 3615 throw new NullPointerException(); 3616 } 3617 checkByteStringIsUtf8(value); 3618 fullyQualifiedName_ = value; 3619 bitField0_ |= 0x00000004; 3620 onChanged(); 3621 return this; 3622 } 3623 3624 /** 3625 * 3626 * 3627 * <pre> 3628 * The type of the entry. 3629 * Only used for entries with types listed in the `EntryType` enum. 3630 * Currently, only `FILESET` enum value is allowed. All other entries 3631 * created in Data Catalog must use the `user_specified_type`. 3632 * </pre> 3633 * 3634 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 3635 * 3636 * @return Whether the type field is set. 3637 */ 3638 @java.lang.Override hasType()3639 public boolean hasType() { 3640 return entryTypeCase_ == 2; 3641 } 3642 /** 3643 * 3644 * 3645 * <pre> 3646 * The type of the entry. 3647 * Only used for entries with types listed in the `EntryType` enum. 3648 * Currently, only `FILESET` enum value is allowed. All other entries 3649 * created in Data Catalog must use the `user_specified_type`. 3650 * </pre> 3651 * 3652 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 3653 * 3654 * @return The enum numeric value on the wire for type. 3655 */ 3656 @java.lang.Override getTypeValue()3657 public int getTypeValue() { 3658 if (entryTypeCase_ == 2) { 3659 return ((java.lang.Integer) entryType_).intValue(); 3660 } 3661 return 0; 3662 } 3663 /** 3664 * 3665 * 3666 * <pre> 3667 * The type of the entry. 3668 * Only used for entries with types listed in the `EntryType` enum. 3669 * Currently, only `FILESET` enum value is allowed. All other entries 3670 * created in Data Catalog must use the `user_specified_type`. 3671 * </pre> 3672 * 3673 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 3674 * 3675 * @param value The enum numeric value on the wire for type to set. 3676 * @return This builder for chaining. 3677 */ setTypeValue(int value)3678 public Builder setTypeValue(int value) { 3679 entryTypeCase_ = 2; 3680 entryType_ = value; 3681 onChanged(); 3682 return this; 3683 } 3684 /** 3685 * 3686 * 3687 * <pre> 3688 * The type of the entry. 3689 * Only used for entries with types listed in the `EntryType` enum. 3690 * Currently, only `FILESET` enum value is allowed. All other entries 3691 * created in Data Catalog must use the `user_specified_type`. 3692 * </pre> 3693 * 3694 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 3695 * 3696 * @return The type. 3697 */ 3698 @java.lang.Override getType()3699 public com.google.cloud.datacatalog.v1.EntryType getType() { 3700 if (entryTypeCase_ == 2) { 3701 com.google.cloud.datacatalog.v1.EntryType result = 3702 com.google.cloud.datacatalog.v1.EntryType.forNumber((java.lang.Integer) entryType_); 3703 return result == null ? com.google.cloud.datacatalog.v1.EntryType.UNRECOGNIZED : result; 3704 } 3705 return com.google.cloud.datacatalog.v1.EntryType.ENTRY_TYPE_UNSPECIFIED; 3706 } 3707 /** 3708 * 3709 * 3710 * <pre> 3711 * The type of the entry. 3712 * Only used for entries with types listed in the `EntryType` enum. 3713 * Currently, only `FILESET` enum value is allowed. All other entries 3714 * created in Data Catalog must use the `user_specified_type`. 3715 * </pre> 3716 * 3717 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 3718 * 3719 * @param value The type to set. 3720 * @return This builder for chaining. 3721 */ setType(com.google.cloud.datacatalog.v1.EntryType value)3722 public Builder setType(com.google.cloud.datacatalog.v1.EntryType value) { 3723 if (value == null) { 3724 throw new NullPointerException(); 3725 } 3726 entryTypeCase_ = 2; 3727 entryType_ = value.getNumber(); 3728 onChanged(); 3729 return this; 3730 } 3731 /** 3732 * 3733 * 3734 * <pre> 3735 * The type of the entry. 3736 * Only used for entries with types listed in the `EntryType` enum. 3737 * Currently, only `FILESET` enum value is allowed. All other entries 3738 * created in Data Catalog must use the `user_specified_type`. 3739 * </pre> 3740 * 3741 * <code>.google.cloud.datacatalog.v1.EntryType type = 2;</code> 3742 * 3743 * @return This builder for chaining. 3744 */ clearType()3745 public Builder clearType() { 3746 if (entryTypeCase_ == 2) { 3747 entryTypeCase_ = 0; 3748 entryType_ = null; 3749 onChanged(); 3750 } 3751 return this; 3752 } 3753 3754 /** 3755 * 3756 * 3757 * <pre> 3758 * Custom entry type that doesn't match any of the values allowed for input 3759 * and listed in the `EntryType` enum. 3760 * When creating an entry, first check the type values in the enum. 3761 * If there are no appropriate types for the new entry, 3762 * provide a custom value, for example, `my_special_type`. 3763 * The `user_specified_type` string has the following limitations: 3764 * * Is case insensitive. 3765 * * Must begin with a letter or underscore. 3766 * * Can only contain letters, numbers, and underscores. 3767 * * Must be at least 1 character and at most 64 characters long. 3768 * </pre> 3769 * 3770 * <code>string user_specified_type = 16;</code> 3771 * 3772 * @return Whether the userSpecifiedType field is set. 3773 */ 3774 @java.lang.Override hasUserSpecifiedType()3775 public boolean hasUserSpecifiedType() { 3776 return entryTypeCase_ == 16; 3777 } 3778 /** 3779 * 3780 * 3781 * <pre> 3782 * Custom entry type that doesn't match any of the values allowed for input 3783 * and listed in the `EntryType` enum. 3784 * When creating an entry, first check the type values in the enum. 3785 * If there are no appropriate types for the new entry, 3786 * provide a custom value, for example, `my_special_type`. 3787 * The `user_specified_type` string has the following limitations: 3788 * * Is case insensitive. 3789 * * Must begin with a letter or underscore. 3790 * * Can only contain letters, numbers, and underscores. 3791 * * Must be at least 1 character and at most 64 characters long. 3792 * </pre> 3793 * 3794 * <code>string user_specified_type = 16;</code> 3795 * 3796 * @return The userSpecifiedType. 3797 */ 3798 @java.lang.Override getUserSpecifiedType()3799 public java.lang.String getUserSpecifiedType() { 3800 java.lang.Object ref = ""; 3801 if (entryTypeCase_ == 16) { 3802 ref = entryType_; 3803 } 3804 if (!(ref instanceof java.lang.String)) { 3805 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3806 java.lang.String s = bs.toStringUtf8(); 3807 if (entryTypeCase_ == 16) { 3808 entryType_ = s; 3809 } 3810 return s; 3811 } else { 3812 return (java.lang.String) ref; 3813 } 3814 } 3815 /** 3816 * 3817 * 3818 * <pre> 3819 * Custom entry type that doesn't match any of the values allowed for input 3820 * and listed in the `EntryType` enum. 3821 * When creating an entry, first check the type values in the enum. 3822 * If there are no appropriate types for the new entry, 3823 * provide a custom value, for example, `my_special_type`. 3824 * The `user_specified_type` string has the following limitations: 3825 * * Is case insensitive. 3826 * * Must begin with a letter or underscore. 3827 * * Can only contain letters, numbers, and underscores. 3828 * * Must be at least 1 character and at most 64 characters long. 3829 * </pre> 3830 * 3831 * <code>string user_specified_type = 16;</code> 3832 * 3833 * @return The bytes for userSpecifiedType. 3834 */ 3835 @java.lang.Override getUserSpecifiedTypeBytes()3836 public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() { 3837 java.lang.Object ref = ""; 3838 if (entryTypeCase_ == 16) { 3839 ref = entryType_; 3840 } 3841 if (ref instanceof String) { 3842 com.google.protobuf.ByteString b = 3843 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3844 if (entryTypeCase_ == 16) { 3845 entryType_ = b; 3846 } 3847 return b; 3848 } else { 3849 return (com.google.protobuf.ByteString) ref; 3850 } 3851 } 3852 /** 3853 * 3854 * 3855 * <pre> 3856 * Custom entry type that doesn't match any of the values allowed for input 3857 * and listed in the `EntryType` enum. 3858 * When creating an entry, first check the type values in the enum. 3859 * If there are no appropriate types for the new entry, 3860 * provide a custom value, for example, `my_special_type`. 3861 * The `user_specified_type` string has the following limitations: 3862 * * Is case insensitive. 3863 * * Must begin with a letter or underscore. 3864 * * Can only contain letters, numbers, and underscores. 3865 * * Must be at least 1 character and at most 64 characters long. 3866 * </pre> 3867 * 3868 * <code>string user_specified_type = 16;</code> 3869 * 3870 * @param value The userSpecifiedType to set. 3871 * @return This builder for chaining. 3872 */ setUserSpecifiedType(java.lang.String value)3873 public Builder setUserSpecifiedType(java.lang.String value) { 3874 if (value == null) { 3875 throw new NullPointerException(); 3876 } 3877 entryTypeCase_ = 16; 3878 entryType_ = value; 3879 onChanged(); 3880 return this; 3881 } 3882 /** 3883 * 3884 * 3885 * <pre> 3886 * Custom entry type that doesn't match any of the values allowed for input 3887 * and listed in the `EntryType` enum. 3888 * When creating an entry, first check the type values in the enum. 3889 * If there are no appropriate types for the new entry, 3890 * provide a custom value, for example, `my_special_type`. 3891 * The `user_specified_type` string has the following limitations: 3892 * * Is case insensitive. 3893 * * Must begin with a letter or underscore. 3894 * * Can only contain letters, numbers, and underscores. 3895 * * Must be at least 1 character and at most 64 characters long. 3896 * </pre> 3897 * 3898 * <code>string user_specified_type = 16;</code> 3899 * 3900 * @return This builder for chaining. 3901 */ clearUserSpecifiedType()3902 public Builder clearUserSpecifiedType() { 3903 if (entryTypeCase_ == 16) { 3904 entryTypeCase_ = 0; 3905 entryType_ = null; 3906 onChanged(); 3907 } 3908 return this; 3909 } 3910 /** 3911 * 3912 * 3913 * <pre> 3914 * Custom entry type that doesn't match any of the values allowed for input 3915 * and listed in the `EntryType` enum. 3916 * When creating an entry, first check the type values in the enum. 3917 * If there are no appropriate types for the new entry, 3918 * provide a custom value, for example, `my_special_type`. 3919 * The `user_specified_type` string has the following limitations: 3920 * * Is case insensitive. 3921 * * Must begin with a letter or underscore. 3922 * * Can only contain letters, numbers, and underscores. 3923 * * Must be at least 1 character and at most 64 characters long. 3924 * </pre> 3925 * 3926 * <code>string user_specified_type = 16;</code> 3927 * 3928 * @param value The bytes for userSpecifiedType to set. 3929 * @return This builder for chaining. 3930 */ setUserSpecifiedTypeBytes(com.google.protobuf.ByteString value)3931 public Builder setUserSpecifiedTypeBytes(com.google.protobuf.ByteString value) { 3932 if (value == null) { 3933 throw new NullPointerException(); 3934 } 3935 checkByteStringIsUtf8(value); 3936 entryTypeCase_ = 16; 3937 entryType_ = value; 3938 onChanged(); 3939 return this; 3940 } 3941 3942 /** 3943 * 3944 * 3945 * <pre> 3946 * Output only. Indicates the entry's source system that Data Catalog 3947 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 3948 * </pre> 3949 * 3950 * <code> 3951 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3952 * </code> 3953 * 3954 * @return Whether the integratedSystem field is set. 3955 */ 3956 @java.lang.Override hasIntegratedSystem()3957 public boolean hasIntegratedSystem() { 3958 return systemCase_ == 17; 3959 } 3960 /** 3961 * 3962 * 3963 * <pre> 3964 * Output only. Indicates the entry's source system that Data Catalog 3965 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 3966 * </pre> 3967 * 3968 * <code> 3969 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3970 * </code> 3971 * 3972 * @return The enum numeric value on the wire for integratedSystem. 3973 */ 3974 @java.lang.Override getIntegratedSystemValue()3975 public int getIntegratedSystemValue() { 3976 if (systemCase_ == 17) { 3977 return ((java.lang.Integer) system_).intValue(); 3978 } 3979 return 0; 3980 } 3981 /** 3982 * 3983 * 3984 * <pre> 3985 * Output only. Indicates the entry's source system that Data Catalog 3986 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 3987 * </pre> 3988 * 3989 * <code> 3990 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3991 * </code> 3992 * 3993 * @param value The enum numeric value on the wire for integratedSystem to set. 3994 * @return This builder for chaining. 3995 */ setIntegratedSystemValue(int value)3996 public Builder setIntegratedSystemValue(int value) { 3997 systemCase_ = 17; 3998 system_ = value; 3999 onChanged(); 4000 return this; 4001 } 4002 /** 4003 * 4004 * 4005 * <pre> 4006 * Output only. Indicates the entry's source system that Data Catalog 4007 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 4008 * </pre> 4009 * 4010 * <code> 4011 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4012 * </code> 4013 * 4014 * @return The integratedSystem. 4015 */ 4016 @java.lang.Override getIntegratedSystem()4017 public com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem() { 4018 if (systemCase_ == 17) { 4019 com.google.cloud.datacatalog.v1.IntegratedSystem result = 4020 com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber((java.lang.Integer) system_); 4021 return result == null 4022 ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED 4023 : result; 4024 } 4025 return com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; 4026 } 4027 /** 4028 * 4029 * 4030 * <pre> 4031 * Output only. Indicates the entry's source system that Data Catalog 4032 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 4033 * </pre> 4034 * 4035 * <code> 4036 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4037 * </code> 4038 * 4039 * @param value The integratedSystem to set. 4040 * @return This builder for chaining. 4041 */ setIntegratedSystem(com.google.cloud.datacatalog.v1.IntegratedSystem value)4042 public Builder setIntegratedSystem(com.google.cloud.datacatalog.v1.IntegratedSystem value) { 4043 if (value == null) { 4044 throw new NullPointerException(); 4045 } 4046 systemCase_ = 17; 4047 system_ = value.getNumber(); 4048 onChanged(); 4049 return this; 4050 } 4051 /** 4052 * 4053 * 4054 * <pre> 4055 * Output only. Indicates the entry's source system that Data Catalog 4056 * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. 4057 * </pre> 4058 * 4059 * <code> 4060 * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4061 * </code> 4062 * 4063 * @return This builder for chaining. 4064 */ clearIntegratedSystem()4065 public Builder clearIntegratedSystem() { 4066 if (systemCase_ == 17) { 4067 systemCase_ = 0; 4068 system_ = null; 4069 onChanged(); 4070 } 4071 return this; 4072 } 4073 4074 /** 4075 * 4076 * 4077 * <pre> 4078 * Indicates the entry's source system that Data Catalog doesn't 4079 * automatically integrate with. 4080 * The `user_specified_system` string has the following limitations: 4081 * * Is case insensitive. 4082 * * Must begin with a letter or underscore. 4083 * * Can only contain letters, numbers, and underscores. 4084 * * Must be at least 1 character and at most 64 characters long. 4085 * </pre> 4086 * 4087 * <code>string user_specified_system = 18;</code> 4088 * 4089 * @return Whether the userSpecifiedSystem field is set. 4090 */ 4091 @java.lang.Override hasUserSpecifiedSystem()4092 public boolean hasUserSpecifiedSystem() { 4093 return systemCase_ == 18; 4094 } 4095 /** 4096 * 4097 * 4098 * <pre> 4099 * Indicates the entry's source system that Data Catalog doesn't 4100 * automatically integrate with. 4101 * The `user_specified_system` string has the following limitations: 4102 * * Is case insensitive. 4103 * * Must begin with a letter or underscore. 4104 * * Can only contain letters, numbers, and underscores. 4105 * * Must be at least 1 character and at most 64 characters long. 4106 * </pre> 4107 * 4108 * <code>string user_specified_system = 18;</code> 4109 * 4110 * @return The userSpecifiedSystem. 4111 */ 4112 @java.lang.Override getUserSpecifiedSystem()4113 public java.lang.String getUserSpecifiedSystem() { 4114 java.lang.Object ref = ""; 4115 if (systemCase_ == 18) { 4116 ref = system_; 4117 } 4118 if (!(ref instanceof java.lang.String)) { 4119 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4120 java.lang.String s = bs.toStringUtf8(); 4121 if (systemCase_ == 18) { 4122 system_ = s; 4123 } 4124 return s; 4125 } else { 4126 return (java.lang.String) ref; 4127 } 4128 } 4129 /** 4130 * 4131 * 4132 * <pre> 4133 * Indicates the entry's source system that Data Catalog doesn't 4134 * automatically integrate with. 4135 * The `user_specified_system` string has the following limitations: 4136 * * Is case insensitive. 4137 * * Must begin with a letter or underscore. 4138 * * Can only contain letters, numbers, and underscores. 4139 * * Must be at least 1 character and at most 64 characters long. 4140 * </pre> 4141 * 4142 * <code>string user_specified_system = 18;</code> 4143 * 4144 * @return The bytes for userSpecifiedSystem. 4145 */ 4146 @java.lang.Override getUserSpecifiedSystemBytes()4147 public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { 4148 java.lang.Object ref = ""; 4149 if (systemCase_ == 18) { 4150 ref = system_; 4151 } 4152 if (ref instanceof String) { 4153 com.google.protobuf.ByteString b = 4154 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4155 if (systemCase_ == 18) { 4156 system_ = b; 4157 } 4158 return b; 4159 } else { 4160 return (com.google.protobuf.ByteString) ref; 4161 } 4162 } 4163 /** 4164 * 4165 * 4166 * <pre> 4167 * Indicates the entry's source system that Data Catalog doesn't 4168 * automatically integrate with. 4169 * The `user_specified_system` string has the following limitations: 4170 * * Is case insensitive. 4171 * * Must begin with a letter or underscore. 4172 * * Can only contain letters, numbers, and underscores. 4173 * * Must be at least 1 character and at most 64 characters long. 4174 * </pre> 4175 * 4176 * <code>string user_specified_system = 18;</code> 4177 * 4178 * @param value The userSpecifiedSystem to set. 4179 * @return This builder for chaining. 4180 */ setUserSpecifiedSystem(java.lang.String value)4181 public Builder setUserSpecifiedSystem(java.lang.String value) { 4182 if (value == null) { 4183 throw new NullPointerException(); 4184 } 4185 systemCase_ = 18; 4186 system_ = value; 4187 onChanged(); 4188 return this; 4189 } 4190 /** 4191 * 4192 * 4193 * <pre> 4194 * Indicates the entry's source system that Data Catalog doesn't 4195 * automatically integrate with. 4196 * The `user_specified_system` string has the following limitations: 4197 * * Is case insensitive. 4198 * * Must begin with a letter or underscore. 4199 * * Can only contain letters, numbers, and underscores. 4200 * * Must be at least 1 character and at most 64 characters long. 4201 * </pre> 4202 * 4203 * <code>string user_specified_system = 18;</code> 4204 * 4205 * @return This builder for chaining. 4206 */ clearUserSpecifiedSystem()4207 public Builder clearUserSpecifiedSystem() { 4208 if (systemCase_ == 18) { 4209 systemCase_ = 0; 4210 system_ = null; 4211 onChanged(); 4212 } 4213 return this; 4214 } 4215 /** 4216 * 4217 * 4218 * <pre> 4219 * Indicates the entry's source system that Data Catalog doesn't 4220 * automatically integrate with. 4221 * The `user_specified_system` string has the following limitations: 4222 * * Is case insensitive. 4223 * * Must begin with a letter or underscore. 4224 * * Can only contain letters, numbers, and underscores. 4225 * * Must be at least 1 character and at most 64 characters long. 4226 * </pre> 4227 * 4228 * <code>string user_specified_system = 18;</code> 4229 * 4230 * @param value The bytes for userSpecifiedSystem to set. 4231 * @return This builder for chaining. 4232 */ setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value)4233 public Builder setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value) { 4234 if (value == null) { 4235 throw new NullPointerException(); 4236 } 4237 checkByteStringIsUtf8(value); 4238 systemCase_ = 18; 4239 system_ = value; 4240 onChanged(); 4241 return this; 4242 } 4243 4244 private com.google.protobuf.SingleFieldBuilderV3< 4245 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, 4246 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, 4247 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder> 4248 sqlDatabaseSystemSpecBuilder_; 4249 /** 4250 * 4251 * 4252 * <pre> 4253 * Specification that applies to a relational database system. Only settable 4254 * when `user_specified_system` is equal to `SQL_DATABASE` 4255 * </pre> 4256 * 4257 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4258 * </code> 4259 * 4260 * @return Whether the sqlDatabaseSystemSpec field is set. 4261 */ 4262 @java.lang.Override hasSqlDatabaseSystemSpec()4263 public boolean hasSqlDatabaseSystemSpec() { 4264 return systemSpecCase_ == 39; 4265 } 4266 /** 4267 * 4268 * 4269 * <pre> 4270 * Specification that applies to a relational database system. Only settable 4271 * when `user_specified_system` is equal to `SQL_DATABASE` 4272 * </pre> 4273 * 4274 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4275 * </code> 4276 * 4277 * @return The sqlDatabaseSystemSpec. 4278 */ 4279 @java.lang.Override getSqlDatabaseSystemSpec()4280 public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getSqlDatabaseSystemSpec() { 4281 if (sqlDatabaseSystemSpecBuilder_ == null) { 4282 if (systemSpecCase_ == 39) { 4283 return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; 4284 } 4285 return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); 4286 } else { 4287 if (systemSpecCase_ == 39) { 4288 return sqlDatabaseSystemSpecBuilder_.getMessage(); 4289 } 4290 return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); 4291 } 4292 } 4293 /** 4294 * 4295 * 4296 * <pre> 4297 * Specification that applies to a relational database system. Only settable 4298 * when `user_specified_system` is equal to `SQL_DATABASE` 4299 * </pre> 4300 * 4301 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4302 * </code> 4303 */ setSqlDatabaseSystemSpec( com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec value)4304 public Builder setSqlDatabaseSystemSpec( 4305 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec value) { 4306 if (sqlDatabaseSystemSpecBuilder_ == null) { 4307 if (value == null) { 4308 throw new NullPointerException(); 4309 } 4310 systemSpec_ = value; 4311 onChanged(); 4312 } else { 4313 sqlDatabaseSystemSpecBuilder_.setMessage(value); 4314 } 4315 systemSpecCase_ = 39; 4316 return this; 4317 } 4318 /** 4319 * 4320 * 4321 * <pre> 4322 * Specification that applies to a relational database system. Only settable 4323 * when `user_specified_system` is equal to `SQL_DATABASE` 4324 * </pre> 4325 * 4326 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4327 * </code> 4328 */ setSqlDatabaseSystemSpec( com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder builderForValue)4329 public Builder setSqlDatabaseSystemSpec( 4330 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder builderForValue) { 4331 if (sqlDatabaseSystemSpecBuilder_ == null) { 4332 systemSpec_ = builderForValue.build(); 4333 onChanged(); 4334 } else { 4335 sqlDatabaseSystemSpecBuilder_.setMessage(builderForValue.build()); 4336 } 4337 systemSpecCase_ = 39; 4338 return this; 4339 } 4340 /** 4341 * 4342 * 4343 * <pre> 4344 * Specification that applies to a relational database system. Only settable 4345 * when `user_specified_system` is equal to `SQL_DATABASE` 4346 * </pre> 4347 * 4348 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4349 * </code> 4350 */ mergeSqlDatabaseSystemSpec( com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec value)4351 public Builder mergeSqlDatabaseSystemSpec( 4352 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec value) { 4353 if (sqlDatabaseSystemSpecBuilder_ == null) { 4354 if (systemSpecCase_ == 39 4355 && systemSpec_ 4356 != com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance()) { 4357 systemSpec_ = 4358 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.newBuilder( 4359 (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_) 4360 .mergeFrom(value) 4361 .buildPartial(); 4362 } else { 4363 systemSpec_ = value; 4364 } 4365 onChanged(); 4366 } else { 4367 if (systemSpecCase_ == 39) { 4368 sqlDatabaseSystemSpecBuilder_.mergeFrom(value); 4369 } else { 4370 sqlDatabaseSystemSpecBuilder_.setMessage(value); 4371 } 4372 } 4373 systemSpecCase_ = 39; 4374 return this; 4375 } 4376 /** 4377 * 4378 * 4379 * <pre> 4380 * Specification that applies to a relational database system. Only settable 4381 * when `user_specified_system` is equal to `SQL_DATABASE` 4382 * </pre> 4383 * 4384 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4385 * </code> 4386 */ clearSqlDatabaseSystemSpec()4387 public Builder clearSqlDatabaseSystemSpec() { 4388 if (sqlDatabaseSystemSpecBuilder_ == null) { 4389 if (systemSpecCase_ == 39) { 4390 systemSpecCase_ = 0; 4391 systemSpec_ = null; 4392 onChanged(); 4393 } 4394 } else { 4395 if (systemSpecCase_ == 39) { 4396 systemSpecCase_ = 0; 4397 systemSpec_ = null; 4398 } 4399 sqlDatabaseSystemSpecBuilder_.clear(); 4400 } 4401 return this; 4402 } 4403 /** 4404 * 4405 * 4406 * <pre> 4407 * Specification that applies to a relational database system. Only settable 4408 * when `user_specified_system` is equal to `SQL_DATABASE` 4409 * </pre> 4410 * 4411 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4412 * </code> 4413 */ 4414 public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder getSqlDatabaseSystemSpecBuilder()4415 getSqlDatabaseSystemSpecBuilder() { 4416 return getSqlDatabaseSystemSpecFieldBuilder().getBuilder(); 4417 } 4418 /** 4419 * 4420 * 4421 * <pre> 4422 * Specification that applies to a relational database system. Only settable 4423 * when `user_specified_system` is equal to `SQL_DATABASE` 4424 * </pre> 4425 * 4426 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4427 * </code> 4428 */ 4429 @java.lang.Override 4430 public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder getSqlDatabaseSystemSpecOrBuilder()4431 getSqlDatabaseSystemSpecOrBuilder() { 4432 if ((systemSpecCase_ == 39) && (sqlDatabaseSystemSpecBuilder_ != null)) { 4433 return sqlDatabaseSystemSpecBuilder_.getMessageOrBuilder(); 4434 } else { 4435 if (systemSpecCase_ == 39) { 4436 return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; 4437 } 4438 return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); 4439 } 4440 } 4441 /** 4442 * 4443 * 4444 * <pre> 4445 * Specification that applies to a relational database system. Only settable 4446 * when `user_specified_system` is equal to `SQL_DATABASE` 4447 * </pre> 4448 * 4449 * <code>.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; 4450 * </code> 4451 */ 4452 private com.google.protobuf.SingleFieldBuilderV3< 4453 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, 4454 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, 4455 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder> getSqlDatabaseSystemSpecFieldBuilder()4456 getSqlDatabaseSystemSpecFieldBuilder() { 4457 if (sqlDatabaseSystemSpecBuilder_ == null) { 4458 if (!(systemSpecCase_ == 39)) { 4459 systemSpec_ = com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); 4460 } 4461 sqlDatabaseSystemSpecBuilder_ = 4462 new com.google.protobuf.SingleFieldBuilderV3< 4463 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, 4464 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, 4465 com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder>( 4466 (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_, 4467 getParentForChildren(), 4468 isClean()); 4469 systemSpec_ = null; 4470 } 4471 systemSpecCase_ = 39; 4472 onChanged(); 4473 return sqlDatabaseSystemSpecBuilder_; 4474 } 4475 4476 private com.google.protobuf.SingleFieldBuilderV3< 4477 com.google.cloud.datacatalog.v1.LookerSystemSpec, 4478 com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, 4479 com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder> 4480 lookerSystemSpecBuilder_; 4481 /** 4482 * 4483 * 4484 * <pre> 4485 * Specification that applies to Looker sysstem. Only settable when 4486 * `user_specified_system` is equal to `LOOKER` 4487 * </pre> 4488 * 4489 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4490 * 4491 * @return Whether the lookerSystemSpec field is set. 4492 */ 4493 @java.lang.Override hasLookerSystemSpec()4494 public boolean hasLookerSystemSpec() { 4495 return systemSpecCase_ == 40; 4496 } 4497 /** 4498 * 4499 * 4500 * <pre> 4501 * Specification that applies to Looker sysstem. Only settable when 4502 * `user_specified_system` is equal to `LOOKER` 4503 * </pre> 4504 * 4505 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4506 * 4507 * @return The lookerSystemSpec. 4508 */ 4509 @java.lang.Override getLookerSystemSpec()4510 public com.google.cloud.datacatalog.v1.LookerSystemSpec getLookerSystemSpec() { 4511 if (lookerSystemSpecBuilder_ == null) { 4512 if (systemSpecCase_ == 40) { 4513 return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; 4514 } 4515 return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); 4516 } else { 4517 if (systemSpecCase_ == 40) { 4518 return lookerSystemSpecBuilder_.getMessage(); 4519 } 4520 return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); 4521 } 4522 } 4523 /** 4524 * 4525 * 4526 * <pre> 4527 * Specification that applies to Looker sysstem. Only settable when 4528 * `user_specified_system` is equal to `LOOKER` 4529 * </pre> 4530 * 4531 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4532 */ setLookerSystemSpec(com.google.cloud.datacatalog.v1.LookerSystemSpec value)4533 public Builder setLookerSystemSpec(com.google.cloud.datacatalog.v1.LookerSystemSpec value) { 4534 if (lookerSystemSpecBuilder_ == null) { 4535 if (value == null) { 4536 throw new NullPointerException(); 4537 } 4538 systemSpec_ = value; 4539 onChanged(); 4540 } else { 4541 lookerSystemSpecBuilder_.setMessage(value); 4542 } 4543 systemSpecCase_ = 40; 4544 return this; 4545 } 4546 /** 4547 * 4548 * 4549 * <pre> 4550 * Specification that applies to Looker sysstem. Only settable when 4551 * `user_specified_system` is equal to `LOOKER` 4552 * </pre> 4553 * 4554 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4555 */ setLookerSystemSpec( com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder builderForValue)4556 public Builder setLookerSystemSpec( 4557 com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder builderForValue) { 4558 if (lookerSystemSpecBuilder_ == null) { 4559 systemSpec_ = builderForValue.build(); 4560 onChanged(); 4561 } else { 4562 lookerSystemSpecBuilder_.setMessage(builderForValue.build()); 4563 } 4564 systemSpecCase_ = 40; 4565 return this; 4566 } 4567 /** 4568 * 4569 * 4570 * <pre> 4571 * Specification that applies to Looker sysstem. Only settable when 4572 * `user_specified_system` is equal to `LOOKER` 4573 * </pre> 4574 * 4575 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4576 */ mergeLookerSystemSpec(com.google.cloud.datacatalog.v1.LookerSystemSpec value)4577 public Builder mergeLookerSystemSpec(com.google.cloud.datacatalog.v1.LookerSystemSpec value) { 4578 if (lookerSystemSpecBuilder_ == null) { 4579 if (systemSpecCase_ == 40 4580 && systemSpec_ 4581 != com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance()) { 4582 systemSpec_ = 4583 com.google.cloud.datacatalog.v1.LookerSystemSpec.newBuilder( 4584 (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_) 4585 .mergeFrom(value) 4586 .buildPartial(); 4587 } else { 4588 systemSpec_ = value; 4589 } 4590 onChanged(); 4591 } else { 4592 if (systemSpecCase_ == 40) { 4593 lookerSystemSpecBuilder_.mergeFrom(value); 4594 } else { 4595 lookerSystemSpecBuilder_.setMessage(value); 4596 } 4597 } 4598 systemSpecCase_ = 40; 4599 return this; 4600 } 4601 /** 4602 * 4603 * 4604 * <pre> 4605 * Specification that applies to Looker sysstem. Only settable when 4606 * `user_specified_system` is equal to `LOOKER` 4607 * </pre> 4608 * 4609 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4610 */ clearLookerSystemSpec()4611 public Builder clearLookerSystemSpec() { 4612 if (lookerSystemSpecBuilder_ == null) { 4613 if (systemSpecCase_ == 40) { 4614 systemSpecCase_ = 0; 4615 systemSpec_ = null; 4616 onChanged(); 4617 } 4618 } else { 4619 if (systemSpecCase_ == 40) { 4620 systemSpecCase_ = 0; 4621 systemSpec_ = null; 4622 } 4623 lookerSystemSpecBuilder_.clear(); 4624 } 4625 return this; 4626 } 4627 /** 4628 * 4629 * 4630 * <pre> 4631 * Specification that applies to Looker sysstem. Only settable when 4632 * `user_specified_system` is equal to `LOOKER` 4633 * </pre> 4634 * 4635 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4636 */ getLookerSystemSpecBuilder()4637 public com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder getLookerSystemSpecBuilder() { 4638 return getLookerSystemSpecFieldBuilder().getBuilder(); 4639 } 4640 /** 4641 * 4642 * 4643 * <pre> 4644 * Specification that applies to Looker sysstem. Only settable when 4645 * `user_specified_system` is equal to `LOOKER` 4646 * </pre> 4647 * 4648 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4649 */ 4650 @java.lang.Override 4651 public com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder getLookerSystemSpecOrBuilder()4652 getLookerSystemSpecOrBuilder() { 4653 if ((systemSpecCase_ == 40) && (lookerSystemSpecBuilder_ != null)) { 4654 return lookerSystemSpecBuilder_.getMessageOrBuilder(); 4655 } else { 4656 if (systemSpecCase_ == 40) { 4657 return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; 4658 } 4659 return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); 4660 } 4661 } 4662 /** 4663 * 4664 * 4665 * <pre> 4666 * Specification that applies to Looker sysstem. Only settable when 4667 * `user_specified_system` is equal to `LOOKER` 4668 * </pre> 4669 * 4670 * <code>.google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40;</code> 4671 */ 4672 private com.google.protobuf.SingleFieldBuilderV3< 4673 com.google.cloud.datacatalog.v1.LookerSystemSpec, 4674 com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, 4675 com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder> getLookerSystemSpecFieldBuilder()4676 getLookerSystemSpecFieldBuilder() { 4677 if (lookerSystemSpecBuilder_ == null) { 4678 if (!(systemSpecCase_ == 40)) { 4679 systemSpec_ = com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); 4680 } 4681 lookerSystemSpecBuilder_ = 4682 new com.google.protobuf.SingleFieldBuilderV3< 4683 com.google.cloud.datacatalog.v1.LookerSystemSpec, 4684 com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, 4685 com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder>( 4686 (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_, 4687 getParentForChildren(), 4688 isClean()); 4689 systemSpec_ = null; 4690 } 4691 systemSpecCase_ = 40; 4692 onChanged(); 4693 return lookerSystemSpecBuilder_; 4694 } 4695 4696 private com.google.protobuf.SingleFieldBuilderV3< 4697 com.google.cloud.datacatalog.v1.GcsFilesetSpec, 4698 com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, 4699 com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder> 4700 gcsFilesetSpecBuilder_; 4701 /** 4702 * 4703 * 4704 * <pre> 4705 * Specification that applies to a Cloud Storage fileset. Valid only 4706 * for entries with the `FILESET` type. 4707 * </pre> 4708 * 4709 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4710 * 4711 * @return Whether the gcsFilesetSpec field is set. 4712 */ 4713 @java.lang.Override hasGcsFilesetSpec()4714 public boolean hasGcsFilesetSpec() { 4715 return typeSpecCase_ == 6; 4716 } 4717 /** 4718 * 4719 * 4720 * <pre> 4721 * Specification that applies to a Cloud Storage fileset. Valid only 4722 * for entries with the `FILESET` type. 4723 * </pre> 4724 * 4725 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4726 * 4727 * @return The gcsFilesetSpec. 4728 */ 4729 @java.lang.Override getGcsFilesetSpec()4730 public com.google.cloud.datacatalog.v1.GcsFilesetSpec getGcsFilesetSpec() { 4731 if (gcsFilesetSpecBuilder_ == null) { 4732 if (typeSpecCase_ == 6) { 4733 return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; 4734 } 4735 return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); 4736 } else { 4737 if (typeSpecCase_ == 6) { 4738 return gcsFilesetSpecBuilder_.getMessage(); 4739 } 4740 return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); 4741 } 4742 } 4743 /** 4744 * 4745 * 4746 * <pre> 4747 * Specification that applies to a Cloud Storage fileset. Valid only 4748 * for entries with the `FILESET` type. 4749 * </pre> 4750 * 4751 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4752 */ setGcsFilesetSpec(com.google.cloud.datacatalog.v1.GcsFilesetSpec value)4753 public Builder setGcsFilesetSpec(com.google.cloud.datacatalog.v1.GcsFilesetSpec value) { 4754 if (gcsFilesetSpecBuilder_ == null) { 4755 if (value == null) { 4756 throw new NullPointerException(); 4757 } 4758 typeSpec_ = value; 4759 onChanged(); 4760 } else { 4761 gcsFilesetSpecBuilder_.setMessage(value); 4762 } 4763 typeSpecCase_ = 6; 4764 return this; 4765 } 4766 /** 4767 * 4768 * 4769 * <pre> 4770 * Specification that applies to a Cloud Storage fileset. Valid only 4771 * for entries with the `FILESET` type. 4772 * </pre> 4773 * 4774 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4775 */ setGcsFilesetSpec( com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder builderForValue)4776 public Builder setGcsFilesetSpec( 4777 com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder builderForValue) { 4778 if (gcsFilesetSpecBuilder_ == null) { 4779 typeSpec_ = builderForValue.build(); 4780 onChanged(); 4781 } else { 4782 gcsFilesetSpecBuilder_.setMessage(builderForValue.build()); 4783 } 4784 typeSpecCase_ = 6; 4785 return this; 4786 } 4787 /** 4788 * 4789 * 4790 * <pre> 4791 * Specification that applies to a Cloud Storage fileset. Valid only 4792 * for entries with the `FILESET` type. 4793 * </pre> 4794 * 4795 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4796 */ mergeGcsFilesetSpec(com.google.cloud.datacatalog.v1.GcsFilesetSpec value)4797 public Builder mergeGcsFilesetSpec(com.google.cloud.datacatalog.v1.GcsFilesetSpec value) { 4798 if (gcsFilesetSpecBuilder_ == null) { 4799 if (typeSpecCase_ == 6 4800 && typeSpec_ != com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance()) { 4801 typeSpec_ = 4802 com.google.cloud.datacatalog.v1.GcsFilesetSpec.newBuilder( 4803 (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_) 4804 .mergeFrom(value) 4805 .buildPartial(); 4806 } else { 4807 typeSpec_ = value; 4808 } 4809 onChanged(); 4810 } else { 4811 if (typeSpecCase_ == 6) { 4812 gcsFilesetSpecBuilder_.mergeFrom(value); 4813 } else { 4814 gcsFilesetSpecBuilder_.setMessage(value); 4815 } 4816 } 4817 typeSpecCase_ = 6; 4818 return this; 4819 } 4820 /** 4821 * 4822 * 4823 * <pre> 4824 * Specification that applies to a Cloud Storage fileset. Valid only 4825 * for entries with the `FILESET` type. 4826 * </pre> 4827 * 4828 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4829 */ clearGcsFilesetSpec()4830 public Builder clearGcsFilesetSpec() { 4831 if (gcsFilesetSpecBuilder_ == null) { 4832 if (typeSpecCase_ == 6) { 4833 typeSpecCase_ = 0; 4834 typeSpec_ = null; 4835 onChanged(); 4836 } 4837 } else { 4838 if (typeSpecCase_ == 6) { 4839 typeSpecCase_ = 0; 4840 typeSpec_ = null; 4841 } 4842 gcsFilesetSpecBuilder_.clear(); 4843 } 4844 return this; 4845 } 4846 /** 4847 * 4848 * 4849 * <pre> 4850 * Specification that applies to a Cloud Storage fileset. Valid only 4851 * for entries with the `FILESET` type. 4852 * </pre> 4853 * 4854 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4855 */ getGcsFilesetSpecBuilder()4856 public com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder getGcsFilesetSpecBuilder() { 4857 return getGcsFilesetSpecFieldBuilder().getBuilder(); 4858 } 4859 /** 4860 * 4861 * 4862 * <pre> 4863 * Specification that applies to a Cloud Storage fileset. Valid only 4864 * for entries with the `FILESET` type. 4865 * </pre> 4866 * 4867 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4868 */ 4869 @java.lang.Override getGcsFilesetSpecOrBuilder()4870 public com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder() { 4871 if ((typeSpecCase_ == 6) && (gcsFilesetSpecBuilder_ != null)) { 4872 return gcsFilesetSpecBuilder_.getMessageOrBuilder(); 4873 } else { 4874 if (typeSpecCase_ == 6) { 4875 return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; 4876 } 4877 return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); 4878 } 4879 } 4880 /** 4881 * 4882 * 4883 * <pre> 4884 * Specification that applies to a Cloud Storage fileset. Valid only 4885 * for entries with the `FILESET` type. 4886 * </pre> 4887 * 4888 * <code>.google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6;</code> 4889 */ 4890 private com.google.protobuf.SingleFieldBuilderV3< 4891 com.google.cloud.datacatalog.v1.GcsFilesetSpec, 4892 com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, 4893 com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder> getGcsFilesetSpecFieldBuilder()4894 getGcsFilesetSpecFieldBuilder() { 4895 if (gcsFilesetSpecBuilder_ == null) { 4896 if (!(typeSpecCase_ == 6)) { 4897 typeSpec_ = com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); 4898 } 4899 gcsFilesetSpecBuilder_ = 4900 new com.google.protobuf.SingleFieldBuilderV3< 4901 com.google.cloud.datacatalog.v1.GcsFilesetSpec, 4902 com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, 4903 com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder>( 4904 (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_, 4905 getParentForChildren(), 4906 isClean()); 4907 typeSpec_ = null; 4908 } 4909 typeSpecCase_ = 6; 4910 onChanged(); 4911 return gcsFilesetSpecBuilder_; 4912 } 4913 4914 private com.google.protobuf.SingleFieldBuilderV3< 4915 com.google.cloud.datacatalog.v1.BigQueryTableSpec, 4916 com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, 4917 com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder> 4918 bigqueryTableSpecBuilder_; 4919 /** 4920 * 4921 * 4922 * <pre> 4923 * Output only. Specification that applies to a BigQuery table. Valid only 4924 * for entries with the `TABLE` type. 4925 * </pre> 4926 * 4927 * <code> 4928 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4929 * </code> 4930 * 4931 * @return Whether the bigqueryTableSpec field is set. 4932 */ 4933 @java.lang.Override hasBigqueryTableSpec()4934 public boolean hasBigqueryTableSpec() { 4935 return typeSpecCase_ == 12; 4936 } 4937 /** 4938 * 4939 * 4940 * <pre> 4941 * Output only. Specification that applies to a BigQuery table. Valid only 4942 * for entries with the `TABLE` type. 4943 * </pre> 4944 * 4945 * <code> 4946 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4947 * </code> 4948 * 4949 * @return The bigqueryTableSpec. 4950 */ 4951 @java.lang.Override getBigqueryTableSpec()4952 public com.google.cloud.datacatalog.v1.BigQueryTableSpec getBigqueryTableSpec() { 4953 if (bigqueryTableSpecBuilder_ == null) { 4954 if (typeSpecCase_ == 12) { 4955 return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; 4956 } 4957 return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); 4958 } else { 4959 if (typeSpecCase_ == 12) { 4960 return bigqueryTableSpecBuilder_.getMessage(); 4961 } 4962 return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); 4963 } 4964 } 4965 /** 4966 * 4967 * 4968 * <pre> 4969 * Output only. Specification that applies to a BigQuery table. Valid only 4970 * for entries with the `TABLE` type. 4971 * </pre> 4972 * 4973 * <code> 4974 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4975 * </code> 4976 */ setBigqueryTableSpec(com.google.cloud.datacatalog.v1.BigQueryTableSpec value)4977 public Builder setBigqueryTableSpec(com.google.cloud.datacatalog.v1.BigQueryTableSpec value) { 4978 if (bigqueryTableSpecBuilder_ == null) { 4979 if (value == null) { 4980 throw new NullPointerException(); 4981 } 4982 typeSpec_ = value; 4983 onChanged(); 4984 } else { 4985 bigqueryTableSpecBuilder_.setMessage(value); 4986 } 4987 typeSpecCase_ = 12; 4988 return this; 4989 } 4990 /** 4991 * 4992 * 4993 * <pre> 4994 * Output only. Specification that applies to a BigQuery table. Valid only 4995 * for entries with the `TABLE` type. 4996 * </pre> 4997 * 4998 * <code> 4999 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5000 * </code> 5001 */ setBigqueryTableSpec( com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder builderForValue)5002 public Builder setBigqueryTableSpec( 5003 com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder builderForValue) { 5004 if (bigqueryTableSpecBuilder_ == null) { 5005 typeSpec_ = builderForValue.build(); 5006 onChanged(); 5007 } else { 5008 bigqueryTableSpecBuilder_.setMessage(builderForValue.build()); 5009 } 5010 typeSpecCase_ = 12; 5011 return this; 5012 } 5013 /** 5014 * 5015 * 5016 * <pre> 5017 * Output only. Specification that applies to a BigQuery table. Valid only 5018 * for entries with the `TABLE` type. 5019 * </pre> 5020 * 5021 * <code> 5022 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5023 * </code> 5024 */ mergeBigqueryTableSpec(com.google.cloud.datacatalog.v1.BigQueryTableSpec value)5025 public Builder mergeBigqueryTableSpec(com.google.cloud.datacatalog.v1.BigQueryTableSpec value) { 5026 if (bigqueryTableSpecBuilder_ == null) { 5027 if (typeSpecCase_ == 12 5028 && typeSpec_ 5029 != com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance()) { 5030 typeSpec_ = 5031 com.google.cloud.datacatalog.v1.BigQueryTableSpec.newBuilder( 5032 (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_) 5033 .mergeFrom(value) 5034 .buildPartial(); 5035 } else { 5036 typeSpec_ = value; 5037 } 5038 onChanged(); 5039 } else { 5040 if (typeSpecCase_ == 12) { 5041 bigqueryTableSpecBuilder_.mergeFrom(value); 5042 } else { 5043 bigqueryTableSpecBuilder_.setMessage(value); 5044 } 5045 } 5046 typeSpecCase_ = 12; 5047 return this; 5048 } 5049 /** 5050 * 5051 * 5052 * <pre> 5053 * Output only. Specification that applies to a BigQuery table. Valid only 5054 * for entries with the `TABLE` type. 5055 * </pre> 5056 * 5057 * <code> 5058 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5059 * </code> 5060 */ clearBigqueryTableSpec()5061 public Builder clearBigqueryTableSpec() { 5062 if (bigqueryTableSpecBuilder_ == null) { 5063 if (typeSpecCase_ == 12) { 5064 typeSpecCase_ = 0; 5065 typeSpec_ = null; 5066 onChanged(); 5067 } 5068 } else { 5069 if (typeSpecCase_ == 12) { 5070 typeSpecCase_ = 0; 5071 typeSpec_ = null; 5072 } 5073 bigqueryTableSpecBuilder_.clear(); 5074 } 5075 return this; 5076 } 5077 /** 5078 * 5079 * 5080 * <pre> 5081 * Output only. Specification that applies to a BigQuery table. Valid only 5082 * for entries with the `TABLE` type. 5083 * </pre> 5084 * 5085 * <code> 5086 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5087 * </code> 5088 */ getBigqueryTableSpecBuilder()5089 public com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder getBigqueryTableSpecBuilder() { 5090 return getBigqueryTableSpecFieldBuilder().getBuilder(); 5091 } 5092 /** 5093 * 5094 * 5095 * <pre> 5096 * Output only. Specification that applies to a BigQuery table. Valid only 5097 * for entries with the `TABLE` type. 5098 * </pre> 5099 * 5100 * <code> 5101 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5102 * </code> 5103 */ 5104 @java.lang.Override 5105 public com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder getBigqueryTableSpecOrBuilder()5106 getBigqueryTableSpecOrBuilder() { 5107 if ((typeSpecCase_ == 12) && (bigqueryTableSpecBuilder_ != null)) { 5108 return bigqueryTableSpecBuilder_.getMessageOrBuilder(); 5109 } else { 5110 if (typeSpecCase_ == 12) { 5111 return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; 5112 } 5113 return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); 5114 } 5115 } 5116 /** 5117 * 5118 * 5119 * <pre> 5120 * Output only. Specification that applies to a BigQuery table. Valid only 5121 * for entries with the `TABLE` type. 5122 * </pre> 5123 * 5124 * <code> 5125 * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5126 * </code> 5127 */ 5128 private com.google.protobuf.SingleFieldBuilderV3< 5129 com.google.cloud.datacatalog.v1.BigQueryTableSpec, 5130 com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, 5131 com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder> getBigqueryTableSpecFieldBuilder()5132 getBigqueryTableSpecFieldBuilder() { 5133 if (bigqueryTableSpecBuilder_ == null) { 5134 if (!(typeSpecCase_ == 12)) { 5135 typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); 5136 } 5137 bigqueryTableSpecBuilder_ = 5138 new com.google.protobuf.SingleFieldBuilderV3< 5139 com.google.cloud.datacatalog.v1.BigQueryTableSpec, 5140 com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, 5141 com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder>( 5142 (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_, 5143 getParentForChildren(), 5144 isClean()); 5145 typeSpec_ = null; 5146 } 5147 typeSpecCase_ = 12; 5148 onChanged(); 5149 return bigqueryTableSpecBuilder_; 5150 } 5151 5152 private com.google.protobuf.SingleFieldBuilderV3< 5153 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, 5154 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, 5155 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder> 5156 bigqueryDateShardedSpecBuilder_; 5157 /** 5158 * 5159 * 5160 * <pre> 5161 * Output only. Specification for a group of BigQuery tables with 5162 * the `[prefix]YYYYMMDD` name pattern. 5163 * For more information, see [Introduction to partitioned tables] 5164 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5165 * </pre> 5166 * 5167 * <code> 5168 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5169 * </code> 5170 * 5171 * @return Whether the bigqueryDateShardedSpec field is set. 5172 */ 5173 @java.lang.Override hasBigqueryDateShardedSpec()5174 public boolean hasBigqueryDateShardedSpec() { 5175 return typeSpecCase_ == 15; 5176 } 5177 /** 5178 * 5179 * 5180 * <pre> 5181 * Output only. Specification for a group of BigQuery tables with 5182 * the `[prefix]YYYYMMDD` name pattern. 5183 * For more information, see [Introduction to partitioned tables] 5184 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5185 * </pre> 5186 * 5187 * <code> 5188 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5189 * </code> 5190 * 5191 * @return The bigqueryDateShardedSpec. 5192 */ 5193 @java.lang.Override getBigqueryDateShardedSpec()5194 public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getBigqueryDateShardedSpec() { 5195 if (bigqueryDateShardedSpecBuilder_ == null) { 5196 if (typeSpecCase_ == 15) { 5197 return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; 5198 } 5199 return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); 5200 } else { 5201 if (typeSpecCase_ == 15) { 5202 return bigqueryDateShardedSpecBuilder_.getMessage(); 5203 } 5204 return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); 5205 } 5206 } 5207 /** 5208 * 5209 * 5210 * <pre> 5211 * Output only. Specification for a group of BigQuery tables with 5212 * the `[prefix]YYYYMMDD` name pattern. 5213 * For more information, see [Introduction to partitioned tables] 5214 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5215 * </pre> 5216 * 5217 * <code> 5218 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5219 * </code> 5220 */ setBigqueryDateShardedSpec( com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec value)5221 public Builder setBigqueryDateShardedSpec( 5222 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec value) { 5223 if (bigqueryDateShardedSpecBuilder_ == null) { 5224 if (value == null) { 5225 throw new NullPointerException(); 5226 } 5227 typeSpec_ = value; 5228 onChanged(); 5229 } else { 5230 bigqueryDateShardedSpecBuilder_.setMessage(value); 5231 } 5232 typeSpecCase_ = 15; 5233 return this; 5234 } 5235 /** 5236 * 5237 * 5238 * <pre> 5239 * Output only. Specification for a group of BigQuery tables with 5240 * the `[prefix]YYYYMMDD` name pattern. 5241 * For more information, see [Introduction to partitioned tables] 5242 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5243 * </pre> 5244 * 5245 * <code> 5246 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5247 * </code> 5248 */ setBigqueryDateShardedSpec( com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder builderForValue)5249 public Builder setBigqueryDateShardedSpec( 5250 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder builderForValue) { 5251 if (bigqueryDateShardedSpecBuilder_ == null) { 5252 typeSpec_ = builderForValue.build(); 5253 onChanged(); 5254 } else { 5255 bigqueryDateShardedSpecBuilder_.setMessage(builderForValue.build()); 5256 } 5257 typeSpecCase_ = 15; 5258 return this; 5259 } 5260 /** 5261 * 5262 * 5263 * <pre> 5264 * Output only. Specification for a group of BigQuery tables with 5265 * the `[prefix]YYYYMMDD` name pattern. 5266 * For more information, see [Introduction to partitioned tables] 5267 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5268 * </pre> 5269 * 5270 * <code> 5271 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5272 * </code> 5273 */ mergeBigqueryDateShardedSpec( com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec value)5274 public Builder mergeBigqueryDateShardedSpec( 5275 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec value) { 5276 if (bigqueryDateShardedSpecBuilder_ == null) { 5277 if (typeSpecCase_ == 15 5278 && typeSpec_ 5279 != com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance()) { 5280 typeSpec_ = 5281 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.newBuilder( 5282 (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_) 5283 .mergeFrom(value) 5284 .buildPartial(); 5285 } else { 5286 typeSpec_ = value; 5287 } 5288 onChanged(); 5289 } else { 5290 if (typeSpecCase_ == 15) { 5291 bigqueryDateShardedSpecBuilder_.mergeFrom(value); 5292 } else { 5293 bigqueryDateShardedSpecBuilder_.setMessage(value); 5294 } 5295 } 5296 typeSpecCase_ = 15; 5297 return this; 5298 } 5299 /** 5300 * 5301 * 5302 * <pre> 5303 * Output only. Specification for a group of BigQuery tables with 5304 * the `[prefix]YYYYMMDD` name pattern. 5305 * For more information, see [Introduction to partitioned tables] 5306 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5307 * </pre> 5308 * 5309 * <code> 5310 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5311 * </code> 5312 */ clearBigqueryDateShardedSpec()5313 public Builder clearBigqueryDateShardedSpec() { 5314 if (bigqueryDateShardedSpecBuilder_ == null) { 5315 if (typeSpecCase_ == 15) { 5316 typeSpecCase_ = 0; 5317 typeSpec_ = null; 5318 onChanged(); 5319 } 5320 } else { 5321 if (typeSpecCase_ == 15) { 5322 typeSpecCase_ = 0; 5323 typeSpec_ = null; 5324 } 5325 bigqueryDateShardedSpecBuilder_.clear(); 5326 } 5327 return this; 5328 } 5329 /** 5330 * 5331 * 5332 * <pre> 5333 * Output only. Specification for a group of BigQuery tables with 5334 * the `[prefix]YYYYMMDD` name pattern. 5335 * For more information, see [Introduction to partitioned tables] 5336 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5337 * </pre> 5338 * 5339 * <code> 5340 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5341 * </code> 5342 */ 5343 public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder getBigqueryDateShardedSpecBuilder()5344 getBigqueryDateShardedSpecBuilder() { 5345 return getBigqueryDateShardedSpecFieldBuilder().getBuilder(); 5346 } 5347 /** 5348 * 5349 * 5350 * <pre> 5351 * Output only. Specification for a group of BigQuery tables with 5352 * the `[prefix]YYYYMMDD` name pattern. 5353 * For more information, see [Introduction to partitioned tables] 5354 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5355 * </pre> 5356 * 5357 * <code> 5358 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5359 * </code> 5360 */ 5361 @java.lang.Override 5362 public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder getBigqueryDateShardedSpecOrBuilder()5363 getBigqueryDateShardedSpecOrBuilder() { 5364 if ((typeSpecCase_ == 15) && (bigqueryDateShardedSpecBuilder_ != null)) { 5365 return bigqueryDateShardedSpecBuilder_.getMessageOrBuilder(); 5366 } else { 5367 if (typeSpecCase_ == 15) { 5368 return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; 5369 } 5370 return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); 5371 } 5372 } 5373 /** 5374 * 5375 * 5376 * <pre> 5377 * Output only. Specification for a group of BigQuery tables with 5378 * the `[prefix]YYYYMMDD` name pattern. 5379 * For more information, see [Introduction to partitioned tables] 5380 * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). 5381 * </pre> 5382 * 5383 * <code> 5384 * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5385 * </code> 5386 */ 5387 private com.google.protobuf.SingleFieldBuilderV3< 5388 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, 5389 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, 5390 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder> getBigqueryDateShardedSpecFieldBuilder()5391 getBigqueryDateShardedSpecFieldBuilder() { 5392 if (bigqueryDateShardedSpecBuilder_ == null) { 5393 if (!(typeSpecCase_ == 15)) { 5394 typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); 5395 } 5396 bigqueryDateShardedSpecBuilder_ = 5397 new com.google.protobuf.SingleFieldBuilderV3< 5398 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, 5399 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, 5400 com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder>( 5401 (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_, 5402 getParentForChildren(), 5403 isClean()); 5404 typeSpec_ = null; 5405 } 5406 typeSpecCase_ = 15; 5407 onChanged(); 5408 return bigqueryDateShardedSpecBuilder_; 5409 } 5410 5411 private com.google.protobuf.SingleFieldBuilderV3< 5412 com.google.cloud.datacatalog.v1.DatabaseTableSpec, 5413 com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, 5414 com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder> 5415 databaseTableSpecBuilder_; 5416 /** 5417 * 5418 * 5419 * <pre> 5420 * Specification that applies to a table resource. Valid only 5421 * for entries with the `TABLE` or `EXPLORE` type. 5422 * </pre> 5423 * 5424 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5425 * 5426 * @return Whether the databaseTableSpec field is set. 5427 */ 5428 @java.lang.Override hasDatabaseTableSpec()5429 public boolean hasDatabaseTableSpec() { 5430 return specCase_ == 24; 5431 } 5432 /** 5433 * 5434 * 5435 * <pre> 5436 * Specification that applies to a table resource. Valid only 5437 * for entries with the `TABLE` or `EXPLORE` type. 5438 * </pre> 5439 * 5440 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5441 * 5442 * @return The databaseTableSpec. 5443 */ 5444 @java.lang.Override getDatabaseTableSpec()5445 public com.google.cloud.datacatalog.v1.DatabaseTableSpec getDatabaseTableSpec() { 5446 if (databaseTableSpecBuilder_ == null) { 5447 if (specCase_ == 24) { 5448 return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; 5449 } 5450 return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); 5451 } else { 5452 if (specCase_ == 24) { 5453 return databaseTableSpecBuilder_.getMessage(); 5454 } 5455 return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); 5456 } 5457 } 5458 /** 5459 * 5460 * 5461 * <pre> 5462 * Specification that applies to a table resource. Valid only 5463 * for entries with the `TABLE` or `EXPLORE` type. 5464 * </pre> 5465 * 5466 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5467 */ setDatabaseTableSpec(com.google.cloud.datacatalog.v1.DatabaseTableSpec value)5468 public Builder setDatabaseTableSpec(com.google.cloud.datacatalog.v1.DatabaseTableSpec value) { 5469 if (databaseTableSpecBuilder_ == null) { 5470 if (value == null) { 5471 throw new NullPointerException(); 5472 } 5473 spec_ = value; 5474 onChanged(); 5475 } else { 5476 databaseTableSpecBuilder_.setMessage(value); 5477 } 5478 specCase_ = 24; 5479 return this; 5480 } 5481 /** 5482 * 5483 * 5484 * <pre> 5485 * Specification that applies to a table resource. Valid only 5486 * for entries with the `TABLE` or `EXPLORE` type. 5487 * </pre> 5488 * 5489 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5490 */ setDatabaseTableSpec( com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder builderForValue)5491 public Builder setDatabaseTableSpec( 5492 com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder builderForValue) { 5493 if (databaseTableSpecBuilder_ == null) { 5494 spec_ = builderForValue.build(); 5495 onChanged(); 5496 } else { 5497 databaseTableSpecBuilder_.setMessage(builderForValue.build()); 5498 } 5499 specCase_ = 24; 5500 return this; 5501 } 5502 /** 5503 * 5504 * 5505 * <pre> 5506 * Specification that applies to a table resource. Valid only 5507 * for entries with the `TABLE` or `EXPLORE` type. 5508 * </pre> 5509 * 5510 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5511 */ mergeDatabaseTableSpec(com.google.cloud.datacatalog.v1.DatabaseTableSpec value)5512 public Builder mergeDatabaseTableSpec(com.google.cloud.datacatalog.v1.DatabaseTableSpec value) { 5513 if (databaseTableSpecBuilder_ == null) { 5514 if (specCase_ == 24 5515 && spec_ != com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance()) { 5516 spec_ = 5517 com.google.cloud.datacatalog.v1.DatabaseTableSpec.newBuilder( 5518 (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_) 5519 .mergeFrom(value) 5520 .buildPartial(); 5521 } else { 5522 spec_ = value; 5523 } 5524 onChanged(); 5525 } else { 5526 if (specCase_ == 24) { 5527 databaseTableSpecBuilder_.mergeFrom(value); 5528 } else { 5529 databaseTableSpecBuilder_.setMessage(value); 5530 } 5531 } 5532 specCase_ = 24; 5533 return this; 5534 } 5535 /** 5536 * 5537 * 5538 * <pre> 5539 * Specification that applies to a table resource. Valid only 5540 * for entries with the `TABLE` or `EXPLORE` type. 5541 * </pre> 5542 * 5543 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5544 */ clearDatabaseTableSpec()5545 public Builder clearDatabaseTableSpec() { 5546 if (databaseTableSpecBuilder_ == null) { 5547 if (specCase_ == 24) { 5548 specCase_ = 0; 5549 spec_ = null; 5550 onChanged(); 5551 } 5552 } else { 5553 if (specCase_ == 24) { 5554 specCase_ = 0; 5555 spec_ = null; 5556 } 5557 databaseTableSpecBuilder_.clear(); 5558 } 5559 return this; 5560 } 5561 /** 5562 * 5563 * 5564 * <pre> 5565 * Specification that applies to a table resource. Valid only 5566 * for entries with the `TABLE` or `EXPLORE` type. 5567 * </pre> 5568 * 5569 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5570 */ getDatabaseTableSpecBuilder()5571 public com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder getDatabaseTableSpecBuilder() { 5572 return getDatabaseTableSpecFieldBuilder().getBuilder(); 5573 } 5574 /** 5575 * 5576 * 5577 * <pre> 5578 * Specification that applies to a table resource. Valid only 5579 * for entries with the `TABLE` or `EXPLORE` type. 5580 * </pre> 5581 * 5582 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5583 */ 5584 @java.lang.Override 5585 public com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder getDatabaseTableSpecOrBuilder()5586 getDatabaseTableSpecOrBuilder() { 5587 if ((specCase_ == 24) && (databaseTableSpecBuilder_ != null)) { 5588 return databaseTableSpecBuilder_.getMessageOrBuilder(); 5589 } else { 5590 if (specCase_ == 24) { 5591 return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; 5592 } 5593 return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); 5594 } 5595 } 5596 /** 5597 * 5598 * 5599 * <pre> 5600 * Specification that applies to a table resource. Valid only 5601 * for entries with the `TABLE` or `EXPLORE` type. 5602 * </pre> 5603 * 5604 * <code>.google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24;</code> 5605 */ 5606 private com.google.protobuf.SingleFieldBuilderV3< 5607 com.google.cloud.datacatalog.v1.DatabaseTableSpec, 5608 com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, 5609 com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder> getDatabaseTableSpecFieldBuilder()5610 getDatabaseTableSpecFieldBuilder() { 5611 if (databaseTableSpecBuilder_ == null) { 5612 if (!(specCase_ == 24)) { 5613 spec_ = com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); 5614 } 5615 databaseTableSpecBuilder_ = 5616 new com.google.protobuf.SingleFieldBuilderV3< 5617 com.google.cloud.datacatalog.v1.DatabaseTableSpec, 5618 com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, 5619 com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder>( 5620 (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_, 5621 getParentForChildren(), 5622 isClean()); 5623 spec_ = null; 5624 } 5625 specCase_ = 24; 5626 onChanged(); 5627 return databaseTableSpecBuilder_; 5628 } 5629 5630 private com.google.protobuf.SingleFieldBuilderV3< 5631 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, 5632 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, 5633 com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder> 5634 dataSourceConnectionSpecBuilder_; 5635 /** 5636 * 5637 * 5638 * <pre> 5639 * Specification that applies to a data source connection. Valid only 5640 * for entries with the `DATA_SOURCE_CONNECTION` type. 5641 * </pre> 5642 * 5643 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5644 * </code> 5645 * 5646 * @return Whether the dataSourceConnectionSpec field is set. 5647 */ 5648 @java.lang.Override hasDataSourceConnectionSpec()5649 public boolean hasDataSourceConnectionSpec() { 5650 return specCase_ == 27; 5651 } 5652 /** 5653 * 5654 * 5655 * <pre> 5656 * Specification that applies to a data source connection. Valid only 5657 * for entries with the `DATA_SOURCE_CONNECTION` type. 5658 * </pre> 5659 * 5660 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5661 * </code> 5662 * 5663 * @return The dataSourceConnectionSpec. 5664 */ 5665 @java.lang.Override getDataSourceConnectionSpec()5666 public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDataSourceConnectionSpec() { 5667 if (dataSourceConnectionSpecBuilder_ == null) { 5668 if (specCase_ == 27) { 5669 return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; 5670 } 5671 return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); 5672 } else { 5673 if (specCase_ == 27) { 5674 return dataSourceConnectionSpecBuilder_.getMessage(); 5675 } 5676 return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); 5677 } 5678 } 5679 /** 5680 * 5681 * 5682 * <pre> 5683 * Specification that applies to a data source connection. Valid only 5684 * for entries with the `DATA_SOURCE_CONNECTION` type. 5685 * </pre> 5686 * 5687 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5688 * </code> 5689 */ setDataSourceConnectionSpec( com.google.cloud.datacatalog.v1.DataSourceConnectionSpec value)5690 public Builder setDataSourceConnectionSpec( 5691 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec value) { 5692 if (dataSourceConnectionSpecBuilder_ == null) { 5693 if (value == null) { 5694 throw new NullPointerException(); 5695 } 5696 spec_ = value; 5697 onChanged(); 5698 } else { 5699 dataSourceConnectionSpecBuilder_.setMessage(value); 5700 } 5701 specCase_ = 27; 5702 return this; 5703 } 5704 /** 5705 * 5706 * 5707 * <pre> 5708 * Specification that applies to a data source connection. Valid only 5709 * for entries with the `DATA_SOURCE_CONNECTION` type. 5710 * </pre> 5711 * 5712 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5713 * </code> 5714 */ setDataSourceConnectionSpec( com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder builderForValue)5715 public Builder setDataSourceConnectionSpec( 5716 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder builderForValue) { 5717 if (dataSourceConnectionSpecBuilder_ == null) { 5718 spec_ = builderForValue.build(); 5719 onChanged(); 5720 } else { 5721 dataSourceConnectionSpecBuilder_.setMessage(builderForValue.build()); 5722 } 5723 specCase_ = 27; 5724 return this; 5725 } 5726 /** 5727 * 5728 * 5729 * <pre> 5730 * Specification that applies to a data source connection. Valid only 5731 * for entries with the `DATA_SOURCE_CONNECTION` type. 5732 * </pre> 5733 * 5734 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5735 * </code> 5736 */ mergeDataSourceConnectionSpec( com.google.cloud.datacatalog.v1.DataSourceConnectionSpec value)5737 public Builder mergeDataSourceConnectionSpec( 5738 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec value) { 5739 if (dataSourceConnectionSpecBuilder_ == null) { 5740 if (specCase_ == 27 5741 && spec_ 5742 != com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance()) { 5743 spec_ = 5744 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.newBuilder( 5745 (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_) 5746 .mergeFrom(value) 5747 .buildPartial(); 5748 } else { 5749 spec_ = value; 5750 } 5751 onChanged(); 5752 } else { 5753 if (specCase_ == 27) { 5754 dataSourceConnectionSpecBuilder_.mergeFrom(value); 5755 } else { 5756 dataSourceConnectionSpecBuilder_.setMessage(value); 5757 } 5758 } 5759 specCase_ = 27; 5760 return this; 5761 } 5762 /** 5763 * 5764 * 5765 * <pre> 5766 * Specification that applies to a data source connection. Valid only 5767 * for entries with the `DATA_SOURCE_CONNECTION` type. 5768 * </pre> 5769 * 5770 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5771 * </code> 5772 */ clearDataSourceConnectionSpec()5773 public Builder clearDataSourceConnectionSpec() { 5774 if (dataSourceConnectionSpecBuilder_ == null) { 5775 if (specCase_ == 27) { 5776 specCase_ = 0; 5777 spec_ = null; 5778 onChanged(); 5779 } 5780 } else { 5781 if (specCase_ == 27) { 5782 specCase_ = 0; 5783 spec_ = null; 5784 } 5785 dataSourceConnectionSpecBuilder_.clear(); 5786 } 5787 return this; 5788 } 5789 /** 5790 * 5791 * 5792 * <pre> 5793 * Specification that applies to a data source connection. Valid only 5794 * for entries with the `DATA_SOURCE_CONNECTION` type. 5795 * </pre> 5796 * 5797 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5798 * </code> 5799 */ 5800 public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder getDataSourceConnectionSpecBuilder()5801 getDataSourceConnectionSpecBuilder() { 5802 return getDataSourceConnectionSpecFieldBuilder().getBuilder(); 5803 } 5804 /** 5805 * 5806 * 5807 * <pre> 5808 * Specification that applies to a data source connection. Valid only 5809 * for entries with the `DATA_SOURCE_CONNECTION` type. 5810 * </pre> 5811 * 5812 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5813 * </code> 5814 */ 5815 @java.lang.Override 5816 public com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder getDataSourceConnectionSpecOrBuilder()5817 getDataSourceConnectionSpecOrBuilder() { 5818 if ((specCase_ == 27) && (dataSourceConnectionSpecBuilder_ != null)) { 5819 return dataSourceConnectionSpecBuilder_.getMessageOrBuilder(); 5820 } else { 5821 if (specCase_ == 27) { 5822 return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; 5823 } 5824 return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); 5825 } 5826 } 5827 /** 5828 * 5829 * 5830 * <pre> 5831 * Specification that applies to a data source connection. Valid only 5832 * for entries with the `DATA_SOURCE_CONNECTION` type. 5833 * </pre> 5834 * 5835 * <code>.google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; 5836 * </code> 5837 */ 5838 private com.google.protobuf.SingleFieldBuilderV3< 5839 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, 5840 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, 5841 com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder> getDataSourceConnectionSpecFieldBuilder()5842 getDataSourceConnectionSpecFieldBuilder() { 5843 if (dataSourceConnectionSpecBuilder_ == null) { 5844 if (!(specCase_ == 27)) { 5845 spec_ = com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); 5846 } 5847 dataSourceConnectionSpecBuilder_ = 5848 new com.google.protobuf.SingleFieldBuilderV3< 5849 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, 5850 com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, 5851 com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder>( 5852 (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_, 5853 getParentForChildren(), 5854 isClean()); 5855 spec_ = null; 5856 } 5857 specCase_ = 27; 5858 onChanged(); 5859 return dataSourceConnectionSpecBuilder_; 5860 } 5861 5862 private com.google.protobuf.SingleFieldBuilderV3< 5863 com.google.cloud.datacatalog.v1.RoutineSpec, 5864 com.google.cloud.datacatalog.v1.RoutineSpec.Builder, 5865 com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder> 5866 routineSpecBuilder_; 5867 /** 5868 * 5869 * 5870 * <pre> 5871 * Specification that applies to a user-defined function or procedure. Valid 5872 * only for entries with the `ROUTINE` type. 5873 * </pre> 5874 * 5875 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 5876 * 5877 * @return Whether the routineSpec field is set. 5878 */ 5879 @java.lang.Override hasRoutineSpec()5880 public boolean hasRoutineSpec() { 5881 return specCase_ == 28; 5882 } 5883 /** 5884 * 5885 * 5886 * <pre> 5887 * Specification that applies to a user-defined function or procedure. Valid 5888 * only for entries with the `ROUTINE` type. 5889 * </pre> 5890 * 5891 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 5892 * 5893 * @return The routineSpec. 5894 */ 5895 @java.lang.Override getRoutineSpec()5896 public com.google.cloud.datacatalog.v1.RoutineSpec getRoutineSpec() { 5897 if (routineSpecBuilder_ == null) { 5898 if (specCase_ == 28) { 5899 return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; 5900 } 5901 return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); 5902 } else { 5903 if (specCase_ == 28) { 5904 return routineSpecBuilder_.getMessage(); 5905 } 5906 return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); 5907 } 5908 } 5909 /** 5910 * 5911 * 5912 * <pre> 5913 * Specification that applies to a user-defined function or procedure. Valid 5914 * only for entries with the `ROUTINE` type. 5915 * </pre> 5916 * 5917 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 5918 */ setRoutineSpec(com.google.cloud.datacatalog.v1.RoutineSpec value)5919 public Builder setRoutineSpec(com.google.cloud.datacatalog.v1.RoutineSpec value) { 5920 if (routineSpecBuilder_ == null) { 5921 if (value == null) { 5922 throw new NullPointerException(); 5923 } 5924 spec_ = value; 5925 onChanged(); 5926 } else { 5927 routineSpecBuilder_.setMessage(value); 5928 } 5929 specCase_ = 28; 5930 return this; 5931 } 5932 /** 5933 * 5934 * 5935 * <pre> 5936 * Specification that applies to a user-defined function or procedure. Valid 5937 * only for entries with the `ROUTINE` type. 5938 * </pre> 5939 * 5940 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 5941 */ setRoutineSpec( com.google.cloud.datacatalog.v1.RoutineSpec.Builder builderForValue)5942 public Builder setRoutineSpec( 5943 com.google.cloud.datacatalog.v1.RoutineSpec.Builder builderForValue) { 5944 if (routineSpecBuilder_ == null) { 5945 spec_ = builderForValue.build(); 5946 onChanged(); 5947 } else { 5948 routineSpecBuilder_.setMessage(builderForValue.build()); 5949 } 5950 specCase_ = 28; 5951 return this; 5952 } 5953 /** 5954 * 5955 * 5956 * <pre> 5957 * Specification that applies to a user-defined function or procedure. Valid 5958 * only for entries with the `ROUTINE` type. 5959 * </pre> 5960 * 5961 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 5962 */ mergeRoutineSpec(com.google.cloud.datacatalog.v1.RoutineSpec value)5963 public Builder mergeRoutineSpec(com.google.cloud.datacatalog.v1.RoutineSpec value) { 5964 if (routineSpecBuilder_ == null) { 5965 if (specCase_ == 28 5966 && spec_ != com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance()) { 5967 spec_ = 5968 com.google.cloud.datacatalog.v1.RoutineSpec.newBuilder( 5969 (com.google.cloud.datacatalog.v1.RoutineSpec) spec_) 5970 .mergeFrom(value) 5971 .buildPartial(); 5972 } else { 5973 spec_ = value; 5974 } 5975 onChanged(); 5976 } else { 5977 if (specCase_ == 28) { 5978 routineSpecBuilder_.mergeFrom(value); 5979 } else { 5980 routineSpecBuilder_.setMessage(value); 5981 } 5982 } 5983 specCase_ = 28; 5984 return this; 5985 } 5986 /** 5987 * 5988 * 5989 * <pre> 5990 * Specification that applies to a user-defined function or procedure. Valid 5991 * only for entries with the `ROUTINE` type. 5992 * </pre> 5993 * 5994 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 5995 */ clearRoutineSpec()5996 public Builder clearRoutineSpec() { 5997 if (routineSpecBuilder_ == null) { 5998 if (specCase_ == 28) { 5999 specCase_ = 0; 6000 spec_ = null; 6001 onChanged(); 6002 } 6003 } else { 6004 if (specCase_ == 28) { 6005 specCase_ = 0; 6006 spec_ = null; 6007 } 6008 routineSpecBuilder_.clear(); 6009 } 6010 return this; 6011 } 6012 /** 6013 * 6014 * 6015 * <pre> 6016 * Specification that applies to a user-defined function or procedure. Valid 6017 * only for entries with the `ROUTINE` type. 6018 * </pre> 6019 * 6020 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 6021 */ getRoutineSpecBuilder()6022 public com.google.cloud.datacatalog.v1.RoutineSpec.Builder getRoutineSpecBuilder() { 6023 return getRoutineSpecFieldBuilder().getBuilder(); 6024 } 6025 /** 6026 * 6027 * 6028 * <pre> 6029 * Specification that applies to a user-defined function or procedure. Valid 6030 * only for entries with the `ROUTINE` type. 6031 * </pre> 6032 * 6033 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 6034 */ 6035 @java.lang.Override getRoutineSpecOrBuilder()6036 public com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder getRoutineSpecOrBuilder() { 6037 if ((specCase_ == 28) && (routineSpecBuilder_ != null)) { 6038 return routineSpecBuilder_.getMessageOrBuilder(); 6039 } else { 6040 if (specCase_ == 28) { 6041 return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; 6042 } 6043 return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); 6044 } 6045 } 6046 /** 6047 * 6048 * 6049 * <pre> 6050 * Specification that applies to a user-defined function or procedure. Valid 6051 * only for entries with the `ROUTINE` type. 6052 * </pre> 6053 * 6054 * <code>.google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28;</code> 6055 */ 6056 private com.google.protobuf.SingleFieldBuilderV3< 6057 com.google.cloud.datacatalog.v1.RoutineSpec, 6058 com.google.cloud.datacatalog.v1.RoutineSpec.Builder, 6059 com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder> getRoutineSpecFieldBuilder()6060 getRoutineSpecFieldBuilder() { 6061 if (routineSpecBuilder_ == null) { 6062 if (!(specCase_ == 28)) { 6063 spec_ = com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); 6064 } 6065 routineSpecBuilder_ = 6066 new com.google.protobuf.SingleFieldBuilderV3< 6067 com.google.cloud.datacatalog.v1.RoutineSpec, 6068 com.google.cloud.datacatalog.v1.RoutineSpec.Builder, 6069 com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder>( 6070 (com.google.cloud.datacatalog.v1.RoutineSpec) spec_, 6071 getParentForChildren(), 6072 isClean()); 6073 spec_ = null; 6074 } 6075 specCase_ = 28; 6076 onChanged(); 6077 return routineSpecBuilder_; 6078 } 6079 6080 private com.google.protobuf.SingleFieldBuilderV3< 6081 com.google.cloud.datacatalog.v1.FilesetSpec, 6082 com.google.cloud.datacatalog.v1.FilesetSpec.Builder, 6083 com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder> 6084 filesetSpecBuilder_; 6085 /** 6086 * 6087 * 6088 * <pre> 6089 * Specification that applies to a fileset resource. Valid only 6090 * for entries with the `FILESET` type. 6091 * </pre> 6092 * 6093 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6094 * 6095 * @return Whether the filesetSpec field is set. 6096 */ 6097 @java.lang.Override hasFilesetSpec()6098 public boolean hasFilesetSpec() { 6099 return specCase_ == 33; 6100 } 6101 /** 6102 * 6103 * 6104 * <pre> 6105 * Specification that applies to a fileset resource. Valid only 6106 * for entries with the `FILESET` type. 6107 * </pre> 6108 * 6109 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6110 * 6111 * @return The filesetSpec. 6112 */ 6113 @java.lang.Override getFilesetSpec()6114 public com.google.cloud.datacatalog.v1.FilesetSpec getFilesetSpec() { 6115 if (filesetSpecBuilder_ == null) { 6116 if (specCase_ == 33) { 6117 return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; 6118 } 6119 return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); 6120 } else { 6121 if (specCase_ == 33) { 6122 return filesetSpecBuilder_.getMessage(); 6123 } 6124 return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); 6125 } 6126 } 6127 /** 6128 * 6129 * 6130 * <pre> 6131 * Specification that applies to a fileset resource. Valid only 6132 * for entries with the `FILESET` type. 6133 * </pre> 6134 * 6135 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6136 */ setFilesetSpec(com.google.cloud.datacatalog.v1.FilesetSpec value)6137 public Builder setFilesetSpec(com.google.cloud.datacatalog.v1.FilesetSpec value) { 6138 if (filesetSpecBuilder_ == null) { 6139 if (value == null) { 6140 throw new NullPointerException(); 6141 } 6142 spec_ = value; 6143 onChanged(); 6144 } else { 6145 filesetSpecBuilder_.setMessage(value); 6146 } 6147 specCase_ = 33; 6148 return this; 6149 } 6150 /** 6151 * 6152 * 6153 * <pre> 6154 * Specification that applies to a fileset resource. Valid only 6155 * for entries with the `FILESET` type. 6156 * </pre> 6157 * 6158 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6159 */ setFilesetSpec( com.google.cloud.datacatalog.v1.FilesetSpec.Builder builderForValue)6160 public Builder setFilesetSpec( 6161 com.google.cloud.datacatalog.v1.FilesetSpec.Builder builderForValue) { 6162 if (filesetSpecBuilder_ == null) { 6163 spec_ = builderForValue.build(); 6164 onChanged(); 6165 } else { 6166 filesetSpecBuilder_.setMessage(builderForValue.build()); 6167 } 6168 specCase_ = 33; 6169 return this; 6170 } 6171 /** 6172 * 6173 * 6174 * <pre> 6175 * Specification that applies to a fileset resource. Valid only 6176 * for entries with the `FILESET` type. 6177 * </pre> 6178 * 6179 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6180 */ mergeFilesetSpec(com.google.cloud.datacatalog.v1.FilesetSpec value)6181 public Builder mergeFilesetSpec(com.google.cloud.datacatalog.v1.FilesetSpec value) { 6182 if (filesetSpecBuilder_ == null) { 6183 if (specCase_ == 33 6184 && spec_ != com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance()) { 6185 spec_ = 6186 com.google.cloud.datacatalog.v1.FilesetSpec.newBuilder( 6187 (com.google.cloud.datacatalog.v1.FilesetSpec) spec_) 6188 .mergeFrom(value) 6189 .buildPartial(); 6190 } else { 6191 spec_ = value; 6192 } 6193 onChanged(); 6194 } else { 6195 if (specCase_ == 33) { 6196 filesetSpecBuilder_.mergeFrom(value); 6197 } else { 6198 filesetSpecBuilder_.setMessage(value); 6199 } 6200 } 6201 specCase_ = 33; 6202 return this; 6203 } 6204 /** 6205 * 6206 * 6207 * <pre> 6208 * Specification that applies to a fileset resource. Valid only 6209 * for entries with the `FILESET` type. 6210 * </pre> 6211 * 6212 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6213 */ clearFilesetSpec()6214 public Builder clearFilesetSpec() { 6215 if (filesetSpecBuilder_ == null) { 6216 if (specCase_ == 33) { 6217 specCase_ = 0; 6218 spec_ = null; 6219 onChanged(); 6220 } 6221 } else { 6222 if (specCase_ == 33) { 6223 specCase_ = 0; 6224 spec_ = null; 6225 } 6226 filesetSpecBuilder_.clear(); 6227 } 6228 return this; 6229 } 6230 /** 6231 * 6232 * 6233 * <pre> 6234 * Specification that applies to a fileset resource. Valid only 6235 * for entries with the `FILESET` type. 6236 * </pre> 6237 * 6238 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6239 */ getFilesetSpecBuilder()6240 public com.google.cloud.datacatalog.v1.FilesetSpec.Builder getFilesetSpecBuilder() { 6241 return getFilesetSpecFieldBuilder().getBuilder(); 6242 } 6243 /** 6244 * 6245 * 6246 * <pre> 6247 * Specification that applies to a fileset resource. Valid only 6248 * for entries with the `FILESET` type. 6249 * </pre> 6250 * 6251 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6252 */ 6253 @java.lang.Override getFilesetSpecOrBuilder()6254 public com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder getFilesetSpecOrBuilder() { 6255 if ((specCase_ == 33) && (filesetSpecBuilder_ != null)) { 6256 return filesetSpecBuilder_.getMessageOrBuilder(); 6257 } else { 6258 if (specCase_ == 33) { 6259 return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; 6260 } 6261 return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); 6262 } 6263 } 6264 /** 6265 * 6266 * 6267 * <pre> 6268 * Specification that applies to a fileset resource. Valid only 6269 * for entries with the `FILESET` type. 6270 * </pre> 6271 * 6272 * <code>.google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33;</code> 6273 */ 6274 private com.google.protobuf.SingleFieldBuilderV3< 6275 com.google.cloud.datacatalog.v1.FilesetSpec, 6276 com.google.cloud.datacatalog.v1.FilesetSpec.Builder, 6277 com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder> getFilesetSpecFieldBuilder()6278 getFilesetSpecFieldBuilder() { 6279 if (filesetSpecBuilder_ == null) { 6280 if (!(specCase_ == 33)) { 6281 spec_ = com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); 6282 } 6283 filesetSpecBuilder_ = 6284 new com.google.protobuf.SingleFieldBuilderV3< 6285 com.google.cloud.datacatalog.v1.FilesetSpec, 6286 com.google.cloud.datacatalog.v1.FilesetSpec.Builder, 6287 com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder>( 6288 (com.google.cloud.datacatalog.v1.FilesetSpec) spec_, 6289 getParentForChildren(), 6290 isClean()); 6291 spec_ = null; 6292 } 6293 specCase_ = 33; 6294 onChanged(); 6295 return filesetSpecBuilder_; 6296 } 6297 6298 private java.lang.Object displayName_ = ""; 6299 /** 6300 * 6301 * 6302 * <pre> 6303 * Display name of an entry. 6304 * The maximum size is 500 bytes when encoded in UTF-8. 6305 * Default value is an empty string. 6306 * </pre> 6307 * 6308 * <code>string display_name = 3;</code> 6309 * 6310 * @return The displayName. 6311 */ getDisplayName()6312 public java.lang.String getDisplayName() { 6313 java.lang.Object ref = displayName_; 6314 if (!(ref instanceof java.lang.String)) { 6315 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6316 java.lang.String s = bs.toStringUtf8(); 6317 displayName_ = s; 6318 return s; 6319 } else { 6320 return (java.lang.String) ref; 6321 } 6322 } 6323 /** 6324 * 6325 * 6326 * <pre> 6327 * Display name of an entry. 6328 * The maximum size is 500 bytes when encoded in UTF-8. 6329 * Default value is an empty string. 6330 * </pre> 6331 * 6332 * <code>string display_name = 3;</code> 6333 * 6334 * @return The bytes for displayName. 6335 */ getDisplayNameBytes()6336 public com.google.protobuf.ByteString getDisplayNameBytes() { 6337 java.lang.Object ref = displayName_; 6338 if (ref instanceof String) { 6339 com.google.protobuf.ByteString b = 6340 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6341 displayName_ = b; 6342 return b; 6343 } else { 6344 return (com.google.protobuf.ByteString) ref; 6345 } 6346 } 6347 /** 6348 * 6349 * 6350 * <pre> 6351 * Display name of an entry. 6352 * The maximum size is 500 bytes when encoded in UTF-8. 6353 * Default value is an empty string. 6354 * </pre> 6355 * 6356 * <code>string display_name = 3;</code> 6357 * 6358 * @param value The displayName to set. 6359 * @return This builder for chaining. 6360 */ setDisplayName(java.lang.String value)6361 public Builder setDisplayName(java.lang.String value) { 6362 if (value == null) { 6363 throw new NullPointerException(); 6364 } 6365 displayName_ = value; 6366 bitField0_ |= 0x00010000; 6367 onChanged(); 6368 return this; 6369 } 6370 /** 6371 * 6372 * 6373 * <pre> 6374 * Display name of an entry. 6375 * The maximum size is 500 bytes when encoded in UTF-8. 6376 * Default value is an empty string. 6377 * </pre> 6378 * 6379 * <code>string display_name = 3;</code> 6380 * 6381 * @return This builder for chaining. 6382 */ clearDisplayName()6383 public Builder clearDisplayName() { 6384 displayName_ = getDefaultInstance().getDisplayName(); 6385 bitField0_ = (bitField0_ & ~0x00010000); 6386 onChanged(); 6387 return this; 6388 } 6389 /** 6390 * 6391 * 6392 * <pre> 6393 * Display name of an entry. 6394 * The maximum size is 500 bytes when encoded in UTF-8. 6395 * Default value is an empty string. 6396 * </pre> 6397 * 6398 * <code>string display_name = 3;</code> 6399 * 6400 * @param value The bytes for displayName to set. 6401 * @return This builder for chaining. 6402 */ setDisplayNameBytes(com.google.protobuf.ByteString value)6403 public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 6404 if (value == null) { 6405 throw new NullPointerException(); 6406 } 6407 checkByteStringIsUtf8(value); 6408 displayName_ = value; 6409 bitField0_ |= 0x00010000; 6410 onChanged(); 6411 return this; 6412 } 6413 6414 private java.lang.Object description_ = ""; 6415 /** 6416 * 6417 * 6418 * <pre> 6419 * Entry description that can consist of several sentences or paragraphs 6420 * that describe entry contents. 6421 * The description must not contain Unicode non-characters as well as C0 6422 * and C1 control codes except tabs (HT), new lines (LF), carriage returns 6423 * (CR), and page breaks (FF). 6424 * The maximum size is 2000 bytes when encoded in UTF-8. 6425 * Default value is an empty string. 6426 * </pre> 6427 * 6428 * <code>string description = 4;</code> 6429 * 6430 * @return The description. 6431 */ getDescription()6432 public java.lang.String getDescription() { 6433 java.lang.Object ref = description_; 6434 if (!(ref instanceof java.lang.String)) { 6435 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6436 java.lang.String s = bs.toStringUtf8(); 6437 description_ = s; 6438 return s; 6439 } else { 6440 return (java.lang.String) ref; 6441 } 6442 } 6443 /** 6444 * 6445 * 6446 * <pre> 6447 * Entry description that can consist of several sentences or paragraphs 6448 * that describe entry contents. 6449 * The description must not contain Unicode non-characters as well as C0 6450 * and C1 control codes except tabs (HT), new lines (LF), carriage returns 6451 * (CR), and page breaks (FF). 6452 * The maximum size is 2000 bytes when encoded in UTF-8. 6453 * Default value is an empty string. 6454 * </pre> 6455 * 6456 * <code>string description = 4;</code> 6457 * 6458 * @return The bytes for description. 6459 */ getDescriptionBytes()6460 public com.google.protobuf.ByteString getDescriptionBytes() { 6461 java.lang.Object ref = description_; 6462 if (ref instanceof String) { 6463 com.google.protobuf.ByteString b = 6464 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6465 description_ = b; 6466 return b; 6467 } else { 6468 return (com.google.protobuf.ByteString) ref; 6469 } 6470 } 6471 /** 6472 * 6473 * 6474 * <pre> 6475 * Entry description that can consist of several sentences or paragraphs 6476 * that describe entry contents. 6477 * The description must not contain Unicode non-characters as well as C0 6478 * and C1 control codes except tabs (HT), new lines (LF), carriage returns 6479 * (CR), and page breaks (FF). 6480 * The maximum size is 2000 bytes when encoded in UTF-8. 6481 * Default value is an empty string. 6482 * </pre> 6483 * 6484 * <code>string description = 4;</code> 6485 * 6486 * @param value The description to set. 6487 * @return This builder for chaining. 6488 */ setDescription(java.lang.String value)6489 public Builder setDescription(java.lang.String value) { 6490 if (value == null) { 6491 throw new NullPointerException(); 6492 } 6493 description_ = value; 6494 bitField0_ |= 0x00020000; 6495 onChanged(); 6496 return this; 6497 } 6498 /** 6499 * 6500 * 6501 * <pre> 6502 * Entry description that can consist of several sentences or paragraphs 6503 * that describe entry contents. 6504 * The description must not contain Unicode non-characters as well as C0 6505 * and C1 control codes except tabs (HT), new lines (LF), carriage returns 6506 * (CR), and page breaks (FF). 6507 * The maximum size is 2000 bytes when encoded in UTF-8. 6508 * Default value is an empty string. 6509 * </pre> 6510 * 6511 * <code>string description = 4;</code> 6512 * 6513 * @return This builder for chaining. 6514 */ clearDescription()6515 public Builder clearDescription() { 6516 description_ = getDefaultInstance().getDescription(); 6517 bitField0_ = (bitField0_ & ~0x00020000); 6518 onChanged(); 6519 return this; 6520 } 6521 /** 6522 * 6523 * 6524 * <pre> 6525 * Entry description that can consist of several sentences or paragraphs 6526 * that describe entry contents. 6527 * The description must not contain Unicode non-characters as well as C0 6528 * and C1 control codes except tabs (HT), new lines (LF), carriage returns 6529 * (CR), and page breaks (FF). 6530 * The maximum size is 2000 bytes when encoded in UTF-8. 6531 * Default value is an empty string. 6532 * </pre> 6533 * 6534 * <code>string description = 4;</code> 6535 * 6536 * @param value The bytes for description to set. 6537 * @return This builder for chaining. 6538 */ setDescriptionBytes(com.google.protobuf.ByteString value)6539 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 6540 if (value == null) { 6541 throw new NullPointerException(); 6542 } 6543 checkByteStringIsUtf8(value); 6544 description_ = value; 6545 bitField0_ |= 0x00020000; 6546 onChanged(); 6547 return this; 6548 } 6549 6550 private com.google.cloud.datacatalog.v1.BusinessContext businessContext_; 6551 private com.google.protobuf.SingleFieldBuilderV3< 6552 com.google.cloud.datacatalog.v1.BusinessContext, 6553 com.google.cloud.datacatalog.v1.BusinessContext.Builder, 6554 com.google.cloud.datacatalog.v1.BusinessContextOrBuilder> 6555 businessContextBuilder_; 6556 /** 6557 * 6558 * 6559 * <pre> 6560 * Business Context of the entry. Not supported for BigQuery datasets 6561 * </pre> 6562 * 6563 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6564 * 6565 * @return Whether the businessContext field is set. 6566 */ hasBusinessContext()6567 public boolean hasBusinessContext() { 6568 return ((bitField0_ & 0x00040000) != 0); 6569 } 6570 /** 6571 * 6572 * 6573 * <pre> 6574 * Business Context of the entry. Not supported for BigQuery datasets 6575 * </pre> 6576 * 6577 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6578 * 6579 * @return The businessContext. 6580 */ getBusinessContext()6581 public com.google.cloud.datacatalog.v1.BusinessContext getBusinessContext() { 6582 if (businessContextBuilder_ == null) { 6583 return businessContext_ == null 6584 ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() 6585 : businessContext_; 6586 } else { 6587 return businessContextBuilder_.getMessage(); 6588 } 6589 } 6590 /** 6591 * 6592 * 6593 * <pre> 6594 * Business Context of the entry. Not supported for BigQuery datasets 6595 * </pre> 6596 * 6597 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6598 */ setBusinessContext(com.google.cloud.datacatalog.v1.BusinessContext value)6599 public Builder setBusinessContext(com.google.cloud.datacatalog.v1.BusinessContext value) { 6600 if (businessContextBuilder_ == null) { 6601 if (value == null) { 6602 throw new NullPointerException(); 6603 } 6604 businessContext_ = value; 6605 } else { 6606 businessContextBuilder_.setMessage(value); 6607 } 6608 bitField0_ |= 0x00040000; 6609 onChanged(); 6610 return this; 6611 } 6612 /** 6613 * 6614 * 6615 * <pre> 6616 * Business Context of the entry. Not supported for BigQuery datasets 6617 * </pre> 6618 * 6619 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6620 */ setBusinessContext( com.google.cloud.datacatalog.v1.BusinessContext.Builder builderForValue)6621 public Builder setBusinessContext( 6622 com.google.cloud.datacatalog.v1.BusinessContext.Builder builderForValue) { 6623 if (businessContextBuilder_ == null) { 6624 businessContext_ = builderForValue.build(); 6625 } else { 6626 businessContextBuilder_.setMessage(builderForValue.build()); 6627 } 6628 bitField0_ |= 0x00040000; 6629 onChanged(); 6630 return this; 6631 } 6632 /** 6633 * 6634 * 6635 * <pre> 6636 * Business Context of the entry. Not supported for BigQuery datasets 6637 * </pre> 6638 * 6639 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6640 */ mergeBusinessContext(com.google.cloud.datacatalog.v1.BusinessContext value)6641 public Builder mergeBusinessContext(com.google.cloud.datacatalog.v1.BusinessContext value) { 6642 if (businessContextBuilder_ == null) { 6643 if (((bitField0_ & 0x00040000) != 0) 6644 && businessContext_ != null 6645 && businessContext_ 6646 != com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance()) { 6647 getBusinessContextBuilder().mergeFrom(value); 6648 } else { 6649 businessContext_ = value; 6650 } 6651 } else { 6652 businessContextBuilder_.mergeFrom(value); 6653 } 6654 bitField0_ |= 0x00040000; 6655 onChanged(); 6656 return this; 6657 } 6658 /** 6659 * 6660 * 6661 * <pre> 6662 * Business Context of the entry. Not supported for BigQuery datasets 6663 * </pre> 6664 * 6665 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6666 */ clearBusinessContext()6667 public Builder clearBusinessContext() { 6668 bitField0_ = (bitField0_ & ~0x00040000); 6669 businessContext_ = null; 6670 if (businessContextBuilder_ != null) { 6671 businessContextBuilder_.dispose(); 6672 businessContextBuilder_ = null; 6673 } 6674 onChanged(); 6675 return this; 6676 } 6677 /** 6678 * 6679 * 6680 * <pre> 6681 * Business Context of the entry. Not supported for BigQuery datasets 6682 * </pre> 6683 * 6684 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6685 */ getBusinessContextBuilder()6686 public com.google.cloud.datacatalog.v1.BusinessContext.Builder getBusinessContextBuilder() { 6687 bitField0_ |= 0x00040000; 6688 onChanged(); 6689 return getBusinessContextFieldBuilder().getBuilder(); 6690 } 6691 /** 6692 * 6693 * 6694 * <pre> 6695 * Business Context of the entry. Not supported for BigQuery datasets 6696 * </pre> 6697 * 6698 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6699 */ getBusinessContextOrBuilder()6700 public com.google.cloud.datacatalog.v1.BusinessContextOrBuilder getBusinessContextOrBuilder() { 6701 if (businessContextBuilder_ != null) { 6702 return businessContextBuilder_.getMessageOrBuilder(); 6703 } else { 6704 return businessContext_ == null 6705 ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() 6706 : businessContext_; 6707 } 6708 } 6709 /** 6710 * 6711 * 6712 * <pre> 6713 * Business Context of the entry. Not supported for BigQuery datasets 6714 * </pre> 6715 * 6716 * <code>.google.cloud.datacatalog.v1.BusinessContext business_context = 37;</code> 6717 */ 6718 private com.google.protobuf.SingleFieldBuilderV3< 6719 com.google.cloud.datacatalog.v1.BusinessContext, 6720 com.google.cloud.datacatalog.v1.BusinessContext.Builder, 6721 com.google.cloud.datacatalog.v1.BusinessContextOrBuilder> getBusinessContextFieldBuilder()6722 getBusinessContextFieldBuilder() { 6723 if (businessContextBuilder_ == null) { 6724 businessContextBuilder_ = 6725 new com.google.protobuf.SingleFieldBuilderV3< 6726 com.google.cloud.datacatalog.v1.BusinessContext, 6727 com.google.cloud.datacatalog.v1.BusinessContext.Builder, 6728 com.google.cloud.datacatalog.v1.BusinessContextOrBuilder>( 6729 getBusinessContext(), getParentForChildren(), isClean()); 6730 businessContext_ = null; 6731 } 6732 return businessContextBuilder_; 6733 } 6734 6735 private com.google.cloud.datacatalog.v1.Schema schema_; 6736 private com.google.protobuf.SingleFieldBuilderV3< 6737 com.google.cloud.datacatalog.v1.Schema, 6738 com.google.cloud.datacatalog.v1.Schema.Builder, 6739 com.google.cloud.datacatalog.v1.SchemaOrBuilder> 6740 schemaBuilder_; 6741 /** 6742 * 6743 * 6744 * <pre> 6745 * Schema of the entry. An entry might not have any schema attached to it. 6746 * </pre> 6747 * 6748 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6749 * 6750 * @return Whether the schema field is set. 6751 */ hasSchema()6752 public boolean hasSchema() { 6753 return ((bitField0_ & 0x00080000) != 0); 6754 } 6755 /** 6756 * 6757 * 6758 * <pre> 6759 * Schema of the entry. An entry might not have any schema attached to it. 6760 * </pre> 6761 * 6762 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6763 * 6764 * @return The schema. 6765 */ getSchema()6766 public com.google.cloud.datacatalog.v1.Schema getSchema() { 6767 if (schemaBuilder_ == null) { 6768 return schema_ == null 6769 ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() 6770 : schema_; 6771 } else { 6772 return schemaBuilder_.getMessage(); 6773 } 6774 } 6775 /** 6776 * 6777 * 6778 * <pre> 6779 * Schema of the entry. An entry might not have any schema attached to it. 6780 * </pre> 6781 * 6782 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6783 */ setSchema(com.google.cloud.datacatalog.v1.Schema value)6784 public Builder setSchema(com.google.cloud.datacatalog.v1.Schema value) { 6785 if (schemaBuilder_ == null) { 6786 if (value == null) { 6787 throw new NullPointerException(); 6788 } 6789 schema_ = value; 6790 } else { 6791 schemaBuilder_.setMessage(value); 6792 } 6793 bitField0_ |= 0x00080000; 6794 onChanged(); 6795 return this; 6796 } 6797 /** 6798 * 6799 * 6800 * <pre> 6801 * Schema of the entry. An entry might not have any schema attached to it. 6802 * </pre> 6803 * 6804 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6805 */ setSchema(com.google.cloud.datacatalog.v1.Schema.Builder builderForValue)6806 public Builder setSchema(com.google.cloud.datacatalog.v1.Schema.Builder builderForValue) { 6807 if (schemaBuilder_ == null) { 6808 schema_ = builderForValue.build(); 6809 } else { 6810 schemaBuilder_.setMessage(builderForValue.build()); 6811 } 6812 bitField0_ |= 0x00080000; 6813 onChanged(); 6814 return this; 6815 } 6816 /** 6817 * 6818 * 6819 * <pre> 6820 * Schema of the entry. An entry might not have any schema attached to it. 6821 * </pre> 6822 * 6823 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6824 */ mergeSchema(com.google.cloud.datacatalog.v1.Schema value)6825 public Builder mergeSchema(com.google.cloud.datacatalog.v1.Schema value) { 6826 if (schemaBuilder_ == null) { 6827 if (((bitField0_ & 0x00080000) != 0) 6828 && schema_ != null 6829 && schema_ != com.google.cloud.datacatalog.v1.Schema.getDefaultInstance()) { 6830 getSchemaBuilder().mergeFrom(value); 6831 } else { 6832 schema_ = value; 6833 } 6834 } else { 6835 schemaBuilder_.mergeFrom(value); 6836 } 6837 bitField0_ |= 0x00080000; 6838 onChanged(); 6839 return this; 6840 } 6841 /** 6842 * 6843 * 6844 * <pre> 6845 * Schema of the entry. An entry might not have any schema attached to it. 6846 * </pre> 6847 * 6848 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6849 */ clearSchema()6850 public Builder clearSchema() { 6851 bitField0_ = (bitField0_ & ~0x00080000); 6852 schema_ = null; 6853 if (schemaBuilder_ != null) { 6854 schemaBuilder_.dispose(); 6855 schemaBuilder_ = null; 6856 } 6857 onChanged(); 6858 return this; 6859 } 6860 /** 6861 * 6862 * 6863 * <pre> 6864 * Schema of the entry. An entry might not have any schema attached to it. 6865 * </pre> 6866 * 6867 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6868 */ getSchemaBuilder()6869 public com.google.cloud.datacatalog.v1.Schema.Builder getSchemaBuilder() { 6870 bitField0_ |= 0x00080000; 6871 onChanged(); 6872 return getSchemaFieldBuilder().getBuilder(); 6873 } 6874 /** 6875 * 6876 * 6877 * <pre> 6878 * Schema of the entry. An entry might not have any schema attached to it. 6879 * </pre> 6880 * 6881 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6882 */ getSchemaOrBuilder()6883 public com.google.cloud.datacatalog.v1.SchemaOrBuilder getSchemaOrBuilder() { 6884 if (schemaBuilder_ != null) { 6885 return schemaBuilder_.getMessageOrBuilder(); 6886 } else { 6887 return schema_ == null 6888 ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() 6889 : schema_; 6890 } 6891 } 6892 /** 6893 * 6894 * 6895 * <pre> 6896 * Schema of the entry. An entry might not have any schema attached to it. 6897 * </pre> 6898 * 6899 * <code>.google.cloud.datacatalog.v1.Schema schema = 5;</code> 6900 */ 6901 private com.google.protobuf.SingleFieldBuilderV3< 6902 com.google.cloud.datacatalog.v1.Schema, 6903 com.google.cloud.datacatalog.v1.Schema.Builder, 6904 com.google.cloud.datacatalog.v1.SchemaOrBuilder> getSchemaFieldBuilder()6905 getSchemaFieldBuilder() { 6906 if (schemaBuilder_ == null) { 6907 schemaBuilder_ = 6908 new com.google.protobuf.SingleFieldBuilderV3< 6909 com.google.cloud.datacatalog.v1.Schema, 6910 com.google.cloud.datacatalog.v1.Schema.Builder, 6911 com.google.cloud.datacatalog.v1.SchemaOrBuilder>( 6912 getSchema(), getParentForChildren(), isClean()); 6913 schema_ = null; 6914 } 6915 return schemaBuilder_; 6916 } 6917 6918 private com.google.cloud.datacatalog.v1.SystemTimestamps sourceSystemTimestamps_; 6919 private com.google.protobuf.SingleFieldBuilderV3< 6920 com.google.cloud.datacatalog.v1.SystemTimestamps, 6921 com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, 6922 com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> 6923 sourceSystemTimestampsBuilder_; 6924 /** 6925 * 6926 * 6927 * <pre> 6928 * Timestamps from the underlying resource, not from the Data Catalog 6929 * entry. 6930 * Output only when the entry has a system listed in the `IntegratedSystem` 6931 * enum. For entries with `user_specified_system`, this field is optional 6932 * and defaults to an empty timestamp. 6933 * </pre> 6934 * 6935 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 6936 * 6937 * @return Whether the sourceSystemTimestamps field is set. 6938 */ hasSourceSystemTimestamps()6939 public boolean hasSourceSystemTimestamps() { 6940 return ((bitField0_ & 0x00100000) != 0); 6941 } 6942 /** 6943 * 6944 * 6945 * <pre> 6946 * Timestamps from the underlying resource, not from the Data Catalog 6947 * entry. 6948 * Output only when the entry has a system listed in the `IntegratedSystem` 6949 * enum. For entries with `user_specified_system`, this field is optional 6950 * and defaults to an empty timestamp. 6951 * </pre> 6952 * 6953 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 6954 * 6955 * @return The sourceSystemTimestamps. 6956 */ getSourceSystemTimestamps()6957 public com.google.cloud.datacatalog.v1.SystemTimestamps getSourceSystemTimestamps() { 6958 if (sourceSystemTimestampsBuilder_ == null) { 6959 return sourceSystemTimestamps_ == null 6960 ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() 6961 : sourceSystemTimestamps_; 6962 } else { 6963 return sourceSystemTimestampsBuilder_.getMessage(); 6964 } 6965 } 6966 /** 6967 * 6968 * 6969 * <pre> 6970 * Timestamps from the underlying resource, not from the Data Catalog 6971 * entry. 6972 * Output only when the entry has a system listed in the `IntegratedSystem` 6973 * enum. For entries with `user_specified_system`, this field is optional 6974 * and defaults to an empty timestamp. 6975 * </pre> 6976 * 6977 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 6978 */ setSourceSystemTimestamps( com.google.cloud.datacatalog.v1.SystemTimestamps value)6979 public Builder setSourceSystemTimestamps( 6980 com.google.cloud.datacatalog.v1.SystemTimestamps value) { 6981 if (sourceSystemTimestampsBuilder_ == null) { 6982 if (value == null) { 6983 throw new NullPointerException(); 6984 } 6985 sourceSystemTimestamps_ = value; 6986 } else { 6987 sourceSystemTimestampsBuilder_.setMessage(value); 6988 } 6989 bitField0_ |= 0x00100000; 6990 onChanged(); 6991 return this; 6992 } 6993 /** 6994 * 6995 * 6996 * <pre> 6997 * Timestamps from the underlying resource, not from the Data Catalog 6998 * entry. 6999 * Output only when the entry has a system listed in the `IntegratedSystem` 7000 * enum. For entries with `user_specified_system`, this field is optional 7001 * and defaults to an empty timestamp. 7002 * </pre> 7003 * 7004 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 7005 */ setSourceSystemTimestamps( com.google.cloud.datacatalog.v1.SystemTimestamps.Builder builderForValue)7006 public Builder setSourceSystemTimestamps( 7007 com.google.cloud.datacatalog.v1.SystemTimestamps.Builder builderForValue) { 7008 if (sourceSystemTimestampsBuilder_ == null) { 7009 sourceSystemTimestamps_ = builderForValue.build(); 7010 } else { 7011 sourceSystemTimestampsBuilder_.setMessage(builderForValue.build()); 7012 } 7013 bitField0_ |= 0x00100000; 7014 onChanged(); 7015 return this; 7016 } 7017 /** 7018 * 7019 * 7020 * <pre> 7021 * Timestamps from the underlying resource, not from the Data Catalog 7022 * entry. 7023 * Output only when the entry has a system listed in the `IntegratedSystem` 7024 * enum. For entries with `user_specified_system`, this field is optional 7025 * and defaults to an empty timestamp. 7026 * </pre> 7027 * 7028 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 7029 */ mergeSourceSystemTimestamps( com.google.cloud.datacatalog.v1.SystemTimestamps value)7030 public Builder mergeSourceSystemTimestamps( 7031 com.google.cloud.datacatalog.v1.SystemTimestamps value) { 7032 if (sourceSystemTimestampsBuilder_ == null) { 7033 if (((bitField0_ & 0x00100000) != 0) 7034 && sourceSystemTimestamps_ != null 7035 && sourceSystemTimestamps_ 7036 != com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) { 7037 getSourceSystemTimestampsBuilder().mergeFrom(value); 7038 } else { 7039 sourceSystemTimestamps_ = value; 7040 } 7041 } else { 7042 sourceSystemTimestampsBuilder_.mergeFrom(value); 7043 } 7044 bitField0_ |= 0x00100000; 7045 onChanged(); 7046 return this; 7047 } 7048 /** 7049 * 7050 * 7051 * <pre> 7052 * Timestamps from the underlying resource, not from the Data Catalog 7053 * entry. 7054 * Output only when the entry has a system listed in the `IntegratedSystem` 7055 * enum. For entries with `user_specified_system`, this field is optional 7056 * and defaults to an empty timestamp. 7057 * </pre> 7058 * 7059 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 7060 */ clearSourceSystemTimestamps()7061 public Builder clearSourceSystemTimestamps() { 7062 bitField0_ = (bitField0_ & ~0x00100000); 7063 sourceSystemTimestamps_ = null; 7064 if (sourceSystemTimestampsBuilder_ != null) { 7065 sourceSystemTimestampsBuilder_.dispose(); 7066 sourceSystemTimestampsBuilder_ = null; 7067 } 7068 onChanged(); 7069 return this; 7070 } 7071 /** 7072 * 7073 * 7074 * <pre> 7075 * Timestamps from the underlying resource, not from the Data Catalog 7076 * entry. 7077 * Output only when the entry has a system listed in the `IntegratedSystem` 7078 * enum. For entries with `user_specified_system`, this field is optional 7079 * and defaults to an empty timestamp. 7080 * </pre> 7081 * 7082 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 7083 */ 7084 public com.google.cloud.datacatalog.v1.SystemTimestamps.Builder getSourceSystemTimestampsBuilder()7085 getSourceSystemTimestampsBuilder() { 7086 bitField0_ |= 0x00100000; 7087 onChanged(); 7088 return getSourceSystemTimestampsFieldBuilder().getBuilder(); 7089 } 7090 /** 7091 * 7092 * 7093 * <pre> 7094 * Timestamps from the underlying resource, not from the Data Catalog 7095 * entry. 7096 * Output only when the entry has a system listed in the `IntegratedSystem` 7097 * enum. For entries with `user_specified_system`, this field is optional 7098 * and defaults to an empty timestamp. 7099 * </pre> 7100 * 7101 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 7102 */ 7103 public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getSourceSystemTimestampsOrBuilder()7104 getSourceSystemTimestampsOrBuilder() { 7105 if (sourceSystemTimestampsBuilder_ != null) { 7106 return sourceSystemTimestampsBuilder_.getMessageOrBuilder(); 7107 } else { 7108 return sourceSystemTimestamps_ == null 7109 ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() 7110 : sourceSystemTimestamps_; 7111 } 7112 } 7113 /** 7114 * 7115 * 7116 * <pre> 7117 * Timestamps from the underlying resource, not from the Data Catalog 7118 * entry. 7119 * Output only when the entry has a system listed in the `IntegratedSystem` 7120 * enum. For entries with `user_specified_system`, this field is optional 7121 * and defaults to an empty timestamp. 7122 * </pre> 7123 * 7124 * <code>.google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7;</code> 7125 */ 7126 private com.google.protobuf.SingleFieldBuilderV3< 7127 com.google.cloud.datacatalog.v1.SystemTimestamps, 7128 com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, 7129 com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> getSourceSystemTimestampsFieldBuilder()7130 getSourceSystemTimestampsFieldBuilder() { 7131 if (sourceSystemTimestampsBuilder_ == null) { 7132 sourceSystemTimestampsBuilder_ = 7133 new com.google.protobuf.SingleFieldBuilderV3< 7134 com.google.cloud.datacatalog.v1.SystemTimestamps, 7135 com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, 7136 com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder>( 7137 getSourceSystemTimestamps(), getParentForChildren(), isClean()); 7138 sourceSystemTimestamps_ = null; 7139 } 7140 return sourceSystemTimestampsBuilder_; 7141 } 7142 7143 private com.google.cloud.datacatalog.v1.UsageSignal usageSignal_; 7144 private com.google.protobuf.SingleFieldBuilderV3< 7145 com.google.cloud.datacatalog.v1.UsageSignal, 7146 com.google.cloud.datacatalog.v1.UsageSignal.Builder, 7147 com.google.cloud.datacatalog.v1.UsageSignalOrBuilder> 7148 usageSignalBuilder_; 7149 /** 7150 * 7151 * 7152 * <pre> 7153 * Resource usage statistics. 7154 * </pre> 7155 * 7156 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7157 * 7158 * @return Whether the usageSignal field is set. 7159 */ hasUsageSignal()7160 public boolean hasUsageSignal() { 7161 return ((bitField0_ & 0x00200000) != 0); 7162 } 7163 /** 7164 * 7165 * 7166 * <pre> 7167 * Resource usage statistics. 7168 * </pre> 7169 * 7170 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7171 * 7172 * @return The usageSignal. 7173 */ getUsageSignal()7174 public com.google.cloud.datacatalog.v1.UsageSignal getUsageSignal() { 7175 if (usageSignalBuilder_ == null) { 7176 return usageSignal_ == null 7177 ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() 7178 : usageSignal_; 7179 } else { 7180 return usageSignalBuilder_.getMessage(); 7181 } 7182 } 7183 /** 7184 * 7185 * 7186 * <pre> 7187 * Resource usage statistics. 7188 * </pre> 7189 * 7190 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7191 */ setUsageSignal(com.google.cloud.datacatalog.v1.UsageSignal value)7192 public Builder setUsageSignal(com.google.cloud.datacatalog.v1.UsageSignal value) { 7193 if (usageSignalBuilder_ == null) { 7194 if (value == null) { 7195 throw new NullPointerException(); 7196 } 7197 usageSignal_ = value; 7198 } else { 7199 usageSignalBuilder_.setMessage(value); 7200 } 7201 bitField0_ |= 0x00200000; 7202 onChanged(); 7203 return this; 7204 } 7205 /** 7206 * 7207 * 7208 * <pre> 7209 * Resource usage statistics. 7210 * </pre> 7211 * 7212 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7213 */ setUsageSignal( com.google.cloud.datacatalog.v1.UsageSignal.Builder builderForValue)7214 public Builder setUsageSignal( 7215 com.google.cloud.datacatalog.v1.UsageSignal.Builder builderForValue) { 7216 if (usageSignalBuilder_ == null) { 7217 usageSignal_ = builderForValue.build(); 7218 } else { 7219 usageSignalBuilder_.setMessage(builderForValue.build()); 7220 } 7221 bitField0_ |= 0x00200000; 7222 onChanged(); 7223 return this; 7224 } 7225 /** 7226 * 7227 * 7228 * <pre> 7229 * Resource usage statistics. 7230 * </pre> 7231 * 7232 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7233 */ mergeUsageSignal(com.google.cloud.datacatalog.v1.UsageSignal value)7234 public Builder mergeUsageSignal(com.google.cloud.datacatalog.v1.UsageSignal value) { 7235 if (usageSignalBuilder_ == null) { 7236 if (((bitField0_ & 0x00200000) != 0) 7237 && usageSignal_ != null 7238 && usageSignal_ != com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance()) { 7239 getUsageSignalBuilder().mergeFrom(value); 7240 } else { 7241 usageSignal_ = value; 7242 } 7243 } else { 7244 usageSignalBuilder_.mergeFrom(value); 7245 } 7246 bitField0_ |= 0x00200000; 7247 onChanged(); 7248 return this; 7249 } 7250 /** 7251 * 7252 * 7253 * <pre> 7254 * Resource usage statistics. 7255 * </pre> 7256 * 7257 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7258 */ clearUsageSignal()7259 public Builder clearUsageSignal() { 7260 bitField0_ = (bitField0_ & ~0x00200000); 7261 usageSignal_ = null; 7262 if (usageSignalBuilder_ != null) { 7263 usageSignalBuilder_.dispose(); 7264 usageSignalBuilder_ = null; 7265 } 7266 onChanged(); 7267 return this; 7268 } 7269 /** 7270 * 7271 * 7272 * <pre> 7273 * Resource usage statistics. 7274 * </pre> 7275 * 7276 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7277 */ getUsageSignalBuilder()7278 public com.google.cloud.datacatalog.v1.UsageSignal.Builder getUsageSignalBuilder() { 7279 bitField0_ |= 0x00200000; 7280 onChanged(); 7281 return getUsageSignalFieldBuilder().getBuilder(); 7282 } 7283 /** 7284 * 7285 * 7286 * <pre> 7287 * Resource usage statistics. 7288 * </pre> 7289 * 7290 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7291 */ getUsageSignalOrBuilder()7292 public com.google.cloud.datacatalog.v1.UsageSignalOrBuilder getUsageSignalOrBuilder() { 7293 if (usageSignalBuilder_ != null) { 7294 return usageSignalBuilder_.getMessageOrBuilder(); 7295 } else { 7296 return usageSignal_ == null 7297 ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() 7298 : usageSignal_; 7299 } 7300 } 7301 /** 7302 * 7303 * 7304 * <pre> 7305 * Resource usage statistics. 7306 * </pre> 7307 * 7308 * <code>.google.cloud.datacatalog.v1.UsageSignal usage_signal = 13;</code> 7309 */ 7310 private com.google.protobuf.SingleFieldBuilderV3< 7311 com.google.cloud.datacatalog.v1.UsageSignal, 7312 com.google.cloud.datacatalog.v1.UsageSignal.Builder, 7313 com.google.cloud.datacatalog.v1.UsageSignalOrBuilder> getUsageSignalFieldBuilder()7314 getUsageSignalFieldBuilder() { 7315 if (usageSignalBuilder_ == null) { 7316 usageSignalBuilder_ = 7317 new com.google.protobuf.SingleFieldBuilderV3< 7318 com.google.cloud.datacatalog.v1.UsageSignal, 7319 com.google.cloud.datacatalog.v1.UsageSignal.Builder, 7320 com.google.cloud.datacatalog.v1.UsageSignalOrBuilder>( 7321 getUsageSignal(), getParentForChildren(), isClean()); 7322 usageSignal_ = null; 7323 } 7324 return usageSignalBuilder_; 7325 } 7326 7327 private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; 7328 internalGetLabels()7329 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { 7330 if (labels_ == null) { 7331 return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); 7332 } 7333 return labels_; 7334 } 7335 7336 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels()7337 internalGetMutableLabels() { 7338 if (labels_ == null) { 7339 labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); 7340 } 7341 if (!labels_.isMutable()) { 7342 labels_ = labels_.copy(); 7343 } 7344 bitField0_ |= 0x00400000; 7345 onChanged(); 7346 return labels_; 7347 } 7348 getLabelsCount()7349 public int getLabelsCount() { 7350 return internalGetLabels().getMap().size(); 7351 } 7352 /** 7353 * 7354 * 7355 * <pre> 7356 * Cloud labels attached to the entry. 7357 * In Data Catalog, you can create and modify labels attached only to custom 7358 * entries. Synced entries have unmodifiable labels that come from the source 7359 * system. 7360 * </pre> 7361 * 7362 * <code>map<string, string> labels = 14;</code> 7363 */ 7364 @java.lang.Override containsLabels(java.lang.String key)7365 public boolean containsLabels(java.lang.String key) { 7366 if (key == null) { 7367 throw new NullPointerException("map key"); 7368 } 7369 return internalGetLabels().getMap().containsKey(key); 7370 } 7371 /** Use {@link #getLabelsMap()} instead. */ 7372 @java.lang.Override 7373 @java.lang.Deprecated getLabels()7374 public java.util.Map<java.lang.String, java.lang.String> getLabels() { 7375 return getLabelsMap(); 7376 } 7377 /** 7378 * 7379 * 7380 * <pre> 7381 * Cloud labels attached to the entry. 7382 * In Data Catalog, you can create and modify labels attached only to custom 7383 * entries. Synced entries have unmodifiable labels that come from the source 7384 * system. 7385 * </pre> 7386 * 7387 * <code>map<string, string> labels = 14;</code> 7388 */ 7389 @java.lang.Override getLabelsMap()7390 public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { 7391 return internalGetLabels().getMap(); 7392 } 7393 /** 7394 * 7395 * 7396 * <pre> 7397 * Cloud labels attached to the entry. 7398 * In Data Catalog, you can create and modify labels attached only to custom 7399 * entries. Synced entries have unmodifiable labels that come from the source 7400 * system. 7401 * </pre> 7402 * 7403 * <code>map<string, string> labels = 14;</code> 7404 */ 7405 @java.lang.Override getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)7406 public /* nullable */ java.lang.String getLabelsOrDefault( 7407 java.lang.String key, 7408 /* nullable */ 7409 java.lang.String defaultValue) { 7410 if (key == null) { 7411 throw new NullPointerException("map key"); 7412 } 7413 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 7414 return map.containsKey(key) ? map.get(key) : defaultValue; 7415 } 7416 /** 7417 * 7418 * 7419 * <pre> 7420 * Cloud labels attached to the entry. 7421 * In Data Catalog, you can create and modify labels attached only to custom 7422 * entries. Synced entries have unmodifiable labels that come from the source 7423 * system. 7424 * </pre> 7425 * 7426 * <code>map<string, string> labels = 14;</code> 7427 */ 7428 @java.lang.Override getLabelsOrThrow(java.lang.String key)7429 public java.lang.String getLabelsOrThrow(java.lang.String key) { 7430 if (key == null) { 7431 throw new NullPointerException("map key"); 7432 } 7433 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 7434 if (!map.containsKey(key)) { 7435 throw new java.lang.IllegalArgumentException(); 7436 } 7437 return map.get(key); 7438 } 7439 clearLabels()7440 public Builder clearLabels() { 7441 bitField0_ = (bitField0_ & ~0x00400000); 7442 internalGetMutableLabels().getMutableMap().clear(); 7443 return this; 7444 } 7445 /** 7446 * 7447 * 7448 * <pre> 7449 * Cloud labels attached to the entry. 7450 * In Data Catalog, you can create and modify labels attached only to custom 7451 * entries. Synced entries have unmodifiable labels that come from the source 7452 * system. 7453 * </pre> 7454 * 7455 * <code>map<string, string> labels = 14;</code> 7456 */ removeLabels(java.lang.String key)7457 public Builder removeLabels(java.lang.String key) { 7458 if (key == null) { 7459 throw new NullPointerException("map key"); 7460 } 7461 internalGetMutableLabels().getMutableMap().remove(key); 7462 return this; 7463 } 7464 /** Use alternate mutation accessors instead. */ 7465 @java.lang.Deprecated getMutableLabels()7466 public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { 7467 bitField0_ |= 0x00400000; 7468 return internalGetMutableLabels().getMutableMap(); 7469 } 7470 /** 7471 * 7472 * 7473 * <pre> 7474 * Cloud labels attached to the entry. 7475 * In Data Catalog, you can create and modify labels attached only to custom 7476 * entries. Synced entries have unmodifiable labels that come from the source 7477 * system. 7478 * </pre> 7479 * 7480 * <code>map<string, string> labels = 14;</code> 7481 */ putLabels(java.lang.String key, java.lang.String value)7482 public Builder putLabels(java.lang.String key, java.lang.String value) { 7483 if (key == null) { 7484 throw new NullPointerException("map key"); 7485 } 7486 if (value == null) { 7487 throw new NullPointerException("map value"); 7488 } 7489 internalGetMutableLabels().getMutableMap().put(key, value); 7490 bitField0_ |= 0x00400000; 7491 return this; 7492 } 7493 /** 7494 * 7495 * 7496 * <pre> 7497 * Cloud labels attached to the entry. 7498 * In Data Catalog, you can create and modify labels attached only to custom 7499 * entries. Synced entries have unmodifiable labels that come from the source 7500 * system. 7501 * </pre> 7502 * 7503 * <code>map<string, string> labels = 14;</code> 7504 */ putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)7505 public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { 7506 internalGetMutableLabels().getMutableMap().putAll(values); 7507 bitField0_ |= 0x00400000; 7508 return this; 7509 } 7510 7511 private com.google.cloud.datacatalog.v1.DataSource dataSource_; 7512 private com.google.protobuf.SingleFieldBuilderV3< 7513 com.google.cloud.datacatalog.v1.DataSource, 7514 com.google.cloud.datacatalog.v1.DataSource.Builder, 7515 com.google.cloud.datacatalog.v1.DataSourceOrBuilder> 7516 dataSourceBuilder_; 7517 /** 7518 * 7519 * 7520 * <pre> 7521 * Output only. Physical location of the entry. 7522 * </pre> 7523 * 7524 * <code> 7525 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7526 * </code> 7527 * 7528 * @return Whether the dataSource field is set. 7529 */ hasDataSource()7530 public boolean hasDataSource() { 7531 return ((bitField0_ & 0x00800000) != 0); 7532 } 7533 /** 7534 * 7535 * 7536 * <pre> 7537 * Output only. Physical location of the entry. 7538 * </pre> 7539 * 7540 * <code> 7541 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7542 * </code> 7543 * 7544 * @return The dataSource. 7545 */ getDataSource()7546 public com.google.cloud.datacatalog.v1.DataSource getDataSource() { 7547 if (dataSourceBuilder_ == null) { 7548 return dataSource_ == null 7549 ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() 7550 : dataSource_; 7551 } else { 7552 return dataSourceBuilder_.getMessage(); 7553 } 7554 } 7555 /** 7556 * 7557 * 7558 * <pre> 7559 * Output only. Physical location of the entry. 7560 * </pre> 7561 * 7562 * <code> 7563 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7564 * </code> 7565 */ setDataSource(com.google.cloud.datacatalog.v1.DataSource value)7566 public Builder setDataSource(com.google.cloud.datacatalog.v1.DataSource value) { 7567 if (dataSourceBuilder_ == null) { 7568 if (value == null) { 7569 throw new NullPointerException(); 7570 } 7571 dataSource_ = value; 7572 } else { 7573 dataSourceBuilder_.setMessage(value); 7574 } 7575 bitField0_ |= 0x00800000; 7576 onChanged(); 7577 return this; 7578 } 7579 /** 7580 * 7581 * 7582 * <pre> 7583 * Output only. Physical location of the entry. 7584 * </pre> 7585 * 7586 * <code> 7587 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7588 * </code> 7589 */ setDataSource( com.google.cloud.datacatalog.v1.DataSource.Builder builderForValue)7590 public Builder setDataSource( 7591 com.google.cloud.datacatalog.v1.DataSource.Builder builderForValue) { 7592 if (dataSourceBuilder_ == null) { 7593 dataSource_ = builderForValue.build(); 7594 } else { 7595 dataSourceBuilder_.setMessage(builderForValue.build()); 7596 } 7597 bitField0_ |= 0x00800000; 7598 onChanged(); 7599 return this; 7600 } 7601 /** 7602 * 7603 * 7604 * <pre> 7605 * Output only. Physical location of the entry. 7606 * </pre> 7607 * 7608 * <code> 7609 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7610 * </code> 7611 */ mergeDataSource(com.google.cloud.datacatalog.v1.DataSource value)7612 public Builder mergeDataSource(com.google.cloud.datacatalog.v1.DataSource value) { 7613 if (dataSourceBuilder_ == null) { 7614 if (((bitField0_ & 0x00800000) != 0) 7615 && dataSource_ != null 7616 && dataSource_ != com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance()) { 7617 getDataSourceBuilder().mergeFrom(value); 7618 } else { 7619 dataSource_ = value; 7620 } 7621 } else { 7622 dataSourceBuilder_.mergeFrom(value); 7623 } 7624 bitField0_ |= 0x00800000; 7625 onChanged(); 7626 return this; 7627 } 7628 /** 7629 * 7630 * 7631 * <pre> 7632 * Output only. Physical location of the entry. 7633 * </pre> 7634 * 7635 * <code> 7636 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7637 * </code> 7638 */ clearDataSource()7639 public Builder clearDataSource() { 7640 bitField0_ = (bitField0_ & ~0x00800000); 7641 dataSource_ = null; 7642 if (dataSourceBuilder_ != null) { 7643 dataSourceBuilder_.dispose(); 7644 dataSourceBuilder_ = null; 7645 } 7646 onChanged(); 7647 return this; 7648 } 7649 /** 7650 * 7651 * 7652 * <pre> 7653 * Output only. Physical location of the entry. 7654 * </pre> 7655 * 7656 * <code> 7657 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7658 * </code> 7659 */ getDataSourceBuilder()7660 public com.google.cloud.datacatalog.v1.DataSource.Builder getDataSourceBuilder() { 7661 bitField0_ |= 0x00800000; 7662 onChanged(); 7663 return getDataSourceFieldBuilder().getBuilder(); 7664 } 7665 /** 7666 * 7667 * 7668 * <pre> 7669 * Output only. Physical location of the entry. 7670 * </pre> 7671 * 7672 * <code> 7673 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7674 * </code> 7675 */ getDataSourceOrBuilder()7676 public com.google.cloud.datacatalog.v1.DataSourceOrBuilder getDataSourceOrBuilder() { 7677 if (dataSourceBuilder_ != null) { 7678 return dataSourceBuilder_.getMessageOrBuilder(); 7679 } else { 7680 return dataSource_ == null 7681 ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() 7682 : dataSource_; 7683 } 7684 } 7685 /** 7686 * 7687 * 7688 * <pre> 7689 * Output only. Physical location of the entry. 7690 * </pre> 7691 * 7692 * <code> 7693 * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7694 * </code> 7695 */ 7696 private com.google.protobuf.SingleFieldBuilderV3< 7697 com.google.cloud.datacatalog.v1.DataSource, 7698 com.google.cloud.datacatalog.v1.DataSource.Builder, 7699 com.google.cloud.datacatalog.v1.DataSourceOrBuilder> getDataSourceFieldBuilder()7700 getDataSourceFieldBuilder() { 7701 if (dataSourceBuilder_ == null) { 7702 dataSourceBuilder_ = 7703 new com.google.protobuf.SingleFieldBuilderV3< 7704 com.google.cloud.datacatalog.v1.DataSource, 7705 com.google.cloud.datacatalog.v1.DataSource.Builder, 7706 com.google.cloud.datacatalog.v1.DataSourceOrBuilder>( 7707 getDataSource(), getParentForChildren(), isClean()); 7708 dataSource_ = null; 7709 } 7710 return dataSourceBuilder_; 7711 } 7712 7713 private com.google.cloud.datacatalog.v1.PersonalDetails personalDetails_; 7714 private com.google.protobuf.SingleFieldBuilderV3< 7715 com.google.cloud.datacatalog.v1.PersonalDetails, 7716 com.google.cloud.datacatalog.v1.PersonalDetails.Builder, 7717 com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder> 7718 personalDetailsBuilder_; 7719 /** 7720 * 7721 * 7722 * <pre> 7723 * Output only. Additional information related to the entry. Private to the 7724 * current user. 7725 * </pre> 7726 * 7727 * <code> 7728 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7729 * </code> 7730 * 7731 * @return Whether the personalDetails field is set. 7732 */ hasPersonalDetails()7733 public boolean hasPersonalDetails() { 7734 return ((bitField0_ & 0x01000000) != 0); 7735 } 7736 /** 7737 * 7738 * 7739 * <pre> 7740 * Output only. Additional information related to the entry. Private to the 7741 * current user. 7742 * </pre> 7743 * 7744 * <code> 7745 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7746 * </code> 7747 * 7748 * @return The personalDetails. 7749 */ getPersonalDetails()7750 public com.google.cloud.datacatalog.v1.PersonalDetails getPersonalDetails() { 7751 if (personalDetailsBuilder_ == null) { 7752 return personalDetails_ == null 7753 ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() 7754 : personalDetails_; 7755 } else { 7756 return personalDetailsBuilder_.getMessage(); 7757 } 7758 } 7759 /** 7760 * 7761 * 7762 * <pre> 7763 * Output only. Additional information related to the entry. Private to the 7764 * current user. 7765 * </pre> 7766 * 7767 * <code> 7768 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7769 * </code> 7770 */ setPersonalDetails(com.google.cloud.datacatalog.v1.PersonalDetails value)7771 public Builder setPersonalDetails(com.google.cloud.datacatalog.v1.PersonalDetails value) { 7772 if (personalDetailsBuilder_ == null) { 7773 if (value == null) { 7774 throw new NullPointerException(); 7775 } 7776 personalDetails_ = value; 7777 } else { 7778 personalDetailsBuilder_.setMessage(value); 7779 } 7780 bitField0_ |= 0x01000000; 7781 onChanged(); 7782 return this; 7783 } 7784 /** 7785 * 7786 * 7787 * <pre> 7788 * Output only. Additional information related to the entry. Private to the 7789 * current user. 7790 * </pre> 7791 * 7792 * <code> 7793 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7794 * </code> 7795 */ setPersonalDetails( com.google.cloud.datacatalog.v1.PersonalDetails.Builder builderForValue)7796 public Builder setPersonalDetails( 7797 com.google.cloud.datacatalog.v1.PersonalDetails.Builder builderForValue) { 7798 if (personalDetailsBuilder_ == null) { 7799 personalDetails_ = builderForValue.build(); 7800 } else { 7801 personalDetailsBuilder_.setMessage(builderForValue.build()); 7802 } 7803 bitField0_ |= 0x01000000; 7804 onChanged(); 7805 return this; 7806 } 7807 /** 7808 * 7809 * 7810 * <pre> 7811 * Output only. Additional information related to the entry. Private to the 7812 * current user. 7813 * </pre> 7814 * 7815 * <code> 7816 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7817 * </code> 7818 */ mergePersonalDetails(com.google.cloud.datacatalog.v1.PersonalDetails value)7819 public Builder mergePersonalDetails(com.google.cloud.datacatalog.v1.PersonalDetails value) { 7820 if (personalDetailsBuilder_ == null) { 7821 if (((bitField0_ & 0x01000000) != 0) 7822 && personalDetails_ != null 7823 && personalDetails_ 7824 != com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance()) { 7825 getPersonalDetailsBuilder().mergeFrom(value); 7826 } else { 7827 personalDetails_ = value; 7828 } 7829 } else { 7830 personalDetailsBuilder_.mergeFrom(value); 7831 } 7832 bitField0_ |= 0x01000000; 7833 onChanged(); 7834 return this; 7835 } 7836 /** 7837 * 7838 * 7839 * <pre> 7840 * Output only. Additional information related to the entry. Private to the 7841 * current user. 7842 * </pre> 7843 * 7844 * <code> 7845 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7846 * </code> 7847 */ clearPersonalDetails()7848 public Builder clearPersonalDetails() { 7849 bitField0_ = (bitField0_ & ~0x01000000); 7850 personalDetails_ = null; 7851 if (personalDetailsBuilder_ != null) { 7852 personalDetailsBuilder_.dispose(); 7853 personalDetailsBuilder_ = null; 7854 } 7855 onChanged(); 7856 return this; 7857 } 7858 /** 7859 * 7860 * 7861 * <pre> 7862 * Output only. Additional information related to the entry. Private to the 7863 * current user. 7864 * </pre> 7865 * 7866 * <code> 7867 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7868 * </code> 7869 */ getPersonalDetailsBuilder()7870 public com.google.cloud.datacatalog.v1.PersonalDetails.Builder getPersonalDetailsBuilder() { 7871 bitField0_ |= 0x01000000; 7872 onChanged(); 7873 return getPersonalDetailsFieldBuilder().getBuilder(); 7874 } 7875 /** 7876 * 7877 * 7878 * <pre> 7879 * Output only. Additional information related to the entry. Private to the 7880 * current user. 7881 * </pre> 7882 * 7883 * <code> 7884 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7885 * </code> 7886 */ getPersonalDetailsOrBuilder()7887 public com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder getPersonalDetailsOrBuilder() { 7888 if (personalDetailsBuilder_ != null) { 7889 return personalDetailsBuilder_.getMessageOrBuilder(); 7890 } else { 7891 return personalDetails_ == null 7892 ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() 7893 : personalDetails_; 7894 } 7895 } 7896 /** 7897 * 7898 * 7899 * <pre> 7900 * Output only. Additional information related to the entry. Private to the 7901 * current user. 7902 * </pre> 7903 * 7904 * <code> 7905 * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; 7906 * </code> 7907 */ 7908 private com.google.protobuf.SingleFieldBuilderV3< 7909 com.google.cloud.datacatalog.v1.PersonalDetails, 7910 com.google.cloud.datacatalog.v1.PersonalDetails.Builder, 7911 com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder> getPersonalDetailsFieldBuilder()7912 getPersonalDetailsFieldBuilder() { 7913 if (personalDetailsBuilder_ == null) { 7914 personalDetailsBuilder_ = 7915 new com.google.protobuf.SingleFieldBuilderV3< 7916 com.google.cloud.datacatalog.v1.PersonalDetails, 7917 com.google.cloud.datacatalog.v1.PersonalDetails.Builder, 7918 com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder>( 7919 getPersonalDetails(), getParentForChildren(), isClean()); 7920 personalDetails_ = null; 7921 } 7922 return personalDetailsBuilder_; 7923 } 7924 7925 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)7926 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 7927 return super.setUnknownFields(unknownFields); 7928 } 7929 7930 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)7931 public final Builder mergeUnknownFields( 7932 final com.google.protobuf.UnknownFieldSet unknownFields) { 7933 return super.mergeUnknownFields(unknownFields); 7934 } 7935 7936 // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Entry) 7937 } 7938 7939 // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Entry) 7940 private static final com.google.cloud.datacatalog.v1.Entry DEFAULT_INSTANCE; 7941 7942 static { 7943 DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Entry(); 7944 } 7945 getDefaultInstance()7946 public static com.google.cloud.datacatalog.v1.Entry getDefaultInstance() { 7947 return DEFAULT_INSTANCE; 7948 } 7949 7950 private static final com.google.protobuf.Parser<Entry> PARSER = 7951 new com.google.protobuf.AbstractParser<Entry>() { 7952 @java.lang.Override 7953 public Entry parsePartialFrom( 7954 com.google.protobuf.CodedInputStream input, 7955 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7956 throws com.google.protobuf.InvalidProtocolBufferException { 7957 Builder builder = newBuilder(); 7958 try { 7959 builder.mergeFrom(input, extensionRegistry); 7960 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7961 throw e.setUnfinishedMessage(builder.buildPartial()); 7962 } catch (com.google.protobuf.UninitializedMessageException e) { 7963 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 7964 } catch (java.io.IOException e) { 7965 throw new com.google.protobuf.InvalidProtocolBufferException(e) 7966 .setUnfinishedMessage(builder.buildPartial()); 7967 } 7968 return builder.buildPartial(); 7969 } 7970 }; 7971 parser()7972 public static com.google.protobuf.Parser<Entry> parser() { 7973 return PARSER; 7974 } 7975 7976 @java.lang.Override getParserForType()7977 public com.google.protobuf.Parser<Entry> getParserForType() { 7978 return PARSER; 7979 } 7980 7981 @java.lang.Override getDefaultInstanceForType()7982 public com.google.cloud.datacatalog.v1.Entry getDefaultInstanceForType() { 7983 return DEFAULT_INSTANCE; 7984 } 7985 } 7986