@java.lang.Override 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; }
/** * * * <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 setReplicationState( com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState value) { if (value == null) { throw new NullPointerException(); } replicationState_ = value.getNumber(); onChanged(); return this; } /**
@java.lang.Override 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; }
/** * * * <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; }
/** * * * <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; } /**
private Builder() { maybeForceBuilderInitialization(); }
@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; }
public static Builder newBuilder(com.google.bigtable.admin.v2.Table.ClusterState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override 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; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@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; }
"cluster1", com.google.bigtable.admin.v2.Table.ClusterState.newBuilder() .setReplicationState( com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.READY) .build()) .putClusterStates( "cluster2", com.google.bigtable.admin.v2.Table.ClusterState.newBuilder() .setReplicationState( com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState .INITIALIZING) .build()) .putColumnFamilies("cf1", ColumnFamily.newBuilder().build()) .putColumnFamilies(
/** * * * <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; }
/** * * * <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; } /**
private Builder() { maybeForceBuilderInitialization(); }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }