@SuppressWarnings({"rawtypes"}) @java.lang.Override 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); } }
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<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. */
/** * * * <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 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); }
@java.lang.Override 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); }
@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; }
entry : internalGetClusterStates().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>
@SuppressWarnings({"rawtypes"}) @java.lang.Override 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); } }
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<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. */
/** * * * <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 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); }
@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 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); }
@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; }
entry : internalGetClusterStates().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, com.google.bigtable.admin.v2.Table.ClusterState>