/** * * * <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<string, .google.bigtable.admin.v2.Table.ClusterState> 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); }
/** * * * <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<string, .google.bigtable.admin.v2.Table.ClusterState> 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<string, .google.bigtable.admin.v2.Table.ClusterState> 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. */
/** * * * <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<string, .google.bigtable.admin.v2.Table.ClusterState> 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); }
/** * * * <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<string, .google.bigtable.admin.v2.Table.ClusterState> 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<string, .google.bigtable.admin.v2.Table.ClusterState> 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<string, .google.bigtable.admin.v2.Table.ClusterState> 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.Override 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 int getClusterStatesCount() { return internalGetClusterStates().getMap().size(); } /**
@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); } }
/** * * * <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<string, .google.bigtable.admin.v2.Table.ClusterState> cluster_states = 2; * </code> */ public java.util.Map<java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState> getClusterStatesMap() { return internalGetClusterStates().getMap(); } /**
@java.lang.Override 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 int getClusterStatesCount() { return internalGetClusterStates().getMap().size(); } /**
@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); } }