Skip to content

Commit d285751

Browse files
chore: Re-generated to pick up changes in the API or client library generator. (googleapis#222)
* [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * fix test * fix test * code format Co-authored-by: Kristen O'Leary <[email protected]>
1 parent 0f7bd45 commit d285751

72 files changed

Lines changed: 23984 additions & 663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for context and/or discussion)
1+
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
2+
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-bigtable/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
3+
- [ ] Ensure the tests and linter pass
4+
- [ ] Code coverage does not decrease (if any source code was changed)
5+
- [ ] Appropriate docs were updated (if necessary)
6+
7+
Fixes #<issue_number_goes_here> ☕️

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java

Lines changed: 784 additions & 14 deletions
Large diffs are not rendered by default.

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package com.google.cloud.bigtable.admin.v2;
1717

18+
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListBackupsPagedResponse;
1819
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListSnapshotsPagedResponse;
1920
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListTablesPagedResponse;
2021

@@ -31,27 +32,37 @@
3132
import com.google.api.gax.rpc.PagedCallSettings;
3233
import com.google.api.gax.rpc.TransportChannelProvider;
3334
import com.google.api.gax.rpc.UnaryCallSettings;
35+
import com.google.bigtable.admin.v2.Backup;
3436
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
3537
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
38+
import com.google.bigtable.admin.v2.CreateBackupMetadata;
39+
import com.google.bigtable.admin.v2.CreateBackupRequest;
3640
import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata;
3741
import com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest;
3842
import com.google.bigtable.admin.v2.CreateTableRequest;
43+
import com.google.bigtable.admin.v2.DeleteBackupRequest;
3944
import com.google.bigtable.admin.v2.DeleteSnapshotRequest;
4045
import com.google.bigtable.admin.v2.DeleteTableRequest;
4146
import com.google.bigtable.admin.v2.DropRowRangeRequest;
4247
import com.google.bigtable.admin.v2.GenerateConsistencyTokenRequest;
4348
import com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse;
49+
import com.google.bigtable.admin.v2.GetBackupRequest;
4450
import com.google.bigtable.admin.v2.GetSnapshotRequest;
4551
import com.google.bigtable.admin.v2.GetTableRequest;
52+
import com.google.bigtable.admin.v2.ListBackupsRequest;
53+
import com.google.bigtable.admin.v2.ListBackupsResponse;
4654
import com.google.bigtable.admin.v2.ListSnapshotsRequest;
4755
import com.google.bigtable.admin.v2.ListSnapshotsResponse;
4856
import com.google.bigtable.admin.v2.ListTablesRequest;
4957
import com.google.bigtable.admin.v2.ListTablesResponse;
5058
import com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest;
59+
import com.google.bigtable.admin.v2.RestoreTableMetadata;
60+
import com.google.bigtable.admin.v2.RestoreTableRequest;
5161
import com.google.bigtable.admin.v2.Snapshot;
5262
import com.google.bigtable.admin.v2.SnapshotTableMetadata;
5363
import com.google.bigtable.admin.v2.SnapshotTableRequest;
5464
import com.google.bigtable.admin.v2.Table;
65+
import com.google.bigtable.admin.v2.UpdateBackupRequest;
5566
import com.google.cloud.bigtable.admin.v2.stub.BigtableTableAdminStubSettings;
5667
import com.google.iam.v1.GetIamPolicyRequest;
5768
import com.google.iam.v1.Policy;
@@ -173,6 +184,53 @@ public UnaryCallSettings<DeleteSnapshotRequest, Empty> deleteSnapshotSettings()
173184
return ((BigtableTableAdminStubSettings) getStubSettings()).deleteSnapshotSettings();
174185
}
175186

187+
/** Returns the object with the settings used for calls to createBackup. */
188+
public UnaryCallSettings<CreateBackupRequest, Operation> createBackupSettings() {
189+
return ((BigtableTableAdminStubSettings) getStubSettings()).createBackupSettings();
190+
}
191+
192+
/** Returns the object with the settings used for calls to createBackup. */
193+
@BetaApi(
194+
"The surface for long-running operations is not stable yet and may change in the future.")
195+
public OperationCallSettings<CreateBackupRequest, Backup, CreateBackupMetadata>
196+
createBackupOperationSettings() {
197+
return ((BigtableTableAdminStubSettings) getStubSettings()).createBackupOperationSettings();
198+
}
199+
200+
/** Returns the object with the settings used for calls to getBackup. */
201+
public UnaryCallSettings<GetBackupRequest, Backup> getBackupSettings() {
202+
return ((BigtableTableAdminStubSettings) getStubSettings()).getBackupSettings();
203+
}
204+
205+
/** Returns the object with the settings used for calls to listBackups. */
206+
public PagedCallSettings<ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
207+
listBackupsSettings() {
208+
return ((BigtableTableAdminStubSettings) getStubSettings()).listBackupsSettings();
209+
}
210+
211+
/** Returns the object with the settings used for calls to updateBackup. */
212+
public UnaryCallSettings<UpdateBackupRequest, Backup> updateBackupSettings() {
213+
return ((BigtableTableAdminStubSettings) getStubSettings()).updateBackupSettings();
214+
}
215+
216+
/** Returns the object with the settings used for calls to deleteBackup. */
217+
public UnaryCallSettings<DeleteBackupRequest, Empty> deleteBackupSettings() {
218+
return ((BigtableTableAdminStubSettings) getStubSettings()).deleteBackupSettings();
219+
}
220+
221+
/** Returns the object with the settings used for calls to restoreTable. */
222+
public UnaryCallSettings<RestoreTableRequest, Operation> restoreTableSettings() {
223+
return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableSettings();
224+
}
225+
226+
/** Returns the object with the settings used for calls to restoreTable. */
227+
@BetaApi(
228+
"The surface for long-running operations is not stable yet and may change in the future.")
229+
public OperationCallSettings<RestoreTableRequest, Table, RestoreTableMetadata>
230+
restoreTableOperationSettings() {
231+
return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableOperationSettings();
232+
}
233+
176234
public static final BaseBigtableTableAdminSettings create(BigtableTableAdminStubSettings stub)
177235
throws IOException {
178236
return new BaseBigtableTableAdminSettings.Builder(stub.toBuilder()).build();
@@ -377,6 +435,54 @@ public UnaryCallSettings.Builder<DeleteSnapshotRequest, Empty> deleteSnapshotSet
377435
return getStubSettingsBuilder().deleteSnapshotSettings();
378436
}
379437

438+
/** Returns the builder for the settings used for calls to createBackup. */
439+
public UnaryCallSettings.Builder<CreateBackupRequest, Operation> createBackupSettings() {
440+
return getStubSettingsBuilder().createBackupSettings();
441+
}
442+
443+
/** Returns the builder for the settings used for calls to createBackup. */
444+
@BetaApi(
445+
"The surface for long-running operations is not stable yet and may change in the future.")
446+
public OperationCallSettings.Builder<CreateBackupRequest, Backup, CreateBackupMetadata>
447+
createBackupOperationSettings() {
448+
return getStubSettingsBuilder().createBackupOperationSettings();
449+
}
450+
451+
/** Returns the builder for the settings used for calls to getBackup. */
452+
public UnaryCallSettings.Builder<GetBackupRequest, Backup> getBackupSettings() {
453+
return getStubSettingsBuilder().getBackupSettings();
454+
}
455+
456+
/** Returns the builder for the settings used for calls to listBackups. */
457+
public PagedCallSettings.Builder<
458+
ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
459+
listBackupsSettings() {
460+
return getStubSettingsBuilder().listBackupsSettings();
461+
}
462+
463+
/** Returns the builder for the settings used for calls to updateBackup. */
464+
public UnaryCallSettings.Builder<UpdateBackupRequest, Backup> updateBackupSettings() {
465+
return getStubSettingsBuilder().updateBackupSettings();
466+
}
467+
468+
/** Returns the builder for the settings used for calls to deleteBackup. */
469+
public UnaryCallSettings.Builder<DeleteBackupRequest, Empty> deleteBackupSettings() {
470+
return getStubSettingsBuilder().deleteBackupSettings();
471+
}
472+
473+
/** Returns the builder for the settings used for calls to restoreTable. */
474+
public UnaryCallSettings.Builder<RestoreTableRequest, Operation> restoreTableSettings() {
475+
return getStubSettingsBuilder().restoreTableSettings();
476+
}
477+
478+
/** Returns the builder for the settings used for calls to restoreTable. */
479+
@BetaApi(
480+
"The surface for long-running operations is not stable yet and may change in the future.")
481+
public OperationCallSettings.Builder<RestoreTableRequest, Table, RestoreTableMetadata>
482+
restoreTableOperationSettings() {
483+
return getStubSettingsBuilder().restoreTableOperationSettings();
484+
}
485+
380486
@Override
381487
public BaseBigtableTableAdminSettings build() throws IOException {
382488
return new BaseBigtableTableAdminSettings(this);

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/Table.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ public enum ReplicationState {
5555
*/
5656
READY(com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.READY),
5757

58+
/**
59+
* The table is fully created and ready for use after a restore, and is being optimized for
60+
* performance. When optimizations are complete, the table will transition to `READY` state.
61+
*/
62+
READY_OPTIMIZING(
63+
com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.READY_OPTIMIZING),
64+
5865
/** The replication state of table is not known by this client. Please upgrade your client. */
5966
UNRECOGNIZED(com.google.bigtable.admin.v2.Table.ClusterState.ReplicationState.UNRECOGNIZED);
6067

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package com.google.cloud.bigtable.admin.v2.stub;
1717

18+
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListBackupsPagedResponse;
1819
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListSnapshotsPagedResponse;
1920
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListTablesPagedResponse;
2021

@@ -23,27 +24,37 @@
2324
import com.google.api.gax.core.BackgroundResource;
2425
import com.google.api.gax.rpc.OperationCallable;
2526
import com.google.api.gax.rpc.UnaryCallable;
27+
import com.google.bigtable.admin.v2.Backup;
2628
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
2729
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
30+
import com.google.bigtable.admin.v2.CreateBackupMetadata;
31+
import com.google.bigtable.admin.v2.CreateBackupRequest;
2832
import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata;
2933
import com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest;
3034
import com.google.bigtable.admin.v2.CreateTableRequest;
35+
import com.google.bigtable.admin.v2.DeleteBackupRequest;
3136
import com.google.bigtable.admin.v2.DeleteSnapshotRequest;
3237
import com.google.bigtable.admin.v2.DeleteTableRequest;
3338
import com.google.bigtable.admin.v2.DropRowRangeRequest;
3439
import com.google.bigtable.admin.v2.GenerateConsistencyTokenRequest;
3540
import com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse;
41+
import com.google.bigtable.admin.v2.GetBackupRequest;
3642
import com.google.bigtable.admin.v2.GetSnapshotRequest;
3743
import com.google.bigtable.admin.v2.GetTableRequest;
44+
import com.google.bigtable.admin.v2.ListBackupsRequest;
45+
import com.google.bigtable.admin.v2.ListBackupsResponse;
3846
import com.google.bigtable.admin.v2.ListSnapshotsRequest;
3947
import com.google.bigtable.admin.v2.ListSnapshotsResponse;
4048
import com.google.bigtable.admin.v2.ListTablesRequest;
4149
import com.google.bigtable.admin.v2.ListTablesResponse;
4250
import com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest;
51+
import com.google.bigtable.admin.v2.RestoreTableMetadata;
52+
import com.google.bigtable.admin.v2.RestoreTableRequest;
4353
import com.google.bigtable.admin.v2.Snapshot;
4454
import com.google.bigtable.admin.v2.SnapshotTableMetadata;
4555
import com.google.bigtable.admin.v2.SnapshotTableRequest;
4656
import com.google.bigtable.admin.v2.Table;
57+
import com.google.bigtable.admin.v2.UpdateBackupRequest;
4758
import com.google.iam.v1.GetIamPolicyRequest;
4859
import com.google.iam.v1.Policy;
4960
import com.google.iam.v1.SetIamPolicyRequest;
@@ -155,6 +166,46 @@ public UnaryCallable<DeleteSnapshotRequest, Empty> deleteSnapshotCallable() {
155166
throw new UnsupportedOperationException("Not implemented: deleteSnapshotCallable()");
156167
}
157168

169+
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
170+
public OperationCallable<CreateBackupRequest, Backup, CreateBackupMetadata>
171+
createBackupOperationCallable() {
172+
throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()");
173+
}
174+
175+
public UnaryCallable<CreateBackupRequest, Operation> createBackupCallable() {
176+
throw new UnsupportedOperationException("Not implemented: createBackupCallable()");
177+
}
178+
179+
public UnaryCallable<GetBackupRequest, Backup> getBackupCallable() {
180+
throw new UnsupportedOperationException("Not implemented: getBackupCallable()");
181+
}
182+
183+
public UnaryCallable<ListBackupsRequest, ListBackupsPagedResponse> listBackupsPagedCallable() {
184+
throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()");
185+
}
186+
187+
public UnaryCallable<ListBackupsRequest, ListBackupsResponse> listBackupsCallable() {
188+
throw new UnsupportedOperationException("Not implemented: listBackupsCallable()");
189+
}
190+
191+
public UnaryCallable<UpdateBackupRequest, Backup> updateBackupCallable() {
192+
throw new UnsupportedOperationException("Not implemented: updateBackupCallable()");
193+
}
194+
195+
public UnaryCallable<DeleteBackupRequest, Empty> deleteBackupCallable() {
196+
throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()");
197+
}
198+
199+
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
200+
public OperationCallable<RestoreTableRequest, Table, RestoreTableMetadata>
201+
restoreTableOperationCallable() {
202+
throw new UnsupportedOperationException("Not implemented: restoreTableOperationCallable()");
203+
}
204+
205+
public UnaryCallable<RestoreTableRequest, Operation> restoreTableCallable() {
206+
throw new UnsupportedOperationException("Not implemented: restoreTableCallable()");
207+
}
208+
158209
@Override
159210
public abstract void close();
160211
}

0 commit comments

Comments
 (0)