/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/datacatalog/v1beta1/datacatalog.proto

package com.google.cloud.datacatalog.v1beta1;

/**
 *
 *
 * <pre>
 * Entry Metadata.
 * A Data Catalog Entry resource represents another resource in Google
 * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or
 * outside of Google Cloud Platform. Clients can use the `linked_resource` field
 * in the Entry resource to refer to the original resource ID of the source
 * system.
 *
 * An Entry resource contains resource details, such as its schema. An Entry can
 * also be used to attach flexible metadata, such as a
 * [Tag][google.cloud.datacatalog.v1beta1.Tag].
 * </pre>
 *
 * Protobuf type {@code google.cloud.datacatalog.v1beta1.Entry}
 */
public final class Entry extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Entry)
    EntryOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Entry.newBuilder() to construct.
  private Entry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Entry() {
    name_ = "";
    linkedResource_ = "";
    displayName_ = "";
    description_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new Entry();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.datacatalog.v1beta1.Datacatalog
        .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.datacatalog.v1beta1.Datacatalog
        .internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.datacatalog.v1beta1.Entry.class,
            com.google.cloud.datacatalog.v1beta1.Entry.Builder.class);
  }

  private int entryTypeCase_ = 0;

  @SuppressWarnings("serial")
  private java.lang.Object entryType_;

  public enum EntryTypeCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    TYPE(2),
    USER_SPECIFIED_TYPE(16),
    ENTRYTYPE_NOT_SET(0);
    private final int value;

    private EntryTypeCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static EntryTypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static EntryTypeCase forNumber(int value) {
      switch (value) {
        case 2:
          return TYPE;
        case 16:
          return USER_SPECIFIED_TYPE;
        case 0:
          return ENTRYTYPE_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public EntryTypeCase getEntryTypeCase() {
    return EntryTypeCase.forNumber(entryTypeCase_);
  }

  private int systemCase_ = 0;

  @SuppressWarnings("serial")
  private java.lang.Object system_;

  public enum SystemCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INTEGRATED_SYSTEM(17),
    USER_SPECIFIED_SYSTEM(18),
    SYSTEM_NOT_SET(0);
    private final int value;

    private SystemCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SystemCase valueOf(int value) {
      return forNumber(value);
    }

    public static SystemCase forNumber(int value) {
      switch (value) {
        case 17:
          return INTEGRATED_SYSTEM;
        case 18:
          return USER_SPECIFIED_SYSTEM;
        case 0:
          return SYSTEM_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public SystemCase getSystemCase() {
    return SystemCase.forNumber(systemCase_);
  }

  private int typeSpecCase_ = 0;

  @SuppressWarnings("serial")
  private java.lang.Object typeSpec_;

  public enum TypeSpecCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    GCS_FILESET_SPEC(6),
    BIGQUERY_TABLE_SPEC(12),
    BIGQUERY_DATE_SHARDED_SPEC(15),
    TYPESPEC_NOT_SET(0);
    private final int value;

    private TypeSpecCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TypeSpecCase valueOf(int value) {
      return forNumber(value);
    }

    public static TypeSpecCase forNumber(int value) {
      switch (value) {
        case 6:
          return GCS_FILESET_SPEC;
        case 12:
          return BIGQUERY_TABLE_SPEC;
        case 15:
          return BIGQUERY_DATE_SHARDED_SPEC;
        case 0:
          return TYPESPEC_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public TypeSpecCase getTypeSpecCase() {
    return TypeSpecCase.forNumber(typeSpecCase_);
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The Data Catalog resource name of the entry in URL format.
   * Example:
   *
   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
   *
   * Note that this Entry and its child resources may not actually be stored in
   * the location in this name.
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The Data Catalog resource name of the entry in URL format.
   * Example:
   *
   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
   *
   * Note that this Entry and its child resources may not actually be stored in
   * the location in this name.
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LINKED_RESOURCE_FIELD_NUMBER = 9;

  @SuppressWarnings("serial")
  private volatile java.lang.Object linkedResource_ = "";
  /**
   *
   *
   * <pre>
   * The resource this metadata entry refers to.
   *
   * For Google Cloud Platform resources, `linked_resource` is the [full name of
   * the
   * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
   * For example, the `linked_resource` for a table resource from BigQuery is:
   *
   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
   *
   * Output only when Entry is of type in the EntryType enum. For entries with
   * user_specified_type, this field is optional and defaults to an empty
   * string.
   * </pre>
   *
   * <code>string linked_resource = 9;</code>
   *
   * @return The linkedResource.
   */
  @java.lang.Override
  public java.lang.String getLinkedResource() {
    java.lang.Object ref = linkedResource_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      linkedResource_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The resource this metadata entry refers to.
   *
   * For Google Cloud Platform resources, `linked_resource` is the [full name of
   * the
   * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
   * For example, the `linked_resource` for a table resource from BigQuery is:
   *
   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
   *
   * Output only when Entry is of type in the EntryType enum. For entries with
   * user_specified_type, this field is optional and defaults to an empty
   * string.
   * </pre>
   *
   * <code>string linked_resource = 9;</code>
   *
   * @return The bytes for linkedResource.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getLinkedResourceBytes() {
    java.lang.Object ref = linkedResource_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      linkedResource_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TYPE_FIELD_NUMBER = 2;
  /**
   *
   *
   * <pre>
   * The type of the entry.
   * Only used for Entries with types in the EntryType enum.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
   *
   * @return Whether the type field is set.
   */
  public boolean hasType() {
    return entryTypeCase_ == 2;
  }
  /**
   *
   *
   * <pre>
   * The type of the entry.
   * Only used for Entries with types in the EntryType enum.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
   *
   * @return The enum numeric value on the wire for type.
   */
  public int getTypeValue() {
    if (entryTypeCase_ == 2) {
      return (java.lang.Integer) entryType_;
    }
    return 0;
  }
  /**
   *
   *
   * <pre>
   * The type of the entry.
   * Only used for Entries with types in the EntryType enum.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
   *
   * @return The type.
   */
  public com.google.cloud.datacatalog.v1beta1.EntryType getType() {
    if (entryTypeCase_ == 2) {
      com.google.cloud.datacatalog.v1beta1.EntryType result =
          com.google.cloud.datacatalog.v1beta1.EntryType.forNumber((java.lang.Integer) entryType_);
      return result == null ? com.google.cloud.datacatalog.v1beta1.EntryType.UNRECOGNIZED : result;
    }
    return com.google.cloud.datacatalog.v1beta1.EntryType.ENTRY_TYPE_UNSPECIFIED;
  }

  public static final int USER_SPECIFIED_TYPE_FIELD_NUMBER = 16;
  /**
   *
   *
   * <pre>
   * Entry type if it does not fit any of the input-allowed values listed in
   * `EntryType` enum above. When creating an entry, users should check the
   * enum values first, if nothing matches the entry to be created, then
   * provide a custom value, for example "my_special_type".
   * `user_specified_type` strings must begin with a letter or underscore and
   * can only contain letters, numbers, and underscores; are case insensitive;
   * must be at least 1 character and at most 64 characters long.
   *
   * Currently, only FILESET enum value is allowed. All other entries created
   * through Data Catalog must use `user_specified_type`.
   * </pre>
   *
   * <code>string user_specified_type = 16;</code>
   *
   * @return Whether the userSpecifiedType field is set.
   */
  public boolean hasUserSpecifiedType() {
    return entryTypeCase_ == 16;
  }
  /**
   *
   *
   * <pre>
   * Entry type if it does not fit any of the input-allowed values listed in
   * `EntryType` enum above. When creating an entry, users should check the
   * enum values first, if nothing matches the entry to be created, then
   * provide a custom value, for example "my_special_type".
   * `user_specified_type` strings must begin with a letter or underscore and
   * can only contain letters, numbers, and underscores; are case insensitive;
   * must be at least 1 character and at most 64 characters long.
   *
   * Currently, only FILESET enum value is allowed. All other entries created
   * through Data Catalog must use `user_specified_type`.
   * </pre>
   *
   * <code>string user_specified_type = 16;</code>
   *
   * @return The userSpecifiedType.
   */
  public java.lang.String getUserSpecifiedType() {
    java.lang.Object ref = "";
    if (entryTypeCase_ == 16) {
      ref = entryType_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (entryTypeCase_ == 16) {
        entryType_ = s;
      }
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Entry type if it does not fit any of the input-allowed values listed in
   * `EntryType` enum above. When creating an entry, users should check the
   * enum values first, if nothing matches the entry to be created, then
   * provide a custom value, for example "my_special_type".
   * `user_specified_type` strings must begin with a letter or underscore and
   * can only contain letters, numbers, and underscores; are case insensitive;
   * must be at least 1 character and at most 64 characters long.
   *
   * Currently, only FILESET enum value is allowed. All other entries created
   * through Data Catalog must use `user_specified_type`.
   * </pre>
   *
   * <code>string user_specified_type = 16;</code>
   *
   * @return The bytes for userSpecifiedType.
   */
  public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() {
    java.lang.Object ref = "";
    if (entryTypeCase_ == 16) {
      ref = entryType_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      if (entryTypeCase_ == 16) {
        entryType_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INTEGRATED_SYSTEM_FIELD_NUMBER = 17;
  /**
   *
   *
   * <pre>
   * Output only. This field indicates the entry's source system that Data
   * Catalog integrates with, such as BigQuery or Pub/Sub.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the integratedSystem field is set.
   */
  public boolean hasIntegratedSystem() {
    return systemCase_ == 17;
  }
  /**
   *
   *
   * <pre>
   * Output only. This field indicates the entry's source system that Data
   * Catalog integrates with, such as BigQuery or Pub/Sub.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for integratedSystem.
   */
  public int getIntegratedSystemValue() {
    if (systemCase_ == 17) {
      return (java.lang.Integer) system_;
    }
    return 0;
  }
  /**
   *
   *
   * <pre>
   * Output only. This field indicates the entry's source system that Data
   * Catalog integrates with, such as BigQuery or Pub/Sub.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The integratedSystem.
   */
  public com.google.cloud.datacatalog.v1beta1.IntegratedSystem getIntegratedSystem() {
    if (systemCase_ == 17) {
      com.google.cloud.datacatalog.v1beta1.IntegratedSystem result =
          com.google.cloud.datacatalog.v1beta1.IntegratedSystem.forNumber(
              (java.lang.Integer) system_);
      return result == null
          ? com.google.cloud.datacatalog.v1beta1.IntegratedSystem.UNRECOGNIZED
          : result;
    }
    return com.google.cloud.datacatalog.v1beta1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED;
  }

  public static final int USER_SPECIFIED_SYSTEM_FIELD_NUMBER = 18;
  /**
   *
   *
   * <pre>
   * This field indicates the entry's source system that Data Catalog does not
   * integrate with. `user_specified_system` strings must begin with a letter
   * or underscore and can only contain letters, numbers, and underscores; are
   * case insensitive; must be at least 1 character and at most 64 characters
   * long.
   * </pre>
   *
   * <code>string user_specified_system = 18;</code>
   *
   * @return Whether the userSpecifiedSystem field is set.
   */
  public boolean hasUserSpecifiedSystem() {
    return systemCase_ == 18;
  }
  /**
   *
   *
   * <pre>
   * This field indicates the entry's source system that Data Catalog does not
   * integrate with. `user_specified_system` strings must begin with a letter
   * or underscore and can only contain letters, numbers, and underscores; are
   * case insensitive; must be at least 1 character and at most 64 characters
   * long.
   * </pre>
   *
   * <code>string user_specified_system = 18;</code>
   *
   * @return The userSpecifiedSystem.
   */
  public java.lang.String getUserSpecifiedSystem() {
    java.lang.Object ref = "";
    if (systemCase_ == 18) {
      ref = system_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (systemCase_ == 18) {
        system_ = s;
      }
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * This field indicates the entry's source system that Data Catalog does not
   * integrate with. `user_specified_system` strings must begin with a letter
   * or underscore and can only contain letters, numbers, and underscores; are
   * case insensitive; must be at least 1 character and at most 64 characters
   * long.
   * </pre>
   *
   * <code>string user_specified_system = 18;</code>
   *
   * @return The bytes for userSpecifiedSystem.
   */
  public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() {
    java.lang.Object ref = "";
    if (systemCase_ == 18) {
      ref = system_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      if (systemCase_ == 18) {
        system_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GCS_FILESET_SPEC_FIELD_NUMBER = 6;
  /**
   *
   *
   * <pre>
   * Specification that applies to a Cloud Storage fileset. This is only valid
   * on entries of type FILESET.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
   *
   * @return Whether the gcsFilesetSpec field is set.
   */
  @java.lang.Override
  public boolean hasGcsFilesetSpec() {
    return typeSpecCase_ == 6;
  }
  /**
   *
   *
   * <pre>
   * Specification that applies to a Cloud Storage fileset. This is only valid
   * on entries of type FILESET.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
   *
   * @return The gcsFilesetSpec.
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getGcsFilesetSpec() {
    if (typeSpecCase_ == 6) {
      return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
    }
    return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Specification that applies to a Cloud Storage fileset. This is only valid
   * on entries of type FILESET.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder() {
    if (typeSpecCase_ == 6) {
      return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
    }
    return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
  }

  public static final int BIGQUERY_TABLE_SPEC_FIELD_NUMBER = 12;
  /**
   *
   *
   * <pre>
   * Specification that applies to a BigQuery table. This is only valid on
   * entries of type `TABLE`.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
   *
   * @return Whether the bigqueryTableSpec field is set.
   */
  @java.lang.Override
  public boolean hasBigqueryTableSpec() {
    return typeSpecCase_ == 12;
  }
  /**
   *
   *
   * <pre>
   * Specification that applies to a BigQuery table. This is only valid on
   * entries of type `TABLE`.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
   *
   * @return The bigqueryTableSpec.
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getBigqueryTableSpec() {
    if (typeSpecCase_ == 12) {
      return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
    }
    return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Specification that applies to a BigQuery table. This is only valid on
   * entries of type `TABLE`.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder
      getBigqueryTableSpecOrBuilder() {
    if (typeSpecCase_ == 12) {
      return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
    }
    return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
  }

  public static final int BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER = 15;
  /**
   *
   *
   * <pre>
   * Specification for a group of BigQuery tables with name pattern
   * `[prefix]YYYYMMDD`. Context:
   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
   * </code>
   *
   * @return Whether the bigqueryDateShardedSpec field is set.
   */
  @java.lang.Override
  public boolean hasBigqueryDateShardedSpec() {
    return typeSpecCase_ == 15;
  }
  /**
   *
   *
   * <pre>
   * Specification for a group of BigQuery tables with name pattern
   * `[prefix]YYYYMMDD`. Context:
   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
   * </code>
   *
   * @return The bigqueryDateShardedSpec.
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec getBigqueryDateShardedSpec() {
    if (typeSpecCase_ == 15) {
      return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
    }
    return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Specification for a group of BigQuery tables with name pattern
   * `[prefix]YYYYMMDD`. Context:
   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder
      getBigqueryDateShardedSpecOrBuilder() {
    if (typeSpecCase_ == 15) {
      return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
    }
    return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * Display information such as title and description. A short name to identify
   * the entry, for example, "Analytics Data - Jan 2011". Default value is an
   * empty string.
   * </pre>
   *
   * <code>string display_name = 3;</code>
   *
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      displayName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Display information such as title and description. A short name to identify
   * the entry, for example, "Analytics Data - Jan 2011". Default value is an
   * empty string.
   * </pre>
   *
   * <code>string display_name = 3;</code>
   *
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object description_ = "";
  /**
   *
   *
   * <pre>
   * Entry description, which can consist of several sentences or paragraphs
   * that describe entry contents. Default value is an empty string.
   * </pre>
   *
   * <code>string description = 4;</code>
   *
   * @return The description.
   */
  @java.lang.Override
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      description_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Entry description, which can consist of several sentences or paragraphs
   * that describe entry contents. Default value is an empty string.
   * </pre>
   *
   * <code>string description = 4;</code>
   *
   * @return The bytes for description.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SCHEMA_FIELD_NUMBER = 5;
  private com.google.cloud.datacatalog.v1beta1.Schema schema_;
  /**
   *
   *
   * <pre>
   * Schema of the entry. An entry might not have any schema attached to it.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
   *
   * @return Whether the schema field is set.
   */
  @java.lang.Override
  public boolean hasSchema() {
    return schema_ != null;
  }
  /**
   *
   *
   * <pre>
   * Schema of the entry. An entry might not have any schema attached to it.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
   *
   * @return The schema.
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.Schema getSchema() {
    return schema_ == null
        ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
        : schema_;
  }
  /**
   *
   *
   * <pre>
   * Schema of the entry. An entry might not have any schema attached to it.
   * </pre>
   *
   * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder getSchemaOrBuilder() {
    return schema_ == null
        ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
        : schema_;
  }

  public static final int SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER = 7;
  private com.google.cloud.datacatalog.v1beta1.SystemTimestamps sourceSystemTimestamps_;
  /**
   *
   *
   * <pre>
   * Output only. Timestamps about the underlying resource, not about this Data
   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
   * entries with user_specified_type, this field is optional and defaults to an
   * empty timestamp.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the sourceSystemTimestamps field is set.
   */
  @java.lang.Override
  public boolean hasSourceSystemTimestamps() {
    return sourceSystemTimestamps_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Timestamps about the underlying resource, not about this Data
   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
   * entries with user_specified_type, this field is optional and defaults to an
   * empty timestamp.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The sourceSystemTimestamps.
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getSourceSystemTimestamps() {
    return sourceSystemTimestamps_ == null
        ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
        : sourceSystemTimestamps_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Timestamps about the underlying resource, not about this Data
   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
   * entries with user_specified_type, this field is optional and defaults to an
   * empty timestamp.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder
      getSourceSystemTimestampsOrBuilder() {
    return sourceSystemTimestamps_ == null
        ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
        : sourceSystemTimestamps_;
  }

  public static final int USAGE_SIGNAL_FIELD_NUMBER = 13;
  private com.google.cloud.datacatalog.v1beta1.UsageSignal usageSignal_;
  /**
   *
   *
   * <pre>
   * Output only. Statistics on the usage level of the resource.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the usageSignal field is set.
   */
  @java.lang.Override
  public boolean hasUsageSignal() {
    return usageSignal_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Statistics on the usage level of the resource.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The usageSignal.
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.UsageSignal getUsageSignal() {
    return usageSignal_ == null
        ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance()
        : usageSignal_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Statistics on the usage level of the resource.
   * </pre>
   *
   * <code>
   * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder getUsageSignalOrBuilder() {
    return usageSignal_ == null
        ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance()
        : usageSignal_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (entryTypeCase_ == 2) {
      output.writeEnum(2, ((java.lang.Integer) entryType_));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
    }
    if (schema_ != null) {
      output.writeMessage(5, getSchema());
    }
    if (typeSpecCase_ == 6) {
      output.writeMessage(6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_);
    }
    if (sourceSystemTimestamps_ != null) {
      output.writeMessage(7, getSourceSystemTimestamps());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkedResource_);
    }
    if (typeSpecCase_ == 12) {
      output.writeMessage(12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_);
    }
    if (usageSignal_ != null) {
      output.writeMessage(13, getUsageSignal());
    }
    if (typeSpecCase_ == 15) {
      output.writeMessage(
          15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_);
    }
    if (entryTypeCase_ == 16) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, entryType_);
    }
    if (systemCase_ == 17) {
      output.writeEnum(17, ((java.lang.Integer) system_));
    }
    if (systemCase_ == 18) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, system_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (entryTypeCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(
              2, ((java.lang.Integer) entryType_));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
    }
    if (schema_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema());
    }
    if (typeSpecCase_ == 6) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_);
    }
    if (sourceSystemTimestamps_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSourceSystemTimestamps());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkedResource_);
    }
    if (typeSpecCase_ == 12) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_);
    }
    if (usageSignal_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUsageSignal());
    }
    if (typeSpecCase_ == 15) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_);
    }
    if (entryTypeCase_ == 16) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, entryType_);
    }
    if (systemCase_ == 17) {
      size +=
          com.google.protobuf.CodedOutputStream.computeEnumSize(17, ((java.lang.Integer) system_));
    }
    if (systemCase_ == 18) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, system_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.Entry)) {
      return super.equals(obj);
    }
    com.google.cloud.datacatalog.v1beta1.Entry other =
        (com.google.cloud.datacatalog.v1beta1.Entry) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getLinkedResource().equals(other.getLinkedResource())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (!getDescription().equals(other.getDescription())) return false;
    if (hasSchema() != other.hasSchema()) return false;
    if (hasSchema()) {
      if (!getSchema().equals(other.getSchema())) return false;
    }
    if (hasSourceSystemTimestamps() != other.hasSourceSystemTimestamps()) return false;
    if (hasSourceSystemTimestamps()) {
      if (!getSourceSystemTimestamps().equals(other.getSourceSystemTimestamps())) return false;
    }
    if (hasUsageSignal() != other.hasUsageSignal()) return false;
    if (hasUsageSignal()) {
      if (!getUsageSignal().equals(other.getUsageSignal())) return false;
    }
    if (!getEntryTypeCase().equals(other.getEntryTypeCase())) return false;
    switch (entryTypeCase_) {
      case 2:
        if (getTypeValue() != other.getTypeValue()) return false;
        break;
      case 16:
        if (!getUserSpecifiedType().equals(other.getUserSpecifiedType())) return false;
        break;
      case 0:
      default:
    }
    if (!getSystemCase().equals(other.getSystemCase())) return false;
    switch (systemCase_) {
      case 17:
        if (getIntegratedSystemValue() != other.getIntegratedSystemValue()) return false;
        break;
      case 18:
        if (!getUserSpecifiedSystem().equals(other.getUserSpecifiedSystem())) return false;
        break;
      case 0:
      default:
    }
    if (!getTypeSpecCase().equals(other.getTypeSpecCase())) return false;
    switch (typeSpecCase_) {
      case 6:
        if (!getGcsFilesetSpec().equals(other.getGcsFilesetSpec())) return false;
        break;
      case 12:
        if (!getBigqueryTableSpec().equals(other.getBigqueryTableSpec())) return false;
        break;
      case 15:
        if (!getBigqueryDateShardedSpec().equals(other.getBigqueryDateShardedSpec())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER;
    hash = (53 * hash) + getLinkedResource().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    if (hasSchema()) {
      hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
      hash = (53 * hash) + getSchema().hashCode();
    }
    if (hasSourceSystemTimestamps()) {
      hash = (37 * hash) + SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER;
      hash = (53 * hash) + getSourceSystemTimestamps().hashCode();
    }
    if (hasUsageSignal()) {
      hash = (37 * hash) + USAGE_SIGNAL_FIELD_NUMBER;
      hash = (53 * hash) + getUsageSignal().hashCode();
    }
    switch (entryTypeCase_) {
      case 2:
        hash = (37 * hash) + TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getTypeValue();
        break;
      case 16:
        hash = (37 * hash) + USER_SPECIFIED_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getUserSpecifiedType().hashCode();
        break;
      case 0:
      default:
    }
    switch (systemCase_) {
      case 17:
        hash = (37 * hash) + INTEGRATED_SYSTEM_FIELD_NUMBER;
        hash = (53 * hash) + getIntegratedSystemValue();
        break;
      case 18:
        hash = (37 * hash) + USER_SPECIFIED_SYSTEM_FIELD_NUMBER;
        hash = (53 * hash) + getUserSpecifiedSystem().hashCode();
        break;
      case 0:
      default:
    }
    switch (typeSpecCase_) {
      case 6:
        hash = (37 * hash) + GCS_FILESET_SPEC_FIELD_NUMBER;
        hash = (53 * hash) + getGcsFilesetSpec().hashCode();
        break;
      case 12:
        hash = (37 * hash) + BIGQUERY_TABLE_SPEC_FIELD_NUMBER;
        hash = (53 * hash) + getBigqueryTableSpec().hashCode();
        break;
      case 15:
        hash = (37 * hash) + BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER;
        hash = (53 * hash) + getBigqueryDateShardedSpec().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.Entry prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Entry Metadata.
   * A Data Catalog Entry resource represents another resource in Google
   * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or
   * outside of Google Cloud Platform. Clients can use the `linked_resource` field
   * in the Entry resource to refer to the original resource ID of the source
   * system.
   *
   * An Entry resource contains resource details, such as its schema. An Entry can
   * also be used to attach flexible metadata, such as a
   * [Tag][google.cloud.datacatalog.v1beta1.Tag].
   * </pre>
   *
   * Protobuf type {@code google.cloud.datacatalog.v1beta1.Entry}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.Entry)
      com.google.cloud.datacatalog.v1beta1.EntryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.datacatalog.v1beta1.Datacatalog
          .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.datacatalog.v1beta1.Datacatalog
          .internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.datacatalog.v1beta1.Entry.class,
              com.google.cloud.datacatalog.v1beta1.Entry.Builder.class);
    }

    // Construct using com.google.cloud.datacatalog.v1beta1.Entry.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      linkedResource_ = "";
      if (gcsFilesetSpecBuilder_ != null) {
        gcsFilesetSpecBuilder_.clear();
      }
      if (bigqueryTableSpecBuilder_ != null) {
        bigqueryTableSpecBuilder_.clear();
      }
      if (bigqueryDateShardedSpecBuilder_ != null) {
        bigqueryDateShardedSpecBuilder_.clear();
      }
      displayName_ = "";
      description_ = "";
      schema_ = null;
      if (schemaBuilder_ != null) {
        schemaBuilder_.dispose();
        schemaBuilder_ = null;
      }
      sourceSystemTimestamps_ = null;
      if (sourceSystemTimestampsBuilder_ != null) {
        sourceSystemTimestampsBuilder_.dispose();
        sourceSystemTimestampsBuilder_ = null;
      }
      usageSignal_ = null;
      if (usageSignalBuilder_ != null) {
        usageSignalBuilder_.dispose();
        usageSignalBuilder_ = null;
      }
      entryTypeCase_ = 0;
      entryType_ = null;
      systemCase_ = 0;
      system_ = null;
      typeSpecCase_ = 0;
      typeSpec_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.datacatalog.v1beta1.Datacatalog
          .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstanceForType() {
      return com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.Entry build() {
      com.google.cloud.datacatalog.v1beta1.Entry result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.Entry buildPartial() {
      com.google.cloud.datacatalog.v1beta1.Entry result =
          new com.google.cloud.datacatalog.v1beta1.Entry(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.datacatalog.v1beta1.Entry result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.linkedResource_ = linkedResource_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.description_ = description_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build();
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.sourceSystemTimestamps_ =
            sourceSystemTimestampsBuilder_ == null
                ? sourceSystemTimestamps_
                : sourceSystemTimestampsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00002000) != 0)) {
        result.usageSignal_ =
            usageSignalBuilder_ == null ? usageSignal_ : usageSignalBuilder_.build();
      }
    }

    private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.Entry result) {
      result.entryTypeCase_ = entryTypeCase_;
      result.entryType_ = this.entryType_;
      result.systemCase_ = systemCase_;
      result.system_ = this.system_;
      result.typeSpecCase_ = typeSpecCase_;
      result.typeSpec_ = this.typeSpec_;
      if (typeSpecCase_ == 6 && gcsFilesetSpecBuilder_ != null) {
        result.typeSpec_ = gcsFilesetSpecBuilder_.build();
      }
      if (typeSpecCase_ == 12 && bigqueryTableSpecBuilder_ != null) {
        result.typeSpec_ = bigqueryTableSpecBuilder_.build();
      }
      if (typeSpecCase_ == 15 && bigqueryDateShardedSpecBuilder_ != null) {
        result.typeSpec_ = bigqueryDateShardedSpecBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.datacatalog.v1beta1.Entry) {
        return mergeFrom((com.google.cloud.datacatalog.v1beta1.Entry) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.Entry other) {
      if (other == com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getLinkedResource().isEmpty()) {
        linkedResource_ = other.linkedResource_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000200;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        bitField0_ |= 0x00000400;
        onChanged();
      }
      if (other.hasSchema()) {
        mergeSchema(other.getSchema());
      }
      if (other.hasSourceSystemTimestamps()) {
        mergeSourceSystemTimestamps(other.getSourceSystemTimestamps());
      }
      if (other.hasUsageSignal()) {
        mergeUsageSignal(other.getUsageSignal());
      }
      switch (other.getEntryTypeCase()) {
        case TYPE:
          {
            setTypeValue(other.getTypeValue());
            break;
          }
        case USER_SPECIFIED_TYPE:
          {
            entryTypeCase_ = 16;
            entryType_ = other.entryType_;
            onChanged();
            break;
          }
        case ENTRYTYPE_NOT_SET:
          {
            break;
          }
      }
      switch (other.getSystemCase()) {
        case INTEGRATED_SYSTEM:
          {
            setIntegratedSystemValue(other.getIntegratedSystemValue());
            break;
          }
        case USER_SPECIFIED_SYSTEM:
          {
            systemCase_ = 18;
            system_ = other.system_;
            onChanged();
            break;
          }
        case SYSTEM_NOT_SET:
          {
            break;
          }
      }
      switch (other.getTypeSpecCase()) {
        case GCS_FILESET_SPEC:
          {
            mergeGcsFilesetSpec(other.getGcsFilesetSpec());
            break;
          }
        case BIGQUERY_TABLE_SPEC:
          {
            mergeBigqueryTableSpec(other.getBigqueryTableSpec());
            break;
          }
        case BIGQUERY_DATE_SHARDED_SPEC:
          {
            mergeBigqueryDateShardedSpec(other.getBigqueryDateShardedSpec());
            break;
          }
        case TYPESPEC_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 16:
              {
                int rawValue = input.readEnum();
                entryTypeCase_ = 2;
                entryType_ = rawValue;
                break;
              } // case 16
            case 26:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000200;
                break;
              } // case 26
            case 34:
              {
                description_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000400;
                break;
              } // case 34
            case 42:
              {
                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000800;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(getGcsFilesetSpecFieldBuilder().getBuilder(), extensionRegistry);
                typeSpecCase_ = 6;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(
                    getSourceSystemTimestampsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00001000;
                break;
              } // case 58
            case 74:
              {
                linkedResource_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 74
            case 98:
              {
                input.readMessage(
                    getBigqueryTableSpecFieldBuilder().getBuilder(), extensionRegistry);
                typeSpecCase_ = 12;
                break;
              } // case 98
            case 106:
              {
                input.readMessage(getUsageSignalFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00002000;
                break;
              } // case 106
            case 122:
              {
                input.readMessage(
                    getBigqueryDateShardedSpecFieldBuilder().getBuilder(), extensionRegistry);
                typeSpecCase_ = 15;
                break;
              } // case 122
            case 130:
              {
                java.lang.String s = input.readStringRequireUtf8();
                entryTypeCase_ = 16;
                entryType_ = s;
                break;
              } // case 130
            case 136:
              {
                int rawValue = input.readEnum();
                systemCase_ = 17;
                system_ = rawValue;
                break;
              } // case 136
            case 146:
              {
                java.lang.String s = input.readStringRequireUtf8();
                systemCase_ = 18;
                system_ = s;
                break;
              } // case 146
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int entryTypeCase_ = 0;
    private java.lang.Object entryType_;

    public EntryTypeCase getEntryTypeCase() {
      return EntryTypeCase.forNumber(entryTypeCase_);
    }

    public Builder clearEntryType() {
      entryTypeCase_ = 0;
      entryType_ = null;
      onChanged();
      return this;
    }

    private int systemCase_ = 0;
    private java.lang.Object system_;

    public SystemCase getSystemCase() {
      return SystemCase.forNumber(systemCase_);
    }

    public Builder clearSystem() {
      systemCase_ = 0;
      system_ = null;
      onChanged();
      return this;
    }

    private int typeSpecCase_ = 0;
    private java.lang.Object typeSpec_;

    public TypeSpecCase getTypeSpecCase() {
      return TypeSpecCase.forNumber(typeSpecCase_);
    }

    public Builder clearTypeSpec() {
      typeSpecCase_ = 0;
      typeSpec_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The Data Catalog resource name of the entry in URL format.
     * Example:
     *
     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
     *
     * Note that this Entry and its child resources may not actually be stored in
     * the location in this name.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The Data Catalog resource name of the entry in URL format.
     * Example:
     *
     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
     *
     * Note that this Entry and its child resources may not actually be stored in
     * the location in this name.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The Data Catalog resource name of the entry in URL format.
     * Example:
     *
     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
     *
     * Note that this Entry and its child resources may not actually be stored in
     * the location in this name.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Data Catalog resource name of the entry in URL format.
     * Example:
     *
     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
     *
     * Note that this Entry and its child resources may not actually be stored in
     * the location in this name.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The Data Catalog resource name of the entry in URL format.
     * Example:
     *
     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
     *
     * Note that this Entry and its child resources may not actually be stored in
     * the location in this name.
     * </pre>
     *
     * <code>
     * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object linkedResource_ = "";
    /**
     *
     *
     * <pre>
     * The resource this metadata entry refers to.
     *
     * For Google Cloud Platform resources, `linked_resource` is the [full name of
     * the
     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     * For example, the `linked_resource` for a table resource from BigQuery is:
     *
     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
     *
     * Output only when Entry is of type in the EntryType enum. For entries with
     * user_specified_type, this field is optional and defaults to an empty
     * string.
     * </pre>
     *
     * <code>string linked_resource = 9;</code>
     *
     * @return The linkedResource.
     */
    public java.lang.String getLinkedResource() {
      java.lang.Object ref = linkedResource_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        linkedResource_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The resource this metadata entry refers to.
     *
     * For Google Cloud Platform resources, `linked_resource` is the [full name of
     * the
     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     * For example, the `linked_resource` for a table resource from BigQuery is:
     *
     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
     *
     * Output only when Entry is of type in the EntryType enum. For entries with
     * user_specified_type, this field is optional and defaults to an empty
     * string.
     * </pre>
     *
     * <code>string linked_resource = 9;</code>
     *
     * @return The bytes for linkedResource.
     */
    public com.google.protobuf.ByteString getLinkedResourceBytes() {
      java.lang.Object ref = linkedResource_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        linkedResource_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The resource this metadata entry refers to.
     *
     * For Google Cloud Platform resources, `linked_resource` is the [full name of
     * the
     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     * For example, the `linked_resource` for a table resource from BigQuery is:
     *
     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
     *
     * Output only when Entry is of type in the EntryType enum. For entries with
     * user_specified_type, this field is optional and defaults to an empty
     * string.
     * </pre>
     *
     * <code>string linked_resource = 9;</code>
     *
     * @param value The linkedResource to set.
     * @return This builder for chaining.
     */
    public Builder setLinkedResource(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      linkedResource_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The resource this metadata entry refers to.
     *
     * For Google Cloud Platform resources, `linked_resource` is the [full name of
     * the
     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     * For example, the `linked_resource` for a table resource from BigQuery is:
     *
     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
     *
     * Output only when Entry is of type in the EntryType enum. For entries with
     * user_specified_type, this field is optional and defaults to an empty
     * string.
     * </pre>
     *
     * <code>string linked_resource = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearLinkedResource() {
      linkedResource_ = getDefaultInstance().getLinkedResource();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The resource this metadata entry refers to.
     *
     * For Google Cloud Platform resources, `linked_resource` is the [full name of
     * the
     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     * For example, the `linked_resource` for a table resource from BigQuery is:
     *
     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
     *
     * Output only when Entry is of type in the EntryType enum. For entries with
     * user_specified_type, this field is optional and defaults to an empty
     * string.
     * </pre>
     *
     * <code>string linked_resource = 9;</code>
     *
     * @param value The bytes for linkedResource to set.
     * @return This builder for chaining.
     */
    public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      linkedResource_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The type of the entry.
     * Only used for Entries with types in the EntryType enum.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
     *
     * @return Whether the type field is set.
     */
    @java.lang.Override
    public boolean hasType() {
      return entryTypeCase_ == 2;
    }
    /**
     *
     *
     * <pre>
     * The type of the entry.
     * Only used for Entries with types in the EntryType enum.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
     *
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      if (entryTypeCase_ == 2) {
        return ((java.lang.Integer) entryType_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     * <pre>
     * The type of the entry.
     * Only used for Entries with types in the EntryType enum.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
     *
     * @param value The enum numeric value on the wire for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeValue(int value) {
      entryTypeCase_ = 2;
      entryType_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of the entry.
     * Only used for Entries with types in the EntryType enum.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
     *
     * @return The type.
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.EntryType getType() {
      if (entryTypeCase_ == 2) {
        com.google.cloud.datacatalog.v1beta1.EntryType result =
            com.google.cloud.datacatalog.v1beta1.EntryType.forNumber(
                (java.lang.Integer) entryType_);
        return result == null
            ? com.google.cloud.datacatalog.v1beta1.EntryType.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.datacatalog.v1beta1.EntryType.ENTRY_TYPE_UNSPECIFIED;
    }
    /**
     *
     *
     * <pre>
     * The type of the entry.
     * Only used for Entries with types in the EntryType enum.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
     *
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(com.google.cloud.datacatalog.v1beta1.EntryType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      entryTypeCase_ = 2;
      entryType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The type of the entry.
     * Only used for Entries with types in the EntryType enum.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearType() {
      if (entryTypeCase_ == 2) {
        entryTypeCase_ = 0;
        entryType_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Entry type if it does not fit any of the input-allowed values listed in
     * `EntryType` enum above. When creating an entry, users should check the
     * enum values first, if nothing matches the entry to be created, then
     * provide a custom value, for example "my_special_type".
     * `user_specified_type` strings must begin with a letter or underscore and
     * can only contain letters, numbers, and underscores; are case insensitive;
     * must be at least 1 character and at most 64 characters long.
     *
     * Currently, only FILESET enum value is allowed. All other entries created
     * through Data Catalog must use `user_specified_type`.
     * </pre>
     *
     * <code>string user_specified_type = 16;</code>
     *
     * @return Whether the userSpecifiedType field is set.
     */
    @java.lang.Override
    public boolean hasUserSpecifiedType() {
      return entryTypeCase_ == 16;
    }
    /**
     *
     *
     * <pre>
     * Entry type if it does not fit any of the input-allowed values listed in
     * `EntryType` enum above. When creating an entry, users should check the
     * enum values first, if nothing matches the entry to be created, then
     * provide a custom value, for example "my_special_type".
     * `user_specified_type` strings must begin with a letter or underscore and
     * can only contain letters, numbers, and underscores; are case insensitive;
     * must be at least 1 character and at most 64 characters long.
     *
     * Currently, only FILESET enum value is allowed. All other entries created
     * through Data Catalog must use `user_specified_type`.
     * </pre>
     *
     * <code>string user_specified_type = 16;</code>
     *
     * @return The userSpecifiedType.
     */
    @java.lang.Override
    public java.lang.String getUserSpecifiedType() {
      java.lang.Object ref = "";
      if (entryTypeCase_ == 16) {
        ref = entryType_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (entryTypeCase_ == 16) {
          entryType_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Entry type if it does not fit any of the input-allowed values listed in
     * `EntryType` enum above. When creating an entry, users should check the
     * enum values first, if nothing matches the entry to be created, then
     * provide a custom value, for example "my_special_type".
     * `user_specified_type` strings must begin with a letter or underscore and
     * can only contain letters, numbers, and underscores; are case insensitive;
     * must be at least 1 character and at most 64 characters long.
     *
     * Currently, only FILESET enum value is allowed. All other entries created
     * through Data Catalog must use `user_specified_type`.
     * </pre>
     *
     * <code>string user_specified_type = 16;</code>
     *
     * @return The bytes for userSpecifiedType.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() {
      java.lang.Object ref = "";
      if (entryTypeCase_ == 16) {
        ref = entryType_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        if (entryTypeCase_ == 16) {
          entryType_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Entry type if it does not fit any of the input-allowed values listed in
     * `EntryType` enum above. When creating an entry, users should check the
     * enum values first, if nothing matches the entry to be created, then
     * provide a custom value, for example "my_special_type".
     * `user_specified_type` strings must begin with a letter or underscore and
     * can only contain letters, numbers, and underscores; are case insensitive;
     * must be at least 1 character and at most 64 characters long.
     *
     * Currently, only FILESET enum value is allowed. All other entries created
     * through Data Catalog must use `user_specified_type`.
     * </pre>
     *
     * <code>string user_specified_type = 16;</code>
     *
     * @param value The userSpecifiedType to set.
     * @return This builder for chaining.
     */
    public Builder setUserSpecifiedType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      entryTypeCase_ = 16;
      entryType_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Entry type if it does not fit any of the input-allowed values listed in
     * `EntryType` enum above. When creating an entry, users should check the
     * enum values first, if nothing matches the entry to be created, then
     * provide a custom value, for example "my_special_type".
     * `user_specified_type` strings must begin with a letter or underscore and
     * can only contain letters, numbers, and underscores; are case insensitive;
     * must be at least 1 character and at most 64 characters long.
     *
     * Currently, only FILESET enum value is allowed. All other entries created
     * through Data Catalog must use `user_specified_type`.
     * </pre>
     *
     * <code>string user_specified_type = 16;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUserSpecifiedType() {
      if (entryTypeCase_ == 16) {
        entryTypeCase_ = 0;
        entryType_ = null;
        onChanged();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Entry type if it does not fit any of the input-allowed values listed in
     * `EntryType` enum above. When creating an entry, users should check the
     * enum values first, if nothing matches the entry to be created, then
     * provide a custom value, for example "my_special_type".
     * `user_specified_type` strings must begin with a letter or underscore and
     * can only contain letters, numbers, and underscores; are case insensitive;
     * must be at least 1 character and at most 64 characters long.
     *
     * Currently, only FILESET enum value is allowed. All other entries created
     * through Data Catalog must use `user_specified_type`.
     * </pre>
     *
     * <code>string user_specified_type = 16;</code>
     *
     * @param value The bytes for userSpecifiedType to set.
     * @return This builder for chaining.
     */
    public Builder setUserSpecifiedTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      entryTypeCase_ = 16;
      entryType_ = value;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Output only. This field indicates the entry's source system that Data
     * Catalog integrates with, such as BigQuery or Pub/Sub.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the integratedSystem field is set.
     */
    @java.lang.Override
    public boolean hasIntegratedSystem() {
      return systemCase_ == 17;
    }
    /**
     *
     *
     * <pre>
     * Output only. This field indicates the entry's source system that Data
     * Catalog integrates with, such as BigQuery or Pub/Sub.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for integratedSystem.
     */
    @java.lang.Override
    public int getIntegratedSystemValue() {
      if (systemCase_ == 17) {
        return ((java.lang.Integer) system_).intValue();
      }
      return 0;
    }
    /**
     *
     *
     * <pre>
     * Output only. This field indicates the entry's source system that Data
     * Catalog integrates with, such as BigQuery or Pub/Sub.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for integratedSystem to set.
     * @return This builder for chaining.
     */
    public Builder setIntegratedSystemValue(int value) {
      systemCase_ = 17;
      system_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. This field indicates the entry's source system that Data
     * Catalog integrates with, such as BigQuery or Pub/Sub.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The integratedSystem.
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.IntegratedSystem getIntegratedSystem() {
      if (systemCase_ == 17) {
        com.google.cloud.datacatalog.v1beta1.IntegratedSystem result =
            com.google.cloud.datacatalog.v1beta1.IntegratedSystem.forNumber(
                (java.lang.Integer) system_);
        return result == null
            ? com.google.cloud.datacatalog.v1beta1.IntegratedSystem.UNRECOGNIZED
            : result;
      }
      return com.google.cloud.datacatalog.v1beta1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED;
    }
    /**
     *
     *
     * <pre>
     * Output only. This field indicates the entry's source system that Data
     * Catalog integrates with, such as BigQuery or Pub/Sub.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The integratedSystem to set.
     * @return This builder for chaining.
     */
    public Builder setIntegratedSystem(
        com.google.cloud.datacatalog.v1beta1.IntegratedSystem value) {
      if (value == null) {
        throw new NullPointerException();
      }
      systemCase_ = 17;
      system_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. This field indicates the entry's source system that Data
     * Catalog integrates with, such as BigQuery or Pub/Sub.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIntegratedSystem() {
      if (systemCase_ == 17) {
        systemCase_ = 0;
        system_ = null;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * This field indicates the entry's source system that Data Catalog does not
     * integrate with. `user_specified_system` strings must begin with a letter
     * or underscore and can only contain letters, numbers, and underscores; are
     * case insensitive; must be at least 1 character and at most 64 characters
     * long.
     * </pre>
     *
     * <code>string user_specified_system = 18;</code>
     *
     * @return Whether the userSpecifiedSystem field is set.
     */
    @java.lang.Override
    public boolean hasUserSpecifiedSystem() {
      return systemCase_ == 18;
    }
    /**
     *
     *
     * <pre>
     * This field indicates the entry's source system that Data Catalog does not
     * integrate with. `user_specified_system` strings must begin with a letter
     * or underscore and can only contain letters, numbers, and underscores; are
     * case insensitive; must be at least 1 character and at most 64 characters
     * long.
     * </pre>
     *
     * <code>string user_specified_system = 18;</code>
     *
     * @return The userSpecifiedSystem.
     */
    @java.lang.Override
    public java.lang.String getUserSpecifiedSystem() {
      java.lang.Object ref = "";
      if (systemCase_ == 18) {
        ref = system_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (systemCase_ == 18) {
          system_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * This field indicates the entry's source system that Data Catalog does not
     * integrate with. `user_specified_system` strings must begin with a letter
     * or underscore and can only contain letters, numbers, and underscores; are
     * case insensitive; must be at least 1 character and at most 64 characters
     * long.
     * </pre>
     *
     * <code>string user_specified_system = 18;</code>
     *
     * @return The bytes for userSpecifiedSystem.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() {
      java.lang.Object ref = "";
      if (systemCase_ == 18) {
        ref = system_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        if (systemCase_ == 18) {
          system_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * This field indicates the entry's source system that Data Catalog does not
     * integrate with. `user_specified_system` strings must begin with a letter
     * or underscore and can only contain letters, numbers, and underscores; are
     * case insensitive; must be at least 1 character and at most 64 characters
     * long.
     * </pre>
     *
     * <code>string user_specified_system = 18;</code>
     *
     * @param value The userSpecifiedSystem to set.
     * @return This builder for chaining.
     */
    public Builder setUserSpecifiedSystem(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      systemCase_ = 18;
      system_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field indicates the entry's source system that Data Catalog does not
     * integrate with. `user_specified_system` strings must begin with a letter
     * or underscore and can only contain letters, numbers, and underscores; are
     * case insensitive; must be at least 1 character and at most 64 characters
     * long.
     * </pre>
     *
     * <code>string user_specified_system = 18;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUserSpecifiedSystem() {
      if (systemCase_ == 18) {
        systemCase_ = 0;
        system_ = null;
        onChanged();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This field indicates the entry's source system that Data Catalog does not
     * integrate with. `user_specified_system` strings must begin with a letter
     * or underscore and can only contain letters, numbers, and underscores; are
     * case insensitive; must be at least 1 character and at most 64 characters
     * long.
     * </pre>
     *
     * <code>string user_specified_system = 18;</code>
     *
     * @param value The bytes for userSpecifiedSystem to set.
     * @return This builder for chaining.
     */
    public Builder setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      systemCase_ = 18;
      system_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec,
            com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder,
            com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder>
        gcsFilesetSpecBuilder_;
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     *
     * @return Whether the gcsFilesetSpec field is set.
     */
    @java.lang.Override
    public boolean hasGcsFilesetSpec() {
      return typeSpecCase_ == 6;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     *
     * @return The gcsFilesetSpec.
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getGcsFilesetSpec() {
      if (gcsFilesetSpecBuilder_ == null) {
        if (typeSpecCase_ == 6) {
          return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
        }
        return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
      } else {
        if (typeSpecCase_ == 6) {
          return gcsFilesetSpecBuilder_.getMessage();
        }
        return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     */
    public Builder setGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value) {
      if (gcsFilesetSpecBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        typeSpec_ = value;
        onChanged();
      } else {
        gcsFilesetSpecBuilder_.setMessage(value);
      }
      typeSpecCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     */
    public Builder setGcsFilesetSpec(
        com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder builderForValue) {
      if (gcsFilesetSpecBuilder_ == null) {
        typeSpec_ = builderForValue.build();
        onChanged();
      } else {
        gcsFilesetSpecBuilder_.setMessage(builderForValue.build());
      }
      typeSpecCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     */
    public Builder mergeGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value) {
      if (gcsFilesetSpecBuilder_ == null) {
        if (typeSpecCase_ == 6
            && typeSpec_
                != com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance()) {
          typeSpec_ =
              com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.newBuilder(
                      (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          typeSpec_ = value;
        }
        onChanged();
      } else {
        if (typeSpecCase_ == 6) {
          gcsFilesetSpecBuilder_.mergeFrom(value);
        } else {
          gcsFilesetSpecBuilder_.setMessage(value);
        }
      }
      typeSpecCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     */
    public Builder clearGcsFilesetSpec() {
      if (gcsFilesetSpecBuilder_ == null) {
        if (typeSpecCase_ == 6) {
          typeSpecCase_ = 0;
          typeSpec_ = null;
          onChanged();
        }
      } else {
        if (typeSpecCase_ == 6) {
          typeSpecCase_ = 0;
          typeSpec_ = null;
        }
        gcsFilesetSpecBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     */
    public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder getGcsFilesetSpecBuilder() {
      return getGcsFilesetSpecFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder
        getGcsFilesetSpecOrBuilder() {
      if ((typeSpecCase_ == 6) && (gcsFilesetSpecBuilder_ != null)) {
        return gcsFilesetSpecBuilder_.getMessageOrBuilder();
      } else {
        if (typeSpecCase_ == 6) {
          return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
        }
        return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a Cloud Storage fileset. This is only valid
     * on entries of type FILESET.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec,
            com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder,
            com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder>
        getGcsFilesetSpecFieldBuilder() {
      if (gcsFilesetSpecBuilder_ == null) {
        if (!(typeSpecCase_ == 6)) {
          typeSpec_ = com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
        }
        gcsFilesetSpecBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec,
                com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder,
                com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder>(
                (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_,
                getParentForChildren(),
                isClean());
        typeSpec_ = null;
      }
      typeSpecCase_ = 6;
      onChanged();
      return gcsFilesetSpecBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec,
            com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder,
            com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder>
        bigqueryTableSpecBuilder_;
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     *
     * @return Whether the bigqueryTableSpec field is set.
     */
    @java.lang.Override
    public boolean hasBigqueryTableSpec() {
      return typeSpecCase_ == 12;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     *
     * @return The bigqueryTableSpec.
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getBigqueryTableSpec() {
      if (bigqueryTableSpecBuilder_ == null) {
        if (typeSpecCase_ == 12) {
          return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
        }
        return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
      } else {
        if (typeSpecCase_ == 12) {
          return bigqueryTableSpecBuilder_.getMessage();
        }
        return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     */
    public Builder setBigqueryTableSpec(
        com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value) {
      if (bigqueryTableSpecBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        typeSpec_ = value;
        onChanged();
      } else {
        bigqueryTableSpecBuilder_.setMessage(value);
      }
      typeSpecCase_ = 12;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     */
    public Builder setBigqueryTableSpec(
        com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder builderForValue) {
      if (bigqueryTableSpecBuilder_ == null) {
        typeSpec_ = builderForValue.build();
        onChanged();
      } else {
        bigqueryTableSpecBuilder_.setMessage(builderForValue.build());
      }
      typeSpecCase_ = 12;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     */
    public Builder mergeBigqueryTableSpec(
        com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value) {
      if (bigqueryTableSpecBuilder_ == null) {
        if (typeSpecCase_ == 12
            && typeSpec_
                != com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance()) {
          typeSpec_ =
              com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.newBuilder(
                      (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          typeSpec_ = value;
        }
        onChanged();
      } else {
        if (typeSpecCase_ == 12) {
          bigqueryTableSpecBuilder_.mergeFrom(value);
        } else {
          bigqueryTableSpecBuilder_.setMessage(value);
        }
      }
      typeSpecCase_ = 12;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     */
    public Builder clearBigqueryTableSpec() {
      if (bigqueryTableSpecBuilder_ == null) {
        if (typeSpecCase_ == 12) {
          typeSpecCase_ = 0;
          typeSpec_ = null;
          onChanged();
        }
      } else {
        if (typeSpecCase_ == 12) {
          typeSpecCase_ = 0;
          typeSpec_ = null;
        }
        bigqueryTableSpecBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     */
    public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder
        getBigqueryTableSpecBuilder() {
      return getBigqueryTableSpecFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder
        getBigqueryTableSpecOrBuilder() {
      if ((typeSpecCase_ == 12) && (bigqueryTableSpecBuilder_ != null)) {
        return bigqueryTableSpecBuilder_.getMessageOrBuilder();
      } else {
        if (typeSpecCase_ == 12) {
          return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
        }
        return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Specification that applies to a BigQuery table. This is only valid on
     * entries of type `TABLE`.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec,
            com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder,
            com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder>
        getBigqueryTableSpecFieldBuilder() {
      if (bigqueryTableSpecBuilder_ == null) {
        if (!(typeSpecCase_ == 12)) {
          typeSpec_ = com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
        }
        bigqueryTableSpecBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec,
                com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder,
                com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder>(
                (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_,
                getParentForChildren(),
                isClean());
        typeSpec_ = null;
      }
      typeSpecCase_ = 12;
      onChanged();
      return bigqueryTableSpecBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec,
            com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder,
            com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder>
        bigqueryDateShardedSpecBuilder_;
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     *
     * @return Whether the bigqueryDateShardedSpec field is set.
     */
    @java.lang.Override
    public boolean hasBigqueryDateShardedSpec() {
      return typeSpecCase_ == 15;
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     *
     * @return The bigqueryDateShardedSpec.
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec
        getBigqueryDateShardedSpec() {
      if (bigqueryDateShardedSpecBuilder_ == null) {
        if (typeSpecCase_ == 15) {
          return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
        }
        return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
      } else {
        if (typeSpecCase_ == 15) {
          return bigqueryDateShardedSpecBuilder_.getMessage();
        }
        return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     */
    public Builder setBigqueryDateShardedSpec(
        com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value) {
      if (bigqueryDateShardedSpecBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        typeSpec_ = value;
        onChanged();
      } else {
        bigqueryDateShardedSpecBuilder_.setMessage(value);
      }
      typeSpecCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     */
    public Builder setBigqueryDateShardedSpec(
        com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder builderForValue) {
      if (bigqueryDateShardedSpecBuilder_ == null) {
        typeSpec_ = builderForValue.build();
        onChanged();
      } else {
        bigqueryDateShardedSpecBuilder_.setMessage(builderForValue.build());
      }
      typeSpecCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     */
    public Builder mergeBigqueryDateShardedSpec(
        com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value) {
      if (bigqueryDateShardedSpecBuilder_ == null) {
        if (typeSpecCase_ == 15
            && typeSpec_
                != com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec
                    .getDefaultInstance()) {
          typeSpec_ =
              com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.newBuilder(
                      (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          typeSpec_ = value;
        }
        onChanged();
      } else {
        if (typeSpecCase_ == 15) {
          bigqueryDateShardedSpecBuilder_.mergeFrom(value);
        } else {
          bigqueryDateShardedSpecBuilder_.setMessage(value);
        }
      }
      typeSpecCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     */
    public Builder clearBigqueryDateShardedSpec() {
      if (bigqueryDateShardedSpecBuilder_ == null) {
        if (typeSpecCase_ == 15) {
          typeSpecCase_ = 0;
          typeSpec_ = null;
          onChanged();
        }
      } else {
        if (typeSpecCase_ == 15) {
          typeSpecCase_ = 0;
          typeSpec_ = null;
        }
        bigqueryDateShardedSpecBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     */
    public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder
        getBigqueryDateShardedSpecBuilder() {
      return getBigqueryDateShardedSpecFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder
        getBigqueryDateShardedSpecOrBuilder() {
      if ((typeSpecCase_ == 15) && (bigqueryDateShardedSpecBuilder_ != null)) {
        return bigqueryDateShardedSpecBuilder_.getMessageOrBuilder();
      } else {
        if (typeSpecCase_ == 15) {
          return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
        }
        return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Specification for a group of BigQuery tables with name pattern
     * `[prefix]YYYYMMDD`. Context:
     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec,
            com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder,
            com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder>
        getBigqueryDateShardedSpecFieldBuilder() {
      if (bigqueryDateShardedSpecBuilder_ == null) {
        if (!(typeSpecCase_ == 15)) {
          typeSpec_ =
              com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
        }
        bigqueryDateShardedSpecBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec,
                com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder,
                com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder>(
                (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_,
                getParentForChildren(),
                isClean());
        typeSpec_ = null;
      }
      typeSpecCase_ = 15;
      onChanged();
      return bigqueryDateShardedSpecBuilder_;
    }

    private java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * Display information such as title and description. A short name to identify
     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
     * empty string.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     *
     * @return The displayName.
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Display information such as title and description. A short name to identify
     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
     * empty string.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     *
     * @return The bytes for displayName.
     */
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Display information such as title and description. A short name to identify
     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
     * empty string.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     *
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      displayName_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Display information such as title and description. A short name to identify
     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
     * empty string.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000200);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Display information such as title and description. A short name to identify
     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
     * empty string.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     *
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * Entry description, which can consist of several sentences or paragraphs
     * that describe entry contents. Default value is an empty string.
     * </pre>
     *
     * <code>string description = 4;</code>
     *
     * @return The description.
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Entry description, which can consist of several sentences or paragraphs
     * that describe entry contents. Default value is an empty string.
     * </pre>
     *
     * <code>string description = 4;</code>
     *
     * @return The bytes for description.
     */
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Entry description, which can consist of several sentences or paragraphs
     * that describe entry contents. Default value is an empty string.
     * </pre>
     *
     * <code>string description = 4;</code>
     *
     * @param value The description to set.
     * @return This builder for chaining.
     */
    public Builder setDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      description_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Entry description, which can consist of several sentences or paragraphs
     * that describe entry contents. Default value is an empty string.
     * </pre>
     *
     * <code>string description = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDescription() {
      description_ = getDefaultInstance().getDescription();
      bitField0_ = (bitField0_ & ~0x00000400);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Entry description, which can consist of several sentences or paragraphs
     * that describe entry contents. Default value is an empty string.
     * </pre>
     *
     * <code>string description = 4;</code>
     *
     * @param value The bytes for description to set.
     * @return This builder for chaining.
     */
    public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      description_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }

    private com.google.cloud.datacatalog.v1beta1.Schema schema_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.Schema,
            com.google.cloud.datacatalog.v1beta1.Schema.Builder,
            com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder>
        schemaBuilder_;
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     *
     * @return Whether the schema field is set.
     */
    public boolean hasSchema() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     *
     * @return The schema.
     */
    public com.google.cloud.datacatalog.v1beta1.Schema getSchema() {
      if (schemaBuilder_ == null) {
        return schema_ == null
            ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
            : schema_;
      } else {
        return schemaBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     */
    public Builder setSchema(com.google.cloud.datacatalog.v1beta1.Schema value) {
      if (schemaBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        schema_ = value;
      } else {
        schemaBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     */
    public Builder setSchema(com.google.cloud.datacatalog.v1beta1.Schema.Builder builderForValue) {
      if (schemaBuilder_ == null) {
        schema_ = builderForValue.build();
      } else {
        schemaBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     */
    public Builder mergeSchema(com.google.cloud.datacatalog.v1beta1.Schema value) {
      if (schemaBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)
            && schema_ != null
            && schema_ != com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()) {
          getSchemaBuilder().mergeFrom(value);
        } else {
          schema_ = value;
        }
      } else {
        schemaBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     */
    public Builder clearSchema() {
      bitField0_ = (bitField0_ & ~0x00000800);
      schema_ = null;
      if (schemaBuilder_ != null) {
        schemaBuilder_.dispose();
        schemaBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     */
    public com.google.cloud.datacatalog.v1beta1.Schema.Builder getSchemaBuilder() {
      bitField0_ |= 0x00000800;
      onChanged();
      return getSchemaFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     */
    public com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder getSchemaOrBuilder() {
      if (schemaBuilder_ != null) {
        return schemaBuilder_.getMessageOrBuilder();
      } else {
        return schema_ == null
            ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
            : schema_;
      }
    }
    /**
     *
     *
     * <pre>
     * Schema of the entry. An entry might not have any schema attached to it.
     * </pre>
     *
     * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.Schema,
            com.google.cloud.datacatalog.v1beta1.Schema.Builder,
            com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder>
        getSchemaFieldBuilder() {
      if (schemaBuilder_ == null) {
        schemaBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.datacatalog.v1beta1.Schema,
                com.google.cloud.datacatalog.v1beta1.Schema.Builder,
                com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder>(
                getSchema(), getParentForChildren(), isClean());
        schema_ = null;
      }
      return schemaBuilder_;
    }

    private com.google.cloud.datacatalog.v1beta1.SystemTimestamps sourceSystemTimestamps_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.SystemTimestamps,
            com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder,
            com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>
        sourceSystemTimestampsBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the sourceSystemTimestamps field is set.
     */
    public boolean hasSourceSystemTimestamps() {
      return ((bitField0_ & 0x00001000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The sourceSystemTimestamps.
     */
    public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getSourceSystemTimestamps() {
      if (sourceSystemTimestampsBuilder_ == null) {
        return sourceSystemTimestamps_ == null
            ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
            : sourceSystemTimestamps_;
      } else {
        return sourceSystemTimestampsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSourceSystemTimestamps(
        com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) {
      if (sourceSystemTimestampsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sourceSystemTimestamps_ = value;
      } else {
        sourceSystemTimestampsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setSourceSystemTimestamps(
        com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder builderForValue) {
      if (sourceSystemTimestampsBuilder_ == null) {
        sourceSystemTimestamps_ = builderForValue.build();
      } else {
        sourceSystemTimestampsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeSourceSystemTimestamps(
        com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) {
      if (sourceSystemTimestampsBuilder_ == null) {
        if (((bitField0_ & 0x00001000) != 0)
            && sourceSystemTimestamps_ != null
            && sourceSystemTimestamps_
                != com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()) {
          getSourceSystemTimestampsBuilder().mergeFrom(value);
        } else {
          sourceSystemTimestamps_ = value;
        }
      } else {
        sourceSystemTimestampsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearSourceSystemTimestamps() {
      bitField0_ = (bitField0_ & ~0x00001000);
      sourceSystemTimestamps_ = null;
      if (sourceSystemTimestampsBuilder_ != null) {
        sourceSystemTimestampsBuilder_.dispose();
        sourceSystemTimestampsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder
        getSourceSystemTimestampsBuilder() {
      bitField0_ |= 0x00001000;
      onChanged();
      return getSourceSystemTimestampsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder
        getSourceSystemTimestampsOrBuilder() {
      if (sourceSystemTimestampsBuilder_ != null) {
        return sourceSystemTimestampsBuilder_.getMessageOrBuilder();
      } else {
        return sourceSystemTimestamps_ == null
            ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
            : sourceSystemTimestamps_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Timestamps about the underlying resource, not about this Data
     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
     * entries with user_specified_type, this field is optional and defaults to an
     * empty timestamp.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.SystemTimestamps,
            com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder,
            com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>
        getSourceSystemTimestampsFieldBuilder() {
      if (sourceSystemTimestampsBuilder_ == null) {
        sourceSystemTimestampsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.datacatalog.v1beta1.SystemTimestamps,
                com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder,
                com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>(
                getSourceSystemTimestamps(), getParentForChildren(), isClean());
        sourceSystemTimestamps_ = null;
      }
      return sourceSystemTimestampsBuilder_;
    }

    private com.google.cloud.datacatalog.v1beta1.UsageSignal usageSignal_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.UsageSignal,
            com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder,
            com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder>
        usageSignalBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the usageSignal field is set.
     */
    public boolean hasUsageSignal() {
      return ((bitField0_ & 0x00002000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The usageSignal.
     */
    public com.google.cloud.datacatalog.v1beta1.UsageSignal getUsageSignal() {
      if (usageSignalBuilder_ == null) {
        return usageSignal_ == null
            ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance()
            : usageSignal_;
      } else {
        return usageSignalBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUsageSignal(com.google.cloud.datacatalog.v1beta1.UsageSignal value) {
      if (usageSignalBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        usageSignal_ = value;
      } else {
        usageSignalBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUsageSignal(
        com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder builderForValue) {
      if (usageSignalBuilder_ == null) {
        usageSignal_ = builderForValue.build();
      } else {
        usageSignalBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUsageSignal(com.google.cloud.datacatalog.v1beta1.UsageSignal value) {
      if (usageSignalBuilder_ == null) {
        if (((bitField0_ & 0x00002000) != 0)
            && usageSignal_ != null
            && usageSignal_
                != com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance()) {
          getUsageSignalBuilder().mergeFrom(value);
        } else {
          usageSignal_ = value;
        }
      } else {
        usageSignalBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUsageSignal() {
      bitField0_ = (bitField0_ & ~0x00002000);
      usageSignal_ = null;
      if (usageSignalBuilder_ != null) {
        usageSignalBuilder_.dispose();
        usageSignalBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder getUsageSignalBuilder() {
      bitField0_ |= 0x00002000;
      onChanged();
      return getUsageSignalFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder getUsageSignalOrBuilder() {
      if (usageSignalBuilder_ != null) {
        return usageSignalBuilder_.getMessageOrBuilder();
      } else {
        return usageSignal_ == null
            ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance()
            : usageSignal_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Statistics on the usage level of the resource.
     * </pre>
     *
     * <code>
     * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.datacatalog.v1beta1.UsageSignal,
            com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder,
            com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder>
        getUsageSignalFieldBuilder() {
      if (usageSignalBuilder_ == null) {
        usageSignalBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.datacatalog.v1beta1.UsageSignal,
                com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder,
                com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder>(
                getUsageSignal(), getParentForChildren(), isClean());
        usageSignal_ = null;
      }
      return usageSignalBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.Entry)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Entry)
  private static final com.google.cloud.datacatalog.v1beta1.Entry DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.Entry();
  }

  public static com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Entry> PARSER =
      new com.google.protobuf.AbstractParser<Entry>() {
        @java.lang.Override
        public Entry parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<Entry> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<Entry> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
