@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; }
@InternalApi public static Table fromProto(@Nonnull com.google.bigtable.admin.v2.Table proto) { ImmutableMap.Builder<String, ReplicationState> replicationStates = ImmutableMap.builder(); for (Entry<String, com.google.bigtable.admin.v2.Table.ClusterState> entry : proto.getClusterStatesMap().entrySet()) { replicationStates.put( entry.getKey(), ReplicationState.fromProto(entry.getValue().getReplicationState())); } ImmutableList.Builder<ColumnFamily> columnFamilies = ImmutableList.builder(); for (Entry<String, com.google.bigtable.admin.v2.ColumnFamily> entry : proto.getColumnFamiliesMap().entrySet()) { columnFamilies.add(ColumnFamily.fromProto(entry.getKey(), entry.getValue())); } return new Table( TableName.parse(proto.getName()), replicationStates.build(), columnFamilies.build()); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@InternalApi public static Table fromProto(@Nonnull com.google.bigtable.admin.v2.Table proto) { ImmutableMap.Builder<String, ReplicationState> replicationStates = ImmutableMap.builder(); for (Entry<String, com.google.bigtable.admin.v2.Table.ClusterState> entry : proto.getClusterStatesMap().entrySet()) { replicationStates.put( entry.getKey(), ReplicationState.fromProto(entry.getValue().getReplicationState())); } ImmutableList.Builder<ColumnFamily> columnFamilies = ImmutableList.builder(); for (Entry<String, com.google.bigtable.admin.v2.ColumnFamily> entry : proto.getColumnFamiliesMap().entrySet()) { columnFamilies.add(ColumnFamily.fromProto(entry.getKey(), entry.getValue())); } return new Table( TableName.parse(proto.getName()), replicationStates.build(), columnFamilies.build()); }
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); }
@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; }
@java.lang.Override public com.google.bigtable.admin.v2.Table.ClusterState getDefaultInstanceForType() { return com.google.bigtable.admin.v2.Table.ClusterState.getDefaultInstance(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override 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; }
@java.lang.Override 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 static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.bigtable.admin.v2.Table.ClusterState.getDescriptor() .getEnumTypes() .get(0); }
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; }
.putClusterStates( "cluster1", com.google.bigtable.admin.v2.Table.ClusterState.newBuilder() .setReplicationState( com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.READY) .putClusterStates( "cluster2", com.google.bigtable.admin.v2.Table.ClusterState.newBuilder() .setReplicationState( com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState
public static Builder newBuilder(com.google.bigtable.admin.v2.Table.ClusterState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); }
@java.lang.Override public com.google.bigtable.admin.v2.Table.ClusterState getDefaultInstanceForType() { return com.google.bigtable.admin.v2.Table.ClusterState.getDefaultInstance(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.bigtable.admin.v2.Table.ClusterState.getDescriptor() .getEnumTypes() .get(0); }