// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/bigtable/admin/v2/table.proto

package com.google.bigtable.admin.v2;

/**
 * <pre>
 * A collection of user data indexed by row, column, and timestamp.
 * Each table is served using the resources of its parent cluster.
 * </pre>
 *
 * Protobuf type {@code google.bigtable.admin.v2.Table}
 */
public  final class Table extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Table)
    TableOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Table.newBuilder() to construct.
  private Table(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Table() {
    name_ = "";
    granularity_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Table(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            name_ = s;
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              clusterStates_ = com.google.protobuf.MapField.newMapField(
                  ClusterStatesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000002;
            }
            com.google.protobuf.MapEntry<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>
            clusterStates__ = input.readMessage(
                ClusterStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            clusterStates_.getMutableMap().put(
                clusterStates__.getKey(), clusterStates__.getValue());
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              columnFamilies_ = com.google.protobuf.MapField.newMapField(
                  ColumnFamiliesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000004;
            }
            com.google.protobuf.MapEntry<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily>
            columnFamilies__ = input.readMessage(
                ColumnFamiliesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            columnFamilies_.getMutableMap().put(
                columnFamilies__.getKey(), columnFamilies__.getValue());
            break;
          }
          case 32: {
            int rawValue = input.readEnum();

            granularity_ = rawValue;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 2:
        return internalGetClusterStates();
      case 3:
        return internalGetColumnFamilies();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.bigtable.admin.v2.Table.class, com.google.bigtable.admin.v2.Table.Builder.class);
  }

  /**
   * <pre>
   * Possible timestamp granularities to use when keeping multiple versions
   * of data in a table.
   * </pre>
   *
   * Protobuf enum {@code google.bigtable.admin.v2.Table.TimestampGranularity}
   */
  public enum TimestampGranularity
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <pre>
     * The user did not specify a granularity. Should not be returned.
     * When specified during table creation, MILLIS will be used.
     * </pre>
     *
     * <code>TIMESTAMP_GRANULARITY_UNSPECIFIED = 0;</code>
     */
    TIMESTAMP_GRANULARITY_UNSPECIFIED(0),
    /**
     * <pre>
     * The table keeps data versioned at a granularity of 1ms.
     * </pre>
     *
     * <code>MILLIS = 1;</code>
     */
    MILLIS(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * The user did not specify a granularity. Should not be returned.
     * When specified during table creation, MILLIS will be used.
     * </pre>
     *
     * <code>TIMESTAMP_GRANULARITY_UNSPECIFIED = 0;</code>
     */
    public static final int TIMESTAMP_GRANULARITY_UNSPECIFIED_VALUE = 0;
    /**
     * <pre>
     * The table keeps data versioned at a granularity of 1ms.
     * </pre>
     *
     * <code>MILLIS = 1;</code>
     */
    public static final int MILLIS_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TimestampGranularity valueOf(int value) {
      return forNumber(value);
    }

    public static TimestampGranularity forNumber(int value) {
      switch (value) {
        case 0: return TIMESTAMP_GRANULARITY_UNSPECIFIED;
        case 1: return MILLIS;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<TimestampGranularity>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        TimestampGranularity> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<TimestampGranularity>() {
            public TimestampGranularity findValueByNumber(int number) {
              return TimestampGranularity.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.google.bigtable.admin.v2.Table.getDescriptor().getEnumTypes().get(0);
    }

    private static final TimestampGranularity[] VALUES = values();

    public static TimestampGranularity valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private TimestampGranularity(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.bigtable.admin.v2.Table.TimestampGranularity)
  }

  /**
   * <pre>
   * Defines a view over a table's fields.
   * </pre>
   *
   * Protobuf enum {@code google.bigtable.admin.v2.Table.View}
   */
  public enum View
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <pre>
     * Uses the default view for each method as documented in its request.
     * </pre>
     *
     * <code>VIEW_UNSPECIFIED = 0;</code>
     */
    VIEW_UNSPECIFIED(0),
    /**
     * <pre>
     * Only populates `name`.
     * </pre>
     *
     * <code>NAME_ONLY = 1;</code>
     */
    NAME_ONLY(1),
    /**
     * <pre>
     * Only populates `name` and fields related to the table's schema.
     * </pre>
     *
     * <code>SCHEMA_VIEW = 2;</code>
     */
    SCHEMA_VIEW(2),
    /**
     * <pre>
     * Only populates `name` and fields related to the table's
     * replication state.
     * </pre>
     *
     * <code>REPLICATION_VIEW = 3;</code>
     */
    REPLICATION_VIEW(3),
    /**
     * <pre>
     * Populates all fields.
     * </pre>
     *
     * <code>FULL = 4;</code>
     */
    FULL(4),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * Uses the default view for each method as documented in its request.
     * </pre>
     *
     * <code>VIEW_UNSPECIFIED = 0;</code>
     */
    public static final int VIEW_UNSPECIFIED_VALUE = 0;
    /**
     * <pre>
     * Only populates `name`.
     * </pre>
     *
     * <code>NAME_ONLY = 1;</code>
     */
    public static final int NAME_ONLY_VALUE = 1;
    /**
     * <pre>
     * Only populates `name` and fields related to the table's schema.
     * </pre>
     *
     * <code>SCHEMA_VIEW = 2;</code>
     */
    public static final int SCHEMA_VIEW_VALUE = 2;
    /**
     * <pre>
     * Only populates `name` and fields related to the table's
     * replication state.
     * </pre>
     *
     * <code>REPLICATION_VIEW = 3;</code>
     */
    public static final int REPLICATION_VIEW_VALUE = 3;
    /**
     * <pre>
     * Populates all fields.
     * </pre>
     *
     * <code>FULL = 4;</code>
     */
    public static final int FULL_VALUE = 4;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static View valueOf(int value) {
      return forNumber(value);
    }

    public static View forNumber(int value) {
      switch (value) {
        case 0: return VIEW_UNSPECIFIED;
        case 1: return NAME_ONLY;
        case 2: return SCHEMA_VIEW;
        case 3: return REPLICATION_VIEW;
        case 4: return FULL;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<View>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        View> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<View>() {
            public View findValueByNumber(int number) {
              return View.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.google.bigtable.admin.v2.Table.getDescriptor().getEnumTypes().get(1);
    }

    private static final View[] VALUES = values();

    public static View valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private View(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.bigtable.admin.v2.Table.View)
  }

  public interface ClusterStateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.Table.ClusterState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * (`OutputOnly`)
     * The state of replication for the table in this cluster.
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
     */
    int getReplicationStateValue();
    /**
     * <pre>
     * (`OutputOnly`)
     * The state of replication for the table in this cluster.
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
     */
    com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState getReplicationState();
  }
  /**
   * <pre>
   * The state of a table's data in a particular cluster.
   * </pre>
   *
   * Protobuf type {@code google.bigtable.admin.v2.Table.ClusterState}
   */
  public  static final class ClusterState extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Table.ClusterState)
      ClusterStateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ClusterState.newBuilder() to construct.
    private ClusterState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ClusterState() {
      replicationState_ = 0;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ClusterState(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              int rawValue = input.readEnum();

              replicationState_ = rawValue;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_ClusterState_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_ClusterState_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.bigtable.admin.v2.Table.ClusterState.class, com.google.bigtable.admin.v2.Table.ClusterState.Builder.class);
    }

    /**
     * <pre>
     * Table replication states.
     * </pre>
     *
     * Protobuf enum {@code google.bigtable.admin.v2.Table.ClusterState.ReplicationState}
     */
    public enum ReplicationState
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * <pre>
       * The replication state of the table is unknown in this cluster.
       * </pre>
       *
       * <code>STATE_NOT_KNOWN = 0;</code>
       */
      STATE_NOT_KNOWN(0),
      /**
       * <pre>
       * The cluster was recently created, and the table must finish copying
       * over pre-existing data from other clusters before it can begin
       * receiving live replication updates and serving Data API requests.
       * </pre>
       *
       * <code>INITIALIZING = 1;</code>
       */
      INITIALIZING(1),
      /**
       * <pre>
       * The table is temporarily unable to serve Data API requests from this
       * cluster due to planned internal maintenance.
       * </pre>
       *
       * <code>PLANNED_MAINTENANCE = 2;</code>
       */
      PLANNED_MAINTENANCE(2),
      /**
       * <pre>
       * The table is temporarily unable to serve Data API requests from this
       * cluster due to unplanned or emergency maintenance.
       * </pre>
       *
       * <code>UNPLANNED_MAINTENANCE = 3;</code>
       */
      UNPLANNED_MAINTENANCE(3),
      /**
       * <pre>
       * The table can serve Data API requests from this cluster. Depending on
       * replication delay, reads may not immediately reflect the state of the
       * table in other clusters.
       * </pre>
       *
       * <code>READY = 4;</code>
       */
      READY(4),
      UNRECOGNIZED(-1),
      ;

      /**
       * <pre>
       * The replication state of the table is unknown in this cluster.
       * </pre>
       *
       * <code>STATE_NOT_KNOWN = 0;</code>
       */
      public static final int STATE_NOT_KNOWN_VALUE = 0;
      /**
       * <pre>
       * The cluster was recently created, and the table must finish copying
       * over pre-existing data from other clusters before it can begin
       * receiving live replication updates and serving Data API requests.
       * </pre>
       *
       * <code>INITIALIZING = 1;</code>
       */
      public static final int INITIALIZING_VALUE = 1;
      /**
       * <pre>
       * The table is temporarily unable to serve Data API requests from this
       * cluster due to planned internal maintenance.
       * </pre>
       *
       * <code>PLANNED_MAINTENANCE = 2;</code>
       */
      public static final int PLANNED_MAINTENANCE_VALUE = 2;
      /**
       * <pre>
       * The table is temporarily unable to serve Data API requests from this
       * cluster due to unplanned or emergency maintenance.
       * </pre>
       *
       * <code>UNPLANNED_MAINTENANCE = 3;</code>
       */
      public static final int UNPLANNED_MAINTENANCE_VALUE = 3;
      /**
       * <pre>
       * The table can serve Data API requests from this cluster. Depending on
       * replication delay, reads may not immediately reflect the state of the
       * table in other clusters.
       * </pre>
       *
       * <code>READY = 4;</code>
       */
      public static final int READY_VALUE = 4;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static ReplicationState valueOf(int value) {
        return forNumber(value);
      }

      public static ReplicationState forNumber(int value) {
        switch (value) {
          case 0: return STATE_NOT_KNOWN;
          case 1: return INITIALIZING;
          case 2: return PLANNED_MAINTENANCE;
          case 3: return UNPLANNED_MAINTENANCE;
          case 4: return READY;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<ReplicationState>
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          ReplicationState> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<ReplicationState>() {
              public ReplicationState findValueByNumber(int number) {
                return ReplicationState.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return com.google.bigtable.admin.v2.Table.ClusterState.getDescriptor().getEnumTypes().get(0);
      }

      private static final ReplicationState[] VALUES = values();

      public static ReplicationState valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private ReplicationState(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.bigtable.admin.v2.Table.ClusterState.ReplicationState)
    }

    public static final int REPLICATION_STATE_FIELD_NUMBER = 1;
    private int replicationState_;
    /**
     * <pre>
     * (`OutputOnly`)
     * The state of replication for the table in this cluster.
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
     */
    public int getReplicationStateValue() {
      return replicationState_;
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * The state of replication for the table in this cluster.
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
     */
    public com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState getReplicationState() {
      com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState result = com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.valueOf(replicationState_);
      return result == null ? com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.UNRECOGNIZED : result;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (replicationState_ != com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.STATE_NOT_KNOWN.getNumber()) {
        output.writeEnum(1, replicationState_);
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (replicationState_ != com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.STATE_NOT_KNOWN.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, replicationState_);
      }
      size += unknownFields.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.bigtable.admin.v2.Table.ClusterState)) {
        return super.equals(obj);
      }
      com.google.bigtable.admin.v2.Table.ClusterState other = (com.google.bigtable.admin.v2.Table.ClusterState) obj;

      boolean result = true;
      result = result && replicationState_ == other.replicationState_;
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + REPLICATION_STATE_FIELD_NUMBER;
      hash = (53 * hash) + replicationState_;
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.bigtable.admin.v2.Table.ClusterState parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState 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.bigtable.admin.v2.Table.ClusterState parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState 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.bigtable.admin.v2.Table.ClusterState parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState 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.bigtable.admin.v2.Table.ClusterState parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.bigtable.admin.v2.Table.ClusterState parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.bigtable.admin.v2.Table.ClusterState prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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>
     * The state of a table's data in a particular cluster.
     * </pre>
     *
     * Protobuf type {@code google.bigtable.admin.v2.Table.ClusterState}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Table.ClusterState)
        com.google.bigtable.admin.v2.Table.ClusterStateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_ClusterState_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_ClusterState_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.bigtable.admin.v2.Table.ClusterState.class, com.google.bigtable.admin.v2.Table.ClusterState.Builder.class);
      }

      // Construct using com.google.bigtable.admin.v2.Table.ClusterState.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        replicationState_ = 0;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_ClusterState_descriptor;
      }

      public com.google.bigtable.admin.v2.Table.ClusterState getDefaultInstanceForType() {
        return com.google.bigtable.admin.v2.Table.ClusterState.getDefaultInstance();
      }

      public com.google.bigtable.admin.v2.Table.ClusterState build() {
        com.google.bigtable.admin.v2.Table.ClusterState result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.bigtable.admin.v2.Table.ClusterState buildPartial() {
        com.google.bigtable.admin.v2.Table.ClusterState result = new com.google.bigtable.admin.v2.Table.ClusterState(this);
        result.replicationState_ = replicationState_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.bigtable.admin.v2.Table.ClusterState) {
          return mergeFrom((com.google.bigtable.admin.v2.Table.ClusterState)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.bigtable.admin.v2.Table.ClusterState other) {
        if (other == com.google.bigtable.admin.v2.Table.ClusterState.getDefaultInstance()) return this;
        if (other.replicationState_ != 0) {
          setReplicationStateValue(other.getReplicationStateValue());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.bigtable.admin.v2.Table.ClusterState parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.bigtable.admin.v2.Table.ClusterState) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int replicationState_ = 0;
      /**
       * <pre>
       * (`OutputOnly`)
       * The state of replication for the table in this cluster.
       * </pre>
       *
       * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
       */
      public int getReplicationStateValue() {
        return replicationState_;
      }
      /**
       * <pre>
       * (`OutputOnly`)
       * The state of replication for the table in this cluster.
       * </pre>
       *
       * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
       */
      public Builder setReplicationStateValue(int value) {
        replicationState_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * (`OutputOnly`)
       * The state of replication for the table in this cluster.
       * </pre>
       *
       * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
       */
      public com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState getReplicationState() {
        com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState result = com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.valueOf(replicationState_);
        return result == null ? com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * (`OutputOnly`)
       * The state of replication for the table in this cluster.
       * </pre>
       *
       * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
       */
      public Builder setReplicationState(com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        replicationState_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * (`OutputOnly`)
       * The state of replication for the table in this cluster.
       * </pre>
       *
       * <code>.google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1;</code>
       */
      public Builder clearReplicationState() {
        
        replicationState_ = 0;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Table.ClusterState)
    }

    // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table.ClusterState)
    private static final com.google.bigtable.admin.v2.Table.ClusterState DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Table.ClusterState();
    }

    public static com.google.bigtable.admin.v2.Table.ClusterState getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<ClusterState>
        PARSER = new com.google.protobuf.AbstractParser<ClusterState>() {
      public ClusterState parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ClusterState(input, extensionRegistry);
      }
    };

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

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

    public com.google.bigtable.admin.v2.Table.ClusterState getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int bitField0_;
  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * <pre>
   * (`OutputOnly`)
   * The unique name of the table. Values are of the form
   * `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
   * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  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>
   * (`OutputOnly`)
   * The unique name of the table. Values are of the form
   * `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
   * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  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 CLUSTER_STATES_FIELD_NUMBER = 2;
  private static final class ClusterStatesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>newDefaultInstance(
                com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_ClusterStatesEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                com.google.bigtable.admin.v2.Table.ClusterState.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> clusterStates_;
  private com.google.protobuf.MapField<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>
  internalGetClusterStates() {
    if (clusterStates_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          ClusterStatesDefaultEntryHolder.defaultEntry);
    }
    return clusterStates_;
  }

  public int getClusterStatesCount() {
    return internalGetClusterStates().getMap().size();
  }
  /**
   * <pre>
   * (`OutputOnly`)
   * Map from cluster ID to per-cluster table state.
   * If it could not be determined whether or not the table has data in a
   * particular cluster (for example, if its zone is unavailable), then
   * there will be an entry for the cluster with UNKNOWN `replication_status`.
   * Views: `REPLICATION_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
   */

  public boolean containsClusterStates(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetClusterStates().getMap().containsKey(key);
  }
  /**
   * Use {@link #getClusterStatesMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> getClusterStates() {
    return getClusterStatesMap();
  }
  /**
   * <pre>
   * (`OutputOnly`)
   * Map from cluster ID to per-cluster table state.
   * If it could not be determined whether or not the table has data in a
   * particular cluster (for example, if its zone is unavailable), then
   * there will be an entry for the cluster with UNKNOWN `replication_status`.
   * Views: `REPLICATION_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
   */

  public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> getClusterStatesMap() {
    return internalGetClusterStates().getMap();
  }
  /**
   * <pre>
   * (`OutputOnly`)
   * Map from cluster ID to per-cluster table state.
   * If it could not be determined whether or not the table has data in a
   * particular cluster (for example, if its zone is unavailable), then
   * there will be an entry for the cluster with UNKNOWN `replication_status`.
   * Views: `REPLICATION_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
   */

  public com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrDefault(
      java.lang.String key,
      com.google.bigtable.admin.v2.Table.ClusterState defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> map =
        internalGetClusterStates().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <pre>
   * (`OutputOnly`)
   * Map from cluster ID to per-cluster table state.
   * If it could not be determined whether or not the table has data in a
   * particular cluster (for example, if its zone is unavailable), then
   * there will be an entry for the cluster with UNKNOWN `replication_status`.
   * Views: `REPLICATION_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
   */

  public com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> map =
        internalGetClusterStates().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int COLUMN_FAMILIES_FIELD_NUMBER = 3;
  private static final class ColumnFamiliesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily>newDefaultInstance(
                com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_ColumnFamiliesEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                com.google.bigtable.admin.v2.ColumnFamily.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> columnFamilies_;
  private com.google.protobuf.MapField<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily>
  internalGetColumnFamilies() {
    if (columnFamilies_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          ColumnFamiliesDefaultEntryHolder.defaultEntry);
    }
    return columnFamilies_;
  }

  public int getColumnFamiliesCount() {
    return internalGetColumnFamilies().getMap().size();
  }
  /**
   * <pre>
   * (`CreationOnly`)
   * The column families configured for this table, mapped by column family ID.
   * Views: `SCHEMA_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
   */

  public boolean containsColumnFamilies(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetColumnFamilies().getMap().containsKey(key);
  }
  /**
   * Use {@link #getColumnFamiliesMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> getColumnFamilies() {
    return getColumnFamiliesMap();
  }
  /**
   * <pre>
   * (`CreationOnly`)
   * The column families configured for this table, mapped by column family ID.
   * Views: `SCHEMA_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
   */

  public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> getColumnFamiliesMap() {
    return internalGetColumnFamilies().getMap();
  }
  /**
   * <pre>
   * (`CreationOnly`)
   * The column families configured for this table, mapped by column family ID.
   * Views: `SCHEMA_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
   */

  public com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault(
      java.lang.String key,
      com.google.bigtable.admin.v2.ColumnFamily defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> map =
        internalGetColumnFamilies().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <pre>
   * (`CreationOnly`)
   * The column families configured for this table, mapped by column family ID.
   * Views: `SCHEMA_VIEW`, `FULL`
   * </pre>
   *
   * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
   */

  public com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> map =
        internalGetColumnFamilies().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int GRANULARITY_FIELD_NUMBER = 4;
  private int granularity_;
  /**
   * <pre>
   * (`CreationOnly`)
   * The granularity (i.e. `MILLIS`) at which timestamps are stored in
   * this table. Timestamps not matching the granularity will be rejected.
   * If unspecified at creation time, the value will be set to `MILLIS`.
   * Views: `SCHEMA_VIEW`, `FULL`
   * </pre>
   *
   * <code>.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4;</code>
   */
  public int getGranularityValue() {
    return granularity_;
  }
  /**
   * <pre>
   * (`CreationOnly`)
   * The granularity (i.e. `MILLIS`) at which timestamps are stored in
   * this table. Timestamps not matching the granularity will be rejected.
   * If unspecified at creation time, the value will be set to `MILLIS`.
   * Views: `SCHEMA_VIEW`, `FULL`
   * </pre>
   *
   * <code>.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4;</code>
   */
  public com.google.bigtable.admin.v2.Table.TimestampGranularity getGranularity() {
    com.google.bigtable.admin.v2.Table.TimestampGranularity result = com.google.bigtable.admin.v2.Table.TimestampGranularity.valueOf(granularity_);
    return result == null ? com.google.bigtable.admin.v2.Table.TimestampGranularity.UNRECOGNIZED : result;
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetClusterStates(),
        ClusterStatesDefaultEntryHolder.defaultEntry,
        2);
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetColumnFamilies(),
        ColumnFamiliesDefaultEntryHolder.defaultEntry,
        3);
    if (granularity_ != com.google.bigtable.admin.v2.Table.TimestampGranularity.TIMESTAMP_GRANULARITY_UNSPECIFIED.getNumber()) {
      output.writeEnum(4, granularity_);
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    for (java.util.Map.Entry<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> entry
         : internalGetClusterStates().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>
      clusterStates__ = ClusterStatesDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, clusterStates__);
    }
    for (java.util.Map.Entry<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> entry
         : internalGetColumnFamilies().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily>
      columnFamilies__ = ColumnFamiliesDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, columnFamilies__);
    }
    if (granularity_ != com.google.bigtable.admin.v2.Table.TimestampGranularity.TIMESTAMP_GRANULARITY_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(4, granularity_);
    }
    size += unknownFields.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.bigtable.admin.v2.Table)) {
      return super.equals(obj);
    }
    com.google.bigtable.admin.v2.Table other = (com.google.bigtable.admin.v2.Table) obj;

    boolean result = true;
    result = result && getName()
        .equals(other.getName());
    result = result && internalGetClusterStates().equals(
        other.internalGetClusterStates());
    result = result && internalGetColumnFamilies().equals(
        other.internalGetColumnFamilies());
    result = result && granularity_ == other.granularity_;
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @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();
    if (!internalGetClusterStates().getMap().isEmpty()) {
      hash = (37 * hash) + CLUSTER_STATES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetClusterStates().hashCode();
    }
    if (!internalGetColumnFamilies().getMap().isEmpty()) {
      hash = (37 * hash) + COLUMN_FAMILIES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetColumnFamilies().hashCode();
    }
    hash = (37 * hash) + GRANULARITY_FIELD_NUMBER;
    hash = (53 * hash) + granularity_;
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.bigtable.admin.v2.Table parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.bigtable.admin.v2.Table parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.bigtable.admin.v2.Table parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.bigtable.admin.v2.Table 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.bigtable.admin.v2.Table parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.bigtable.admin.v2.Table parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.bigtable.admin.v2.Table parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.bigtable.admin.v2.Table 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.bigtable.admin.v2.Table parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.bigtable.admin.v2.Table 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.bigtable.admin.v2.Table parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.bigtable.admin.v2.Table parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.bigtable.admin.v2.Table prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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 collection of user data indexed by row, column, and timestamp.
   * Each table is served using the resources of its parent cluster.
   * </pre>
   *
   * Protobuf type {@code google.bigtable.admin.v2.Table}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.Table)
      com.google.bigtable.admin.v2.TableOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetClusterStates();
        case 3:
          return internalGetColumnFamilies();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetMutableClusterStates();
        case 3:
          return internalGetMutableColumnFamilies();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.bigtable.admin.v2.Table.class, com.google.bigtable.admin.v2.Table.Builder.class);
    }

    // Construct using com.google.bigtable.admin.v2.Table.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      name_ = "";

      internalGetMutableClusterStates().clear();
      internalGetMutableColumnFamilies().clear();
      granularity_ = 0;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.bigtable.admin.v2.TableProto.internal_static_google_bigtable_admin_v2_Table_descriptor;
    }

    public com.google.bigtable.admin.v2.Table getDefaultInstanceForType() {
      return com.google.bigtable.admin.v2.Table.getDefaultInstance();
    }

    public com.google.bigtable.admin.v2.Table build() {
      com.google.bigtable.admin.v2.Table result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.bigtable.admin.v2.Table buildPartial() {
      com.google.bigtable.admin.v2.Table result = new com.google.bigtable.admin.v2.Table(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.name_ = name_;
      result.clusterStates_ = internalGetClusterStates();
      result.clusterStates_.makeImmutable();
      result.columnFamilies_ = internalGetColumnFamilies();
      result.columnFamilies_.makeImmutable();
      result.granularity_ = granularity_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.bigtable.admin.v2.Table) {
        return mergeFrom((com.google.bigtable.admin.v2.Table)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.bigtable.admin.v2.Table other) {
      if (other == com.google.bigtable.admin.v2.Table.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      internalGetMutableClusterStates().mergeFrom(
          other.internalGetClusterStates());
      internalGetMutableColumnFamilies().mergeFrom(
          other.internalGetColumnFamilies());
      if (other.granularity_ != 0) {
        setGranularityValue(other.getGranularityValue());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.bigtable.admin.v2.Table parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.bigtable.admin.v2.Table) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     * <pre>
     * (`OutputOnly`)
     * The unique name of the table. Values are of the form
     * `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
     * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    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>
     * (`OutputOnly`)
     * The unique name of the table. Values are of the form
     * `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
     * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    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>
     * (`OutputOnly`)
     * The unique name of the table. Values are of the form
     * `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
     * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * The unique name of the table. Values are of the form
     * `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
     * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * The unique name of the table. Values are of the form
     * `projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
     * Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> clusterStates_;
    private com.google.protobuf.MapField<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>
    internalGetClusterStates() {
      if (clusterStates_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            ClusterStatesDefaultEntryHolder.defaultEntry);
      }
      return clusterStates_;
    }
    private com.google.protobuf.MapField<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>
    internalGetMutableClusterStates() {
      onChanged();;
      if (clusterStates_ == null) {
        clusterStates_ = com.google.protobuf.MapField.newMapField(
            ClusterStatesDefaultEntryHolder.defaultEntry);
      }
      if (!clusterStates_.isMutable()) {
        clusterStates_ = clusterStates_.copy();
      }
      return clusterStates_;
    }

    public int getClusterStatesCount() {
      return internalGetClusterStates().getMap().size();
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * Map from cluster ID to per-cluster table state.
     * If it could not be determined whether or not the table has data in a
     * particular cluster (for example, if its zone is unavailable), then
     * there will be an entry for the cluster with UNKNOWN `replication_status`.
     * Views: `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
     */

    public boolean containsClusterStates(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetClusterStates().getMap().containsKey(key);
    }
    /**
     * Use {@link #getClusterStatesMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> getClusterStates() {
      return getClusterStatesMap();
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * Map from cluster ID to per-cluster table state.
     * If it could not be determined whether or not the table has data in a
     * particular cluster (for example, if its zone is unavailable), then
     * there will be an entry for the cluster with UNKNOWN `replication_status`.
     * Views: `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
     */

    public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> getClusterStatesMap() {
      return internalGetClusterStates().getMap();
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * Map from cluster ID to per-cluster table state.
     * If it could not be determined whether or not the table has data in a
     * particular cluster (for example, if its zone is unavailable), then
     * there will be an entry for the cluster with UNKNOWN `replication_status`.
     * Views: `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
     */

    public com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrDefault(
        java.lang.String key,
        com.google.bigtable.admin.v2.Table.ClusterState defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> map =
          internalGetClusterStates().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * Map from cluster ID to per-cluster table state.
     * If it could not be determined whether or not the table has data in a
     * particular cluster (for example, if its zone is unavailable), then
     * there will be an entry for the cluster with UNKNOWN `replication_status`.
     * Views: `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
     */

    public com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> map =
          internalGetClusterStates().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearClusterStates() {
      internalGetMutableClusterStates().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * Map from cluster ID to per-cluster table state.
     * If it could not be determined whether or not the table has data in a
     * particular cluster (for example, if its zone is unavailable), then
     * there will be an entry for the cluster with UNKNOWN `replication_status`.
     * Views: `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
     */

    public Builder removeClusterStates(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableClusterStates().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>
    getMutableClusterStates() {
      return internalGetMutableClusterStates().getMutableMap();
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * Map from cluster ID to per-cluster table state.
     * If it could not be determined whether or not the table has data in a
     * particular cluster (for example, if its zone is unavailable), then
     * there will be an entry for the cluster with UNKNOWN `replication_status`.
     * Views: `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
     */
    public Builder putClusterStates(
        java.lang.String key,
        com.google.bigtable.admin.v2.Table.ClusterState value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableClusterStates().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <pre>
     * (`OutputOnly`)
     * Map from cluster ID to per-cluster table state.
     * If it could not be determined whether or not the table has data in a
     * particular cluster (for example, if its zone is unavailable), then
     * there will be an entry for the cluster with UNKNOWN `replication_status`.
     * Views: `REPLICATION_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.Table.ClusterState&gt; cluster_states = 2;</code>
     */

    public Builder putAllClusterStates(
        java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> values) {
      internalGetMutableClusterStates().getMutableMap()
          .putAll(values);
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> columnFamilies_;
    private com.google.protobuf.MapField<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily>
    internalGetColumnFamilies() {
      if (columnFamilies_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            ColumnFamiliesDefaultEntryHolder.defaultEntry);
      }
      return columnFamilies_;
    }
    private com.google.protobuf.MapField<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily>
    internalGetMutableColumnFamilies() {
      onChanged();;
      if (columnFamilies_ == null) {
        columnFamilies_ = com.google.protobuf.MapField.newMapField(
            ColumnFamiliesDefaultEntryHolder.defaultEntry);
      }
      if (!columnFamilies_.isMutable()) {
        columnFamilies_ = columnFamilies_.copy();
      }
      return columnFamilies_;
    }

    public int getColumnFamiliesCount() {
      return internalGetColumnFamilies().getMap().size();
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The column families configured for this table, mapped by column family ID.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
     */

    public boolean containsColumnFamilies(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetColumnFamilies().getMap().containsKey(key);
    }
    /**
     * Use {@link #getColumnFamiliesMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> getColumnFamilies() {
      return getColumnFamiliesMap();
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The column families configured for this table, mapped by column family ID.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
     */

    public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> getColumnFamiliesMap() {
      return internalGetColumnFamilies().getMap();
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The column families configured for this table, mapped by column family ID.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
     */

    public com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault(
        java.lang.String key,
        com.google.bigtable.admin.v2.ColumnFamily defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> map =
          internalGetColumnFamilies().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The column families configured for this table, mapped by column family ID.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
     */

    public com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> map =
          internalGetColumnFamilies().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearColumnFamilies() {
      internalGetMutableColumnFamilies().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The column families configured for this table, mapped by column family ID.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
     */

    public Builder removeColumnFamilies(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableColumnFamilies().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily>
    getMutableColumnFamilies() {
      return internalGetMutableColumnFamilies().getMutableMap();
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The column families configured for this table, mapped by column family ID.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
     */
    public Builder putColumnFamilies(
        java.lang.String key,
        com.google.bigtable.admin.v2.ColumnFamily value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableColumnFamilies().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The column families configured for this table, mapped by column family ID.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>map&lt;string, .google.bigtable.admin.v2.ColumnFamily&gt; column_families = 3;</code>
     */

    public Builder putAllColumnFamilies(
        java.util.Map<java.lang.String, com.google.bigtable.admin.v2.ColumnFamily> values) {
      internalGetMutableColumnFamilies().getMutableMap()
          .putAll(values);
      return this;
    }

    private int granularity_ = 0;
    /**
     * <pre>
     * (`CreationOnly`)
     * The granularity (i.e. `MILLIS`) at which timestamps are stored in
     * this table. Timestamps not matching the granularity will be rejected.
     * If unspecified at creation time, the value will be set to `MILLIS`.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4;</code>
     */
    public int getGranularityValue() {
      return granularity_;
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The granularity (i.e. `MILLIS`) at which timestamps are stored in
     * this table. Timestamps not matching the granularity will be rejected.
     * If unspecified at creation time, the value will be set to `MILLIS`.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4;</code>
     */
    public Builder setGranularityValue(int value) {
      granularity_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The granularity (i.e. `MILLIS`) at which timestamps are stored in
     * this table. Timestamps not matching the granularity will be rejected.
     * If unspecified at creation time, the value will be set to `MILLIS`.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4;</code>
     */
    public com.google.bigtable.admin.v2.Table.TimestampGranularity getGranularity() {
      com.google.bigtable.admin.v2.Table.TimestampGranularity result = com.google.bigtable.admin.v2.Table.TimestampGranularity.valueOf(granularity_);
      return result == null ? com.google.bigtable.admin.v2.Table.TimestampGranularity.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The granularity (i.e. `MILLIS`) at which timestamps are stored in
     * this table. Timestamps not matching the granularity will be rejected.
     * If unspecified at creation time, the value will be set to `MILLIS`.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4;</code>
     */
    public Builder setGranularity(com.google.bigtable.admin.v2.Table.TimestampGranularity value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      granularity_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * (`CreationOnly`)
     * The granularity (i.e. `MILLIS`) at which timestamps are stored in
     * this table. Timestamps not matching the granularity will be rejected.
     * If unspecified at creation time, the value will be set to `MILLIS`.
     * Views: `SCHEMA_VIEW`, `FULL`
     * </pre>
     *
     * <code>.google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4;</code>
     */
    public Builder clearGranularity() {
      
      granularity_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Table)
  }

  // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Table)
  private static final com.google.bigtable.admin.v2.Table DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Table();
  }

  public static com.google.bigtable.admin.v2.Table getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Table>
      PARSER = new com.google.protobuf.AbstractParser<Table>() {
    public Table parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Table(input, extensionRegistry);
    }
  };

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

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

  public com.google.bigtable.admin.v2.Table getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

