/*
 * 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/maps/mapsplatformdatasets/v1alpha/dataset.proto

package com.google.maps.mapsplatformdatasets.v1alpha;

/**
 *
 *
 * <pre>
 * A representation of a maps platform dataset.
 * </pre>
 *
 * Protobuf type {@code google.maps.mapsplatformdatasets.v1alpha.Dataset}
 */
public final class Dataset extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.maps.mapsplatformdatasets.v1alpha.Dataset)
    DatasetOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Dataset.newBuilder() to construct.
  private Dataset(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Dataset() {
    name_ = "";
    displayName_ = "";
    description_ = "";
    versionId_ = "";
    usage_ = java.util.Collections.emptyList();
    status_ = 0;
    versionDescription_ = "";
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.maps.mapsplatformdatasets.v1alpha.DatasetProto
        .internal_static_google_maps_mapsplatformdatasets_v1alpha_Dataset_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.maps.mapsplatformdatasets.v1alpha.DatasetProto
        .internal_static_google_maps_mapsplatformdatasets_v1alpha_Dataset_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.maps.mapsplatformdatasets.v1alpha.Dataset.class,
            com.google.maps.mapsplatformdatasets.v1alpha.Dataset.Builder.class);
  }

  private int dataSourceCase_ = 0;

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

  public enum DataSourceCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    LOCAL_FILE_SOURCE(6),
    GCS_SOURCE(7),
    DATASOURCE_NOT_SET(0);
    private final int value;

    private DataSourceCase(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 DataSourceCase valueOf(int value) {
      return forNumber(value);
    }

    public static DataSourceCase forNumber(int value) {
      switch (value) {
        case 6:
          return LOCAL_FILE_SOURCE;
        case 7:
          return GCS_SOURCE;
        case 0:
          return DATASOURCE_NOT_SET;
        default:
          return null;
      }
    }

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

  public DataSourceCase getDataSourceCase() {
    return DataSourceCase.forNumber(dataSourceCase_);
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Resource name,
   * projects/{project}/datasets/{dataset_id}
   * </pre>
   *
   * <code>string name = 1;</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>
   * Resource name,
   * projects/{project}/datasets/{dataset_id}
   * </pre>
   *
   * <code>string name = 1;</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 DISPLAY_NAME_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * Human readable name, shown in the console UI. Set by customer.
   * </pre>
   *
   * <code>string display_name = 2;</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>
   * Human readable name, shown in the console UI. Set by customer.
   * </pre>
   *
   * <code>string display_name = 2;</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 = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object description_ = "";
  /**
   *
   *
   * <pre>
   * A description of this dataset; set by the customer.
   * </pre>
   *
   * <code>string description = 3;</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>
   * A description of this dataset; set by the customer.
   * </pre>
   *
   * <code>string description = 3;</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 VERSION_ID_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object versionId_ = "";
  /**
   *
   *
   * <pre>
   * The version of the dataset.
   * </pre>
   *
   * <code>string version_id = 4;</code>
   *
   * @return The versionId.
   */
  @java.lang.Override
  public java.lang.String getVersionId() {
    java.lang.Object ref = versionId_;
    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();
      versionId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The version of the dataset.
   * </pre>
   *
   * <code>string version_id = 4;</code>
   *
   * @return The bytes for versionId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVersionIdBytes() {
    java.lang.Object ref = versionId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      versionId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USAGE_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private java.util.List<java.lang.Integer> usage_;

  private static final com.google.protobuf.Internal.ListAdapter.Converter<
          java.lang.Integer, com.google.maps.mapsplatformdatasets.v1alpha.Usage>
      usage_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.maps.mapsplatformdatasets.v1alpha.Usage>() {
            public com.google.maps.mapsplatformdatasets.v1alpha.Usage convert(
                java.lang.Integer from) {
              com.google.maps.mapsplatformdatasets.v1alpha.Usage result =
                  com.google.maps.mapsplatformdatasets.v1alpha.Usage.forNumber(from);
              return result == null
                  ? com.google.maps.mapsplatformdatasets.v1alpha.Usage.UNRECOGNIZED
                  : result;
            }
          };
  /**
   *
   *
   * <pre>
   * Specified use case(s) for this dataset.
   * </pre>
   *
   * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
   *
   * @return A list containing the usage.
   */
  @java.lang.Override
  public java.util.List<com.google.maps.mapsplatformdatasets.v1alpha.Usage> getUsageList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.maps.mapsplatformdatasets.v1alpha.Usage>(
        usage_, usage_converter_);
  }
  /**
   *
   *
   * <pre>
   * Specified use case(s) for this dataset.
   * </pre>
   *
   * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
   *
   * @return The count of usage.
   */
  @java.lang.Override
  public int getUsageCount() {
    return usage_.size();
  }
  /**
   *
   *
   * <pre>
   * Specified use case(s) for this dataset.
   * </pre>
   *
   * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
   *
   * @param index The index of the element to return.
   * @return The usage at the given index.
   */
  @java.lang.Override
  public com.google.maps.mapsplatformdatasets.v1alpha.Usage getUsage(int index) {
    return usage_converter_.convert(usage_.get(index));
  }
  /**
   *
   *
   * <pre>
   * Specified use case(s) for this dataset.
   * </pre>
   *
   * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
   *
   * @return A list containing the enum numeric values on the wire for usage.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer> getUsageValueList() {
    return usage_;
  }
  /**
   *
   *
   * <pre>
   * Specified use case(s) for this dataset.
   * </pre>
   *
   * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
   *
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of usage at the given index.
   */
  @java.lang.Override
  public int getUsageValue(int index) {
    return usage_.get(index);
  }

  private int usageMemoizedSerializedSize;

  public static final int LOCAL_FILE_SOURCE_FIELD_NUMBER = 6;
  /**
   *
   *
   * <pre>
   * A local file source for the dataset for a single upload.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
   *
   * @return Whether the localFileSource field is set.
   */
  @java.lang.Override
  public boolean hasLocalFileSource() {
    return dataSourceCase_ == 6;
  }
  /**
   *
   *
   * <pre>
   * A local file source for the dataset for a single upload.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
   *
   * @return The localFileSource.
   */
  @java.lang.Override
  public com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource getLocalFileSource() {
    if (dataSourceCase_ == 6) {
      return (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_;
    }
    return com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * A local file source for the dataset for a single upload.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
   */
  @java.lang.Override
  public com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSourceOrBuilder
      getLocalFileSourceOrBuilder() {
    if (dataSourceCase_ == 6) {
      return (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_;
    }
    return com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.getDefaultInstance();
  }

  public static final int GCS_SOURCE_FIELD_NUMBER = 7;
  /**
   *
   *
   * <pre>
   * A Google Cloud Storage file source for the dataset for a single upload.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
   *
   * @return Whether the gcsSource field is set.
   */
  @java.lang.Override
  public boolean hasGcsSource() {
    return dataSourceCase_ == 7;
  }
  /**
   *
   *
   * <pre>
   * A Google Cloud Storage file source for the dataset for a single upload.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
   *
   * @return The gcsSource.
   */
  @java.lang.Override
  public com.google.maps.mapsplatformdatasets.v1alpha.GcsSource getGcsSource() {
    if (dataSourceCase_ == 7) {
      return (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_;
    }
    return com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * A Google Cloud Storage file source for the dataset for a single upload.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
   */
  @java.lang.Override
  public com.google.maps.mapsplatformdatasets.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() {
    if (dataSourceCase_ == 7) {
      return (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_;
    }
    return com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.getDefaultInstance();
  }

  public static final int STATUS_FIELD_NUMBER = 12;
  private int status_ = 0;
  /**
   *
   *
   * <pre>
   * The status of the import of the latest dataset version.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.State status = 12;</code>
   *
   * @return The enum numeric value on the wire for status.
   */
  @java.lang.Override
  public int getStatusValue() {
    return status_;
  }
  /**
   *
   *
   * <pre>
   * The status of the import of the latest dataset version.
   * </pre>
   *
   * <code>.google.maps.mapsplatformdatasets.v1alpha.State status = 12;</code>
   *
   * @return The status.
   */
  @java.lang.Override
  public com.google.maps.mapsplatformdatasets.v1alpha.State getStatus() {
    com.google.maps.mapsplatformdatasets.v1alpha.State result =
        com.google.maps.mapsplatformdatasets.v1alpha.State.forNumber(status_);
    return result == null
        ? com.google.maps.mapsplatformdatasets.v1alpha.State.UNRECOGNIZED
        : result;
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 8;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * Output only. Time when the dataset was first created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Time when the dataset was first created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Time when the dataset was first created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int UPDATE_TIME_FIELD_NUMBER = 9;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   *
   *
   * <pre>
   * Output only. Time when the dataset metadata was last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  @java.lang.Override
  public boolean hasUpdateTime() {
    return updateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Time when the dataset metadata was last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getUpdateTime() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Time when the dataset metadata was last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }

  public static final int VERSION_CREATE_TIME_FIELD_NUMBER = 10;
  private com.google.protobuf.Timestamp versionCreateTime_;
  /**
   *
   *
   * <pre>
   * Output only. Time when this version of dataset was created. (It happened when importing
   * data to the dataset)
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the versionCreateTime field is set.
   */
  @java.lang.Override
  public boolean hasVersionCreateTime() {
    return versionCreateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Time when this version of dataset was created. (It happened when importing
   * data to the dataset)
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The versionCreateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getVersionCreateTime() {
    return versionCreateTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : versionCreateTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Time when this version of dataset was created. (It happened when importing
   * data to the dataset)
   * </pre>
   *
   * <code>
   * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() {
    return versionCreateTime_ == null
        ? com.google.protobuf.Timestamp.getDefaultInstance()
        : versionCreateTime_;
  }

  public static final int VERSION_DESCRIPTION_FIELD_NUMBER = 11;

  @SuppressWarnings("serial")
  private volatile java.lang.Object versionDescription_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The description for this version of dataset. It is provided when importing
   * data to the dataset.
   * </pre>
   *
   * <code>string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The versionDescription.
   */
  @java.lang.Override
  public java.lang.String getVersionDescription() {
    java.lang.Object ref = versionDescription_;
    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();
      versionDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The description for this version of dataset. It is provided when importing
   * data to the dataset.
   * </pre>
   *
   * <code>string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for versionDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVersionDescriptionBytes() {
    java.lang.Object ref = versionDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      versionDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, versionId_);
    }
    if (getUsageList().size() > 0) {
      output.writeUInt32NoTag(42);
      output.writeUInt32NoTag(usageMemoizedSerializedSize);
    }
    for (int i = 0; i < usage_.size(); i++) {
      output.writeEnumNoTag(usage_.get(i));
    }
    if (dataSourceCase_ == 6) {
      output.writeMessage(
          6, (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_);
    }
    if (dataSourceCase_ == 7) {
      output.writeMessage(7, (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_);
    }
    if (createTime_ != null) {
      output.writeMessage(8, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(9, getUpdateTime());
    }
    if (versionCreateTime_ != null) {
      output.writeMessage(10, getVersionCreateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, versionDescription_);
    }
    if (status_
        != com.google.maps.mapsplatformdatasets.v1alpha.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(12, status_);
    }
    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, versionId_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < usage_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(usage_.get(i));
      }
      size += dataSize;
      if (!getUsageList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      usageMemoizedSerializedSize = dataSize;
    }
    if (dataSourceCase_ == 6) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              6, (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_);
    }
    if (dataSourceCase_ == 7) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              7, (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_);
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime());
    }
    if (versionCreateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getVersionCreateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, versionDescription_);
    }
    if (status_
        != com.google.maps.mapsplatformdatasets.v1alpha.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, status_);
    }
    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.maps.mapsplatformdatasets.v1alpha.Dataset)) {
      return super.equals(obj);
    }
    com.google.maps.mapsplatformdatasets.v1alpha.Dataset other =
        (com.google.maps.mapsplatformdatasets.v1alpha.Dataset) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (!getDescription().equals(other.getDescription())) return false;
    if (!getVersionId().equals(other.getVersionId())) return false;
    if (!usage_.equals(other.usage_)) return false;
    if (status_ != other.status_) return false;
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (hasVersionCreateTime() != other.hasVersionCreateTime()) return false;
    if (hasVersionCreateTime()) {
      if (!getVersionCreateTime().equals(other.getVersionCreateTime())) return false;
    }
    if (!getVersionDescription().equals(other.getVersionDescription())) return false;
    if (!getDataSourceCase().equals(other.getDataSourceCase())) return false;
    switch (dataSourceCase_) {
      case 6:
        if (!getLocalFileSource().equals(other.getLocalFileSource())) return false;
        break;
      case 7:
        if (!getGcsSource().equals(other.getGcsSource())) 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) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    hash = (37 * hash) + VERSION_ID_FIELD_NUMBER;
    hash = (53 * hash) + getVersionId().hashCode();
    if (getUsageCount() > 0) {
      hash = (37 * hash) + USAGE_FIELD_NUMBER;
      hash = (53 * hash) + usage_.hashCode();
    }
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + status_;
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    if (hasVersionCreateTime()) {
      hash = (37 * hash) + VERSION_CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getVersionCreateTime().hashCode();
    }
    hash = (37 * hash) + VERSION_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getVersionDescription().hashCode();
    switch (dataSourceCase_) {
      case 6:
        hash = (37 * hash) + LOCAL_FILE_SOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getLocalFileSource().hashCode();
        break;
      case 7:
        hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getGcsSource().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset 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.maps.mapsplatformdatasets.v1alpha.Dataset parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset 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.maps.mapsplatformdatasets.v1alpha.Dataset parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset 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.maps.mapsplatformdatasets.v1alpha.Dataset parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset 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.maps.mapsplatformdatasets.v1alpha.Dataset 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>
   * A representation of a maps platform dataset.
   * </pre>
   *
   * Protobuf type {@code google.maps.mapsplatformdatasets.v1alpha.Dataset}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.maps.mapsplatformdatasets.v1alpha.Dataset)
      com.google.maps.mapsplatformdatasets.v1alpha.DatasetOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.maps.mapsplatformdatasets.v1alpha.DatasetProto
          .internal_static_google_maps_mapsplatformdatasets_v1alpha_Dataset_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.maps.mapsplatformdatasets.v1alpha.DatasetProto
          .internal_static_google_maps_mapsplatformdatasets_v1alpha_Dataset_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.maps.mapsplatformdatasets.v1alpha.Dataset.class,
              com.google.maps.mapsplatformdatasets.v1alpha.Dataset.Builder.class);
    }

    // Construct using com.google.maps.mapsplatformdatasets.v1alpha.Dataset.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      displayName_ = "";
      description_ = "";
      versionId_ = "";
      usage_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000010);
      if (localFileSourceBuilder_ != null) {
        localFileSourceBuilder_.clear();
      }
      if (gcsSourceBuilder_ != null) {
        gcsSourceBuilder_.clear();
      }
      status_ = 0;
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      versionCreateTime_ = null;
      if (versionCreateTimeBuilder_ != null) {
        versionCreateTimeBuilder_.dispose();
        versionCreateTimeBuilder_ = null;
      }
      versionDescription_ = "";
      dataSourceCase_ = 0;
      dataSource_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.maps.mapsplatformdatasets.v1alpha.DatasetProto
          .internal_static_google_maps_mapsplatformdatasets_v1alpha_Dataset_descriptor;
    }

    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.Dataset getDefaultInstanceForType() {
      return com.google.maps.mapsplatformdatasets.v1alpha.Dataset.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.Dataset build() {
      com.google.maps.mapsplatformdatasets.v1alpha.Dataset result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.Dataset buildPartial() {
      com.google.maps.mapsplatformdatasets.v1alpha.Dataset result =
          new com.google.maps.mapsplatformdatasets.v1alpha.Dataset(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.maps.mapsplatformdatasets.v1alpha.Dataset result) {
      if (((bitField0_ & 0x00000010) != 0)) {
        usage_ = java.util.Collections.unmodifiableList(usage_);
        bitField0_ = (bitField0_ & ~0x00000010);
      }
      result.usage_ = usage_;
    }

    private void buildPartial0(com.google.maps.mapsplatformdatasets.v1alpha.Dataset result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.description_ = description_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.versionId_ = versionId_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.status_ = status_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.versionCreateTime_ =
            versionCreateTimeBuilder_ == null
                ? versionCreateTime_
                : versionCreateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.versionDescription_ = versionDescription_;
      }
    }

    private void buildPartialOneofs(com.google.maps.mapsplatformdatasets.v1alpha.Dataset result) {
      result.dataSourceCase_ = dataSourceCase_;
      result.dataSource_ = this.dataSource_;
      if (dataSourceCase_ == 6 && localFileSourceBuilder_ != null) {
        result.dataSource_ = localFileSourceBuilder_.build();
      }
      if (dataSourceCase_ == 7 && gcsSourceBuilder_ != null) {
        result.dataSource_ = gcsSourceBuilder_.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.maps.mapsplatformdatasets.v1alpha.Dataset) {
        return mergeFrom((com.google.maps.mapsplatformdatasets.v1alpha.Dataset) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.maps.mapsplatformdatasets.v1alpha.Dataset other) {
      if (other == com.google.maps.mapsplatformdatasets.v1alpha.Dataset.getDefaultInstance())
        return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getVersionId().isEmpty()) {
        versionId_ = other.versionId_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.usage_.isEmpty()) {
        if (usage_.isEmpty()) {
          usage_ = other.usage_;
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          ensureUsageIsMutable();
          usage_.addAll(other.usage_);
        }
        onChanged();
      }
      if (other.status_ != 0) {
        setStatusValue(other.getStatusValue());
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      if (other.hasVersionCreateTime()) {
        mergeVersionCreateTime(other.getVersionCreateTime());
      }
      if (!other.getVersionDescription().isEmpty()) {
        versionDescription_ = other.versionDescription_;
        bitField0_ |= 0x00000800;
        onChanged();
      }
      switch (other.getDataSourceCase()) {
        case LOCAL_FILE_SOURCE:
          {
            mergeLocalFileSource(other.getLocalFileSource());
            break;
          }
        case GCS_SOURCE:
          {
            mergeGcsSource(other.getGcsSource());
            break;
          }
        case DATASOURCE_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 18:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                description_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                versionId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 40:
              {
                int tmpRaw = input.readEnum();
                ensureUsageIsMutable();
                usage_.add(tmpRaw);
                break;
              } // case 40
            case 42:
              {
                int length = input.readRawVarint32();
                int oldLimit = input.pushLimit(length);
                while (input.getBytesUntilLimit() > 0) {
                  int tmpRaw = input.readEnum();
                  ensureUsageIsMutable();
                  usage_.add(tmpRaw);
                }
                input.popLimit(oldLimit);
                break;
              } // case 42
            case 50:
              {
                input.readMessage(getLocalFileSourceFieldBuilder().getBuilder(), extensionRegistry);
                dataSourceCase_ = 6;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry);
                dataSourceCase_ = 7;
                break;
              } // case 58
            case 66:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 66
            case 74:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 74
            case 82:
              {
                input.readMessage(
                    getVersionCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000400;
                break;
              } // case 82
            case 90:
              {
                versionDescription_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000800;
                break;
              } // case 90
            case 96:
              {
                status_ = input.readEnum();
                bitField0_ |= 0x00000080;
                break;
              } // case 96
            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 dataSourceCase_ = 0;
    private java.lang.Object dataSource_;

    public DataSourceCase getDataSourceCase() {
      return DataSourceCase.forNumber(dataSourceCase_);
    }

    public Builder clearDataSource() {
      dataSourceCase_ = 0;
      dataSource_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Resource name,
     * projects/{project}/datasets/{dataset_id}
     * </pre>
     *
     * <code>string name = 1;</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>
     * Resource name,
     * projects/{project}/datasets/{dataset_id}
     * </pre>
     *
     * <code>string name = 1;</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>
     * Resource name,
     * projects/{project}/datasets/{dataset_id}
     * </pre>
     *
     * <code>string name = 1;</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>
     * Resource name,
     * projects/{project}/datasets/{dataset_id}
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Resource name,
     * projects/{project}/datasets/{dataset_id}
     * </pre>
     *
     * <code>string name = 1;</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 displayName_ = "";
    /**
     *
     *
     * <pre>
     * Human readable name, shown in the console UI. Set by customer.
     * </pre>
     *
     * <code>string display_name = 2;</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>
     * Human readable name, shown in the console UI. Set by customer.
     * </pre>
     *
     * <code>string display_name = 2;</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>
     * Human readable name, shown in the console UI. Set by customer.
     * </pre>
     *
     * <code>string display_name = 2;</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_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Human readable name, shown in the console UI. Set by customer.
     * </pre>
     *
     * <code>string display_name = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Human readable name, shown in the console UI. Set by customer.
     * </pre>
     *
     * <code>string display_name = 2;</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_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * A description of this dataset; set by the customer.
     * </pre>
     *
     * <code>string description = 3;</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>
     * A description of this dataset; set by the customer.
     * </pre>
     *
     * <code>string description = 3;</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>
     * A description of this dataset; set by the customer.
     * </pre>
     *
     * <code>string description = 3;</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_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A description of this dataset; set by the customer.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDescription() {
      description_ = getDefaultInstance().getDescription();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * A description of this dataset; set by the customer.
     * </pre>
     *
     * <code>string description = 3;</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_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object versionId_ = "";
    /**
     *
     *
     * <pre>
     * The version of the dataset.
     * </pre>
     *
     * <code>string version_id = 4;</code>
     *
     * @return The versionId.
     */
    public java.lang.String getVersionId() {
      java.lang.Object ref = versionId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        versionId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The version of the dataset.
     * </pre>
     *
     * <code>string version_id = 4;</code>
     *
     * @return The bytes for versionId.
     */
    public com.google.protobuf.ByteString getVersionIdBytes() {
      java.lang.Object ref = versionId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        versionId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The version of the dataset.
     * </pre>
     *
     * <code>string version_id = 4;</code>
     *
     * @param value The versionId to set.
     * @return This builder for chaining.
     */
    public Builder setVersionId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      versionId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The version of the dataset.
     * </pre>
     *
     * <code>string version_id = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVersionId() {
      versionId_ = getDefaultInstance().getVersionId();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The version of the dataset.
     * </pre>
     *
     * <code>string version_id = 4;</code>
     *
     * @param value The bytes for versionId to set.
     * @return This builder for chaining.
     */
    public Builder setVersionIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      versionId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.util.List<java.lang.Integer> usage_ = java.util.Collections.emptyList();

    private void ensureUsageIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        usage_ = new java.util.ArrayList<java.lang.Integer>(usage_);
        bitField0_ |= 0x00000010;
      }
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @return A list containing the usage.
     */
    public java.util.List<com.google.maps.mapsplatformdatasets.v1alpha.Usage> getUsageList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.maps.mapsplatformdatasets.v1alpha.Usage>(
          usage_, usage_converter_);
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @return The count of usage.
     */
    public int getUsageCount() {
      return usage_.size();
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param index The index of the element to return.
     * @return The usage at the given index.
     */
    public com.google.maps.mapsplatformdatasets.v1alpha.Usage getUsage(int index) {
      return usage_converter_.convert(usage_.get(index));
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param index The index to set the value at.
     * @param value The usage to set.
     * @return This builder for chaining.
     */
    public Builder setUsage(int index, com.google.maps.mapsplatformdatasets.v1alpha.Usage value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureUsageIsMutable();
      usage_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param value The usage to add.
     * @return This builder for chaining.
     */
    public Builder addUsage(com.google.maps.mapsplatformdatasets.v1alpha.Usage value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureUsageIsMutable();
      usage_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param values The usage to add.
     * @return This builder for chaining.
     */
    public Builder addAllUsage(
        java.lang.Iterable<? extends com.google.maps.mapsplatformdatasets.v1alpha.Usage> values) {
      ensureUsageIsMutable();
      for (com.google.maps.mapsplatformdatasets.v1alpha.Usage value : values) {
        usage_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUsage() {
      usage_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @return A list containing the enum numeric values on the wire for usage.
     */
    public java.util.List<java.lang.Integer> getUsageValueList() {
      return java.util.Collections.unmodifiableList(usage_);
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of usage at the given index.
     */
    public int getUsageValue(int index) {
      return usage_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for usage to set.
     * @return This builder for chaining.
     */
    public Builder setUsageValue(int index, int value) {
      ensureUsageIsMutable();
      usage_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param value The enum numeric value on the wire for usage to add.
     * @return This builder for chaining.
     */
    public Builder addUsageValue(int value) {
      ensureUsageIsMutable();
      usage_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Specified use case(s) for this dataset.
     * </pre>
     *
     * <code>repeated .google.maps.mapsplatformdatasets.v1alpha.Usage usage = 5;</code>
     *
     * @param values The enum numeric values on the wire for usage to add.
     * @return This builder for chaining.
     */
    public Builder addAllUsageValue(java.lang.Iterable<java.lang.Integer> values) {
      ensureUsageIsMutable();
      for (int value : values) {
        usage_.add(value);
      }
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource,
            com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.Builder,
            com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSourceOrBuilder>
        localFileSourceBuilder_;
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     *
     * @return Whether the localFileSource field is set.
     */
    @java.lang.Override
    public boolean hasLocalFileSource() {
      return dataSourceCase_ == 6;
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     *
     * @return The localFileSource.
     */
    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource getLocalFileSource() {
      if (localFileSourceBuilder_ == null) {
        if (dataSourceCase_ == 6) {
          return (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_;
        }
        return com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.getDefaultInstance();
      } else {
        if (dataSourceCase_ == 6) {
          return localFileSourceBuilder_.getMessage();
        }
        return com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     */
    public Builder setLocalFileSource(
        com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource value) {
      if (localFileSourceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dataSource_ = value;
        onChanged();
      } else {
        localFileSourceBuilder_.setMessage(value);
      }
      dataSourceCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     */
    public Builder setLocalFileSource(
        com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.Builder builderForValue) {
      if (localFileSourceBuilder_ == null) {
        dataSource_ = builderForValue.build();
        onChanged();
      } else {
        localFileSourceBuilder_.setMessage(builderForValue.build());
      }
      dataSourceCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     */
    public Builder mergeLocalFileSource(
        com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource value) {
      if (localFileSourceBuilder_ == null) {
        if (dataSourceCase_ == 6
            && dataSource_
                != com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource
                    .getDefaultInstance()) {
          dataSource_ =
              com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.newBuilder(
                      (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          dataSource_ = value;
        }
        onChanged();
      } else {
        if (dataSourceCase_ == 6) {
          localFileSourceBuilder_.mergeFrom(value);
        } else {
          localFileSourceBuilder_.setMessage(value);
        }
      }
      dataSourceCase_ = 6;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     */
    public Builder clearLocalFileSource() {
      if (localFileSourceBuilder_ == null) {
        if (dataSourceCase_ == 6) {
          dataSourceCase_ = 0;
          dataSource_ = null;
          onChanged();
        }
      } else {
        if (dataSourceCase_ == 6) {
          dataSourceCase_ = 0;
          dataSource_ = null;
        }
        localFileSourceBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     */
    public com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.Builder
        getLocalFileSourceBuilder() {
      return getLocalFileSourceFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     */
    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSourceOrBuilder
        getLocalFileSourceOrBuilder() {
      if ((dataSourceCase_ == 6) && (localFileSourceBuilder_ != null)) {
        return localFileSourceBuilder_.getMessageOrBuilder();
      } else {
        if (dataSourceCase_ == 6) {
          return (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_;
        }
        return com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A local file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource local_file_source = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource,
            com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.Builder,
            com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSourceOrBuilder>
        getLocalFileSourceFieldBuilder() {
      if (localFileSourceBuilder_ == null) {
        if (!(dataSourceCase_ == 6)) {
          dataSource_ =
              com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.getDefaultInstance();
        }
        localFileSourceBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource,
                com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource.Builder,
                com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSourceOrBuilder>(
                (com.google.maps.mapsplatformdatasets.v1alpha.LocalFileSource) dataSource_,
                getParentForChildren(),
                isClean());
        dataSource_ = null;
      }
      dataSourceCase_ = 6;
      onChanged();
      return localFileSourceBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.maps.mapsplatformdatasets.v1alpha.GcsSource,
            com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.Builder,
            com.google.maps.mapsplatformdatasets.v1alpha.GcsSourceOrBuilder>
        gcsSourceBuilder_;
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     *
     * @return Whether the gcsSource field is set.
     */
    @java.lang.Override
    public boolean hasGcsSource() {
      return dataSourceCase_ == 7;
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     *
     * @return The gcsSource.
     */
    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.GcsSource getGcsSource() {
      if (gcsSourceBuilder_ == null) {
        if (dataSourceCase_ == 7) {
          return (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_;
        }
        return com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.getDefaultInstance();
      } else {
        if (dataSourceCase_ == 7) {
          return gcsSourceBuilder_.getMessage();
        }
        return com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     */
    public Builder setGcsSource(com.google.maps.mapsplatformdatasets.v1alpha.GcsSource value) {
      if (gcsSourceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dataSource_ = value;
        onChanged();
      } else {
        gcsSourceBuilder_.setMessage(value);
      }
      dataSourceCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     */
    public Builder setGcsSource(
        com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.Builder builderForValue) {
      if (gcsSourceBuilder_ == null) {
        dataSource_ = builderForValue.build();
        onChanged();
      } else {
        gcsSourceBuilder_.setMessage(builderForValue.build());
      }
      dataSourceCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     */
    public Builder mergeGcsSource(com.google.maps.mapsplatformdatasets.v1alpha.GcsSource value) {
      if (gcsSourceBuilder_ == null) {
        if (dataSourceCase_ == 7
            && dataSource_
                != com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.getDefaultInstance()) {
          dataSource_ =
              com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.newBuilder(
                      (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          dataSource_ = value;
        }
        onChanged();
      } else {
        if (dataSourceCase_ == 7) {
          gcsSourceBuilder_.mergeFrom(value);
        } else {
          gcsSourceBuilder_.setMessage(value);
        }
      }
      dataSourceCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     */
    public Builder clearGcsSource() {
      if (gcsSourceBuilder_ == null) {
        if (dataSourceCase_ == 7) {
          dataSourceCase_ = 0;
          dataSource_ = null;
          onChanged();
        }
      } else {
        if (dataSourceCase_ == 7) {
          dataSourceCase_ = 0;
          dataSource_ = null;
        }
        gcsSourceBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     */
    public com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.Builder getGcsSourceBuilder() {
      return getGcsSourceFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     */
    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() {
      if ((dataSourceCase_ == 7) && (gcsSourceBuilder_ != null)) {
        return gcsSourceBuilder_.getMessageOrBuilder();
      } else {
        if (dataSourceCase_ == 7) {
          return (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_;
        }
        return com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud Storage file source for the dataset for a single upload.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.GcsSource gcs_source = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.maps.mapsplatformdatasets.v1alpha.GcsSource,
            com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.Builder,
            com.google.maps.mapsplatformdatasets.v1alpha.GcsSourceOrBuilder>
        getGcsSourceFieldBuilder() {
      if (gcsSourceBuilder_ == null) {
        if (!(dataSourceCase_ == 7)) {
          dataSource_ = com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.getDefaultInstance();
        }
        gcsSourceBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.maps.mapsplatformdatasets.v1alpha.GcsSource,
                com.google.maps.mapsplatformdatasets.v1alpha.GcsSource.Builder,
                com.google.maps.mapsplatformdatasets.v1alpha.GcsSourceOrBuilder>(
                (com.google.maps.mapsplatformdatasets.v1alpha.GcsSource) dataSource_,
                getParentForChildren(),
                isClean());
        dataSource_ = null;
      }
      dataSourceCase_ = 7;
      onChanged();
      return gcsSourceBuilder_;
    }

    private int status_ = 0;
    /**
     *
     *
     * <pre>
     * The status of the import of the latest dataset version.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.State status = 12;</code>
     *
     * @return The enum numeric value on the wire for status.
     */
    @java.lang.Override
    public int getStatusValue() {
      return status_;
    }
    /**
     *
     *
     * <pre>
     * The status of the import of the latest dataset version.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.State status = 12;</code>
     *
     * @param value The enum numeric value on the wire for status to set.
     * @return This builder for chaining.
     */
    public Builder setStatusValue(int value) {
      status_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The status of the import of the latest dataset version.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.State status = 12;</code>
     *
     * @return The status.
     */
    @java.lang.Override
    public com.google.maps.mapsplatformdatasets.v1alpha.State getStatus() {
      com.google.maps.mapsplatformdatasets.v1alpha.State result =
          com.google.maps.mapsplatformdatasets.v1alpha.State.forNumber(status_);
      return result == null
          ? com.google.maps.mapsplatformdatasets.v1alpha.State.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The status of the import of the latest dataset version.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.State status = 12;</code>
     *
     * @param value The status to set.
     * @return This builder for chaining.
     */
    public Builder setStatus(com.google.maps.mapsplatformdatasets.v1alpha.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000080;
      status_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The status of the import of the latest dataset version.
     * </pre>
     *
     * <code>.google.maps.mapsplatformdatasets.v1alpha.State status = 12;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearStatus() {
      bitField0_ = (bitField0_ & ~0x00000080);
      status_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
      } else {
        createTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000100);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset was first created.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.Timestamp updateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        updateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the updateTime field is set.
     */
    public boolean hasUpdateTime() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The updateTime.
     */
    public com.google.protobuf.Timestamp getUpdateTime() {
      if (updateTimeBuilder_ == null) {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      } else {
        return updateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        updateTime_ = value;
      } else {
        updateTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (updateTimeBuilder_ == null) {
        updateTime_ = builderForValue.build();
      } else {
        updateTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0)
            && updateTime_ != null
            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getUpdateTimeBuilder().mergeFrom(value);
        } else {
          updateTime_ = value;
        }
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUpdateTime() {
      bitField0_ = (bitField0_ & ~0x00000200);
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      if (updateTimeBuilder_ != null) {
        return updateTimeBuilder_.getMessageOrBuilder();
      } else {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when the dataset metadata was last updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getUpdateTimeFieldBuilder() {
      if (updateTimeBuilder_ == null) {
        updateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getUpdateTime(), getParentForChildren(), isClean());
        updateTime_ = null;
      }
      return updateTimeBuilder_;
    }

    private com.google.protobuf.Timestamp versionCreateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        versionCreateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the versionCreateTime field is set.
     */
    public boolean hasVersionCreateTime() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The versionCreateTime.
     */
    public com.google.protobuf.Timestamp getVersionCreateTime() {
      if (versionCreateTimeBuilder_ == null) {
        return versionCreateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : versionCreateTime_;
      } else {
        return versionCreateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) {
      if (versionCreateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        versionCreateTime_ = value;
      } else {
        versionCreateTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (versionCreateTimeBuilder_ == null) {
        versionCreateTime_ = builderForValue.build();
      } else {
        versionCreateTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) {
      if (versionCreateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000400) != 0)
            && versionCreateTime_ != null
            && versionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getVersionCreateTimeBuilder().mergeFrom(value);
        } else {
          versionCreateTime_ = value;
        }
      } else {
        versionCreateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearVersionCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000400);
      versionCreateTime_ = null;
      if (versionCreateTimeBuilder_ != null) {
        versionCreateTimeBuilder_.dispose();
        versionCreateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getVersionCreateTimeBuilder() {
      bitField0_ |= 0x00000400;
      onChanged();
      return getVersionCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() {
      if (versionCreateTimeBuilder_ != null) {
        return versionCreateTimeBuilder_.getMessageOrBuilder();
      } else {
        return versionCreateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : versionCreateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Time when this version of dataset was created. (It happened when importing
     * data to the dataset)
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp version_create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getVersionCreateTimeFieldBuilder() {
      if (versionCreateTimeBuilder_ == null) {
        versionCreateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getVersionCreateTime(), getParentForChildren(), isClean());
        versionCreateTime_ = null;
      }
      return versionCreateTimeBuilder_;
    }

    private java.lang.Object versionDescription_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The description for this version of dataset. It is provided when importing
     * data to the dataset.
     * </pre>
     *
     * <code>string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The versionDescription.
     */
    public java.lang.String getVersionDescription() {
      java.lang.Object ref = versionDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        versionDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The description for this version of dataset. It is provided when importing
     * data to the dataset.
     * </pre>
     *
     * <code>string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for versionDescription.
     */
    public com.google.protobuf.ByteString getVersionDescriptionBytes() {
      java.lang.Object ref = versionDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        versionDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The description for this version of dataset. It is provided when importing
     * data to the dataset.
     * </pre>
     *
     * <code>string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The versionDescription to set.
     * @return This builder for chaining.
     */
    public Builder setVersionDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      versionDescription_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The description for this version of dataset. It is provided when importing
     * data to the dataset.
     * </pre>
     *
     * <code>string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVersionDescription() {
      versionDescription_ = getDefaultInstance().getVersionDescription();
      bitField0_ = (bitField0_ & ~0x00000800);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The description for this version of dataset. It is provided when importing
     * data to the dataset.
     * </pre>
     *
     * <code>string version_description = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for versionDescription to set.
     * @return This builder for chaining.
     */
    public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      versionDescription_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }

    @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.maps.mapsplatformdatasets.v1alpha.Dataset)
  }

  // @@protoc_insertion_point(class_scope:google.maps.mapsplatformdatasets.v1alpha.Dataset)
  private static final com.google.maps.mapsplatformdatasets.v1alpha.Dataset DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.maps.mapsplatformdatasets.v1alpha.Dataset();
  }

  public static com.google.maps.mapsplatformdatasets.v1alpha.Dataset getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Dataset> PARSER =
      new com.google.protobuf.AbstractParser<Dataset>() {
        @java.lang.Override
        public Dataset 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<Dataset> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.maps.mapsplatformdatasets.v1alpha.Dataset getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
