@@ -34,49 +34,44 @@ public enum ReplicationState {
3434 /** The replication state of the table is unknown in this cluster. */
3535 NOT_KNOWN (com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState .STATE_NOT_KNOWN ),
3636 /**
37- * The cluster was recently created, and the table must finish copying over
38- * pre-existing data from other clusters before it can begin receiving live
39- * replication updates and serving Data API requests.
37+ * The cluster was recently created, and the table must finish copying over pre-existing data
38+ * from other clusters before it can begin receiving live replication updates and serving Data
39+ * API requests.
4040 */
4141 INITIALIZING (com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState .INITIALIZING ),
4242 /**
43- * The table is temporarily unable to serve Data API requests from this cluster
44- * due to planned internal maintenance.
43+ * The table is temporarily unable to serve Data API requests from this cluster due to planned
44+ * internal maintenance.
4545 */
4646 PLANNED_MAINTENANCE (
4747 com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState .PLANNED_MAINTENANCE ),
4848 /**
49- * The table is temporarily unable to serve Data API requests from this cluster
50- * due to unplanned or emergency maintenance.
49+ * The table is temporarily unable to serve Data API requests from this cluster due to unplanned
50+ * or emergency maintenance.
5151 */
5252 UNPLANNED_MAINTENANCE (
5353 com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState .UNPLANNED_MAINTENANCE ),
5454 /**
55- * The table can serve Data API requests from this cluster. Depending on
56- * replication delay, reads may not immediately reflect the state of the
57- * table in other clusters.
55+ * The table can serve Data API requests from this cluster. Depending on replication delay,
56+ * reads may not immediately reflect the state of the table in other clusters.
5857 */
5958 READY (com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState .READY ),
6059
6160 /**
62- * The table is fully created and ready for use after a restore, and is being
63- * optimized for performance. When optimizations are complete, the table will
64- * transition to`READY` state.
61+ * The table is fully created and ready for use after a restore, and is being optimized for
62+ * performance. When optimizations are complete, the table will transition to`READY` state.
6563 */
6664 READY_OPTIMIZING (
6765 com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState .READY_OPTIMIZING ),
6866
69- /**
70- * The replication state of table is not known by this client. Please upgrade
71- * your client.
72- */
67+ /** The replication state of table is not known by this client. Please upgrade your client. */
7368 UNRECOGNIZED (com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState .UNRECOGNIZED );
7469
7570 private final com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState proto ;
7671
7772 /**
78- * Wraps the protobuf. This method is considered an internal implementation
79- * detail and not meant to be used by applications.
73+ * Wraps the protobuf. This method is considered an internal implementation detail and not meant
74+ * to be used by applications.
8075 */
8176 @ InternalApi
8277 public static ReplicationState fromProto (
@@ -96,8 +91,8 @@ public static ReplicationState fromProto(
9691 }
9792
9893 /**
99- * Creates the request protobuf. This method is considered an internal
100- * implementation detail and not meant to be used by applications.
94+ * Creates the request protobuf. This method is considered an internal implementation detail and
95+ * not meant to be used by applications.
10196 */
10297 @ InternalApi
10398 public com .google .bigtable .admin .v2 .Table .ClusterState .ReplicationState toProto () {
@@ -109,32 +104,29 @@ public static class AutomatedBackupPolicy {
109104 private final com .google .bigtable .admin .v2 .Table .AutomatedBackupPolicy proto ;
110105
111106 /**
112- * Wraps the protobuf. This method is considered an internal implementation
113- * detail and not meant to be used by applications.
107+ * Wraps the protobuf. This method is considered an internal implementation detail and not meant
108+ * to be used by applications.
114109 */
115110 @ InternalApi
116111 public static AutomatedBackupPolicy fromProto (
117112 com .google .bigtable .admin .v2 .Table .AutomatedBackupPolicy proto ) {
118113 return new AutomatedBackupPolicy (proto );
119114 }
120115
121- AutomatedBackupPolicy (
122- @ Nonnull com .google .bigtable .admin .v2 .Table .AutomatedBackupPolicy proto ) {
116+ AutomatedBackupPolicy (@ Nonnull com .google .bigtable .admin .v2 .Table .AutomatedBackupPolicy proto ) {
123117 this .proto = proto ;
124118 }
125119
126120 /**
127- * Creates the request protobuf. This method is considered an internal
128- * implementation detail and not meant to be used by applications.
121+ * Creates the request protobuf. This method is considered an internal implementation detail and
122+ * not meant to be used by applications.
129123 */
130124 @ InternalApi
131125 public com .google .bigtable .admin .v2 .Table .AutomatedBackupPolicy toProto () {
132126 return proto ;
133127 }
134128
135- /**
136- * Returns policy config contents as a string.
137- */
129+ /** Returns policy config contents as a string. */
138130 public String viewConfig () {
139131 AutomatedBackupPolicy config = fromProto (proto );
140132 return config .proto .getAllFields ().toString ();
@@ -154,23 +146,25 @@ public String viewConfig() {
154146 public static Table fromProto (@ Nonnull com .google .bigtable .admin .v2 .Table proto ) {
155147 ImmutableMap .Builder <String , ReplicationState > replicationStates = ImmutableMap .builder ();
156148
157- for (Entry <String , com .google .bigtable .admin .v2 .Table .ClusterState > entry : proto . getClusterStatesMap ()
158- .entrySet ()) {
149+ for (Entry <String , com .google .bigtable .admin .v2 .Table .ClusterState > entry :
150+ proto . getClusterStatesMap () .entrySet ()) {
159151 replicationStates .put (
160152 entry .getKey (), ReplicationState .fromProto (entry .getValue ().getReplicationState ()));
161153 }
162154
163155 ImmutableList .Builder <ColumnFamily > columnFamilies = ImmutableList .builder ();
164156
165- for (Entry <String , com .google .bigtable .admin .v2 .ColumnFamily > entry : proto .getColumnFamiliesMap ().entrySet ()) {
157+ for (Entry <String , com .google .bigtable .admin .v2 .ColumnFamily > entry :
158+ proto .getColumnFamiliesMap ().entrySet ()) {
166159 columnFamilies .add (ColumnFamily .fromProto (entry .getKey (), entry .getValue ()));
167160 }
168161
169162 Duration changeStreamConfig = null ;
170163 if (proto .hasChangeStreamConfig ()) {
171- changeStreamConfig = Duration .ofSeconds (
172- proto .getChangeStreamConfig ().getRetentionPeriod ().getSeconds (),
173- proto .getChangeStreamConfig ().getRetentionPeriod ().getNanos ());
164+ changeStreamConfig =
165+ Duration .ofSeconds (
166+ proto .getChangeStreamConfig ().getRetentionPeriod ().getSeconds (),
167+ proto .getChangeStreamConfig ().getRetentionPeriod ().getNanos ());
174168 }
175169
176170 if (proto .hasAutomatedBackupPolicy ()) {
@@ -184,7 +178,7 @@ public static Table fromProto(@Nonnull com.google.bigtable.admin.v2.Table proto)
184178 replicationStates .build (),
185179 columnFamilies .build (),
186180 changeStreamConfig ,
187- proto .getDeletionProtection (),
181+ proto .getDeletionProtection (),
188182 automatedBackupPolicy );
189183 }
190184
0 commit comments