Skip to content

Commit b6efd2d

Browse files
author
Tracy Cui
committed
revert auto gen changes/files for copy backup API
1 parent 6861857 commit b6efd2d

19 files changed

Lines changed: 2189 additions & 6027 deletions

File tree

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

Lines changed: 63 additions & 479 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
import com.google.bigtable.admin.v2.Backup;
3737
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
3838
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
39-
import com.google.bigtable.admin.v2.CopyBackupMetadata;
40-
import com.google.bigtable.admin.v2.CopyBackupRequest;
4139
import com.google.bigtable.admin.v2.CreateBackupMetadata;
4240
import com.google.bigtable.admin.v2.CreateBackupRequest;
4341
import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata;
@@ -83,43 +81,7 @@
8381
import javax.annotation.Generated;
8482

8583
// AUTO-GENERATED DOCUMENTATION AND CLASS.
86-
/**
87-
* Settings class to configure an instance of {@link BaseBigtableTableAdminClient}.
88-
*
89-
* <p>The default instance has everything set to sensible defaults:
90-
*
91-
* <ul>
92-
* <li>The default service address (bigtableadmin.googleapis.com) and default port (443) are used.
93-
* <li>Credentials are acquired automatically through Application Default Credentials.
94-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
95-
* </ul>
96-
*
97-
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
98-
* build() is called, the tree of builders is called to create the complete settings object.
99-
*
100-
* <p>For example, to set the total timeout of createTable to 30 seconds:
101-
*
102-
* <pre>{@code
103-
* // This snippet has been automatically generated and should be regarded as a code template only.
104-
* // It will require modifications to work:
105-
* // - It may require correct/in-range values for request initialization.
106-
* // - It may require specifying regional endpoints when creating the service client as shown in
107-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
108-
* BaseBigtableTableAdminSettings.Builder baseBigtableTableAdminSettingsBuilder =
109-
* BaseBigtableTableAdminSettings.newBuilder();
110-
* baseBigtableTableAdminSettingsBuilder
111-
* .createTableSettings()
112-
* .setRetrySettings(
113-
* baseBigtableTableAdminSettingsBuilder
114-
* .createTableSettings()
115-
* .getRetrySettings()
116-
* .toBuilder()
117-
* .setTotalTimeout(Duration.ofSeconds(30))
118-
* .build());
119-
* BaseBigtableTableAdminSettings baseBigtableTableAdminSettings =
120-
* baseBigtableTableAdminSettingsBuilder.build();
121-
* }</pre>
122-
*/
84+
/** For internal use only. */
12385
@Generated("by gapic-generator")
12486
@InternalApi
12587
public class BaseBigtableTableAdminSettings extends ClientSettings<BaseBigtableTableAdminSettings> {
@@ -273,17 +235,6 @@ public UnaryCallSettings<RestoreTableRequest, Operation> restoreTableSettings()
273235
return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableOperationSettings();
274236
}
275237

276-
/** Returns the object with the settings used for calls to copyBackup. */
277-
public UnaryCallSettings<CopyBackupRequest, Operation> copyBackupSettings() {
278-
return ((BigtableTableAdminStubSettings) getStubSettings()).copyBackupSettings();
279-
}
280-
281-
/** Returns the object with the settings used for calls to copyBackup. */
282-
public OperationCallSettings<CopyBackupRequest, Backup, CopyBackupMetadata>
283-
copyBackupOperationSettings() {
284-
return ((BigtableTableAdminStubSettings) getStubSettings()).copyBackupOperationSettings();
285-
}
286-
287238
/** Returns the object with the settings used for calls to getIamPolicy. */
288239
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
289240
return ((BigtableTableAdminStubSettings) getStubSettings()).getIamPolicySettings();
@@ -550,17 +501,6 @@ public UnaryCallSettings.Builder<RestoreTableRequest, Operation> restoreTableSet
550501
return getStubSettingsBuilder().restoreTableOperationSettings();
551502
}
552503

553-
/** Returns the builder for the settings used for calls to copyBackup. */
554-
public UnaryCallSettings.Builder<CopyBackupRequest, Operation> copyBackupSettings() {
555-
return getStubSettingsBuilder().copyBackupSettings();
556-
}
557-
558-
/** Returns the builder for the settings used for calls to copyBackup. */
559-
public OperationCallSettings.Builder<CopyBackupRequest, Backup, CopyBackupMetadata>
560-
copyBackupOperationSettings() {
561-
return getStubSettingsBuilder().copyBackupOperationSettings();
562-
}
563-
564504
/** Returns the builder for the settings used for calls to getIamPolicy. */
565505
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
566506
return getStubSettingsBuilder().getIamPolicySettings();

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

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import com.google.bigtable.admin.v2.Backup;
2828
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
2929
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
30-
import com.google.bigtable.admin.v2.CopyBackupMetadata;
31-
import com.google.bigtable.admin.v2.CopyBackupRequest;
3230
import com.google.bigtable.admin.v2.CreateBackupMetadata;
3331
import com.google.bigtable.admin.v2.CreateBackupRequest;
3432
import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata;
@@ -72,11 +70,7 @@
7270
import javax.annotation.Generated;
7371

7472
// AUTO-GENERATED DOCUMENTATION AND CLASS.
75-
/**
76-
* Base stub class for the BigtableTableAdmin service API.
77-
*
78-
* <p>This class is for advanced usage and reflects the underlying API directly.
79-
*/
73+
/** For internal use only. */
8074
@Generated("by gapic-generator")
8175
@InternalApi
8276
public abstract class BigtableTableAdminStub implements BackgroundResource {
@@ -216,15 +210,6 @@ public UnaryCallable<RestoreTableRequest, Operation> restoreTableCallable() {
216210
throw new UnsupportedOperationException("Not implemented: restoreTableCallable()");
217211
}
218212

219-
public OperationCallable<CopyBackupRequest, Backup, CopyBackupMetadata>
220-
copyBackupOperationCallable() {
221-
throw new UnsupportedOperationException("Not implemented: copyBackupOperationCallable()");
222-
}
223-
224-
public UnaryCallable<CopyBackupRequest, Operation> copyBackupCallable() {
225-
throw new UnsupportedOperationException("Not implemented: copyBackupCallable()");
226-
}
227-
228213
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
229214
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
230215
}

0 commit comments

Comments
 (0)