Skip to content

Commit 60d17dc

Browse files
feat: migrate to java microgenerator (#629)
* chore: migrate java-bigtable to the Java microgenerator Committer: @miraleung PiperOrigin-RevId: 346117305 Source-Author: Google APIs <[email protected]> Source-Date: Mon Dec 7 10:01:05 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 93519d59c61f0e45e00e8b6f76a7f588f4937183 Source-Link: googleapis/googleapis@93519d5 * chore: update gapic-generator-java to 0.0.8 Committer: @miraleung PiperOrigin-RevId: 346126713 Source-Author: Google APIs <[email protected]> Source-Date: Mon Dec 7 10:39:38 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: b8b2f8c288cec1f673bf10aa5008819c1576bf2e Source-Link: googleapis/googleapis@b8b2f8c * chore: update gapic-generator-java to 0.0.9 Committer: @miraleung PiperOrigin-RevId: 346372957 Source-Author: Google APIs <[email protected]> Source-Date: Tue Dec 8 11:37:30 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 857f70daef9f4c38f042fb3dfb7b8423ae18fd19 Source-Link: googleapis/googleapis@857f70d * feat: migrate bigtable retry/timeout settings to gRPC's service configs Committer: @miraleung PiperOrigin-RevId: 346894665 Source-Author: Google APIs <[email protected]> Source-Date: Thu Dec 10 16:55:31 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: cbbd3170bcf217e36ae72f4ac522449bf861346f Source-Link: googleapis/googleapis@cbbd317 * chore: update gapic-generator-java to 0.0.18 Committer: @miraleung PiperOrigin-RevId: 350949863 Source-Author: Google APIs <[email protected]> Source-Date: Sat Jan 9 14:01:49 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 91e206bcfeaf8948ea03fe3cb1b7616108496cd3 Source-Link: googleapis/googleapis@91e206b * fix: add retryableStatusCodes back to bigtable Committer: @miraleung PiperOrigin-RevId: 351852297 Source-Author: Google APIs <[email protected]> Source-Date: Thu Jan 14 12:19:44 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: df49bfe877fff8c37f60855a7e754b7a4369709e Source-Link: googleapis/googleapis@df49bfe * feat: generate sample code in the Java microgenerator Committer: @miraleung PiperOrigin-RevId: 356341083 Source-Author: Google APIs <[email protected]> Source-Date: Mon Feb 8 13:33:28 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 8d8c008e56f1af31d57f75561e0f1848ffb29eeb Source-Link: googleapis/googleapis@8d8c008 Co-authored-by: kolea2 <[email protected]>
1 parent d2d4a27 commit 60d17dc

32 files changed

+6382
-4111
lines changed

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

+788-658
Large diffs are not rendered by default.

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

+11-28
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.cloud.bigtable.admin.v2;
1718

1819
import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse;
@@ -67,20 +68,19 @@
6768
import java.util.List;
6869
import javax.annotation.Generated;
6970

70-
// AUTO-GENERATED DOCUMENTATION AND CLASS
71+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
7172
/** For internal use only. */
7273
@Generated("by gapic-generator")
7374
@InternalApi
7475
public class BaseBigtableInstanceAdminSettings
7576
extends ClientSettings<BaseBigtableInstanceAdminSettings> {
77+
7678
/** Returns the object with the settings used for calls to createInstance. */
7779
public UnaryCallSettings<CreateInstanceRequest, Operation> createInstanceSettings() {
7880
return ((BigtableInstanceAdminStubSettings) getStubSettings()).createInstanceSettings();
7981
}
8082

8183
/** Returns the object with the settings used for calls to createInstance. */
82-
@BetaApi(
83-
"The surface for long-running operations is not stable yet and may change in the future.")
8484
public OperationCallSettings<CreateInstanceRequest, Instance, CreateInstanceMetadata>
8585
createInstanceOperationSettings() {
8686
return ((BigtableInstanceAdminStubSettings) getStubSettings())
@@ -104,8 +104,6 @@ public UnaryCallSettings<ListInstancesRequest, ListInstancesResponse> listInstan
104104
}
105105

106106
/** Returns the object with the settings used for calls to partialUpdateInstance. */
107-
@BetaApi(
108-
"The surface for long-running operations is not stable yet and may change in the future.")
109107
public OperationCallSettings<PartialUpdateInstanceRequest, Instance, UpdateInstanceMetadata>
110108
partialUpdateInstanceOperationSettings() {
111109
return ((BigtableInstanceAdminStubSettings) getStubSettings())
@@ -123,8 +121,6 @@ public UnaryCallSettings<CreateClusterRequest, Operation> createClusterSettings(
123121
}
124122

125123
/** Returns the object with the settings used for calls to createCluster. */
126-
@BetaApi(
127-
"The surface for long-running operations is not stable yet and may change in the future.")
128124
public OperationCallSettings<CreateClusterRequest, Cluster, CreateClusterMetadata>
129125
createClusterOperationSettings() {
130126
return ((BigtableInstanceAdminStubSettings) getStubSettings()).createClusterOperationSettings();
@@ -146,8 +142,6 @@ public UnaryCallSettings<Cluster, Operation> updateClusterSettings() {
146142
}
147143

148144
/** Returns the object with the settings used for calls to updateCluster. */
149-
@BetaApi(
150-
"The surface for long-running operations is not stable yet and may change in the future.")
151145
public OperationCallSettings<Cluster, Cluster, UpdateClusterMetadata>
152146
updateClusterOperationSettings() {
153147
return ((BigtableInstanceAdminStubSettings) getStubSettings()).updateClusterOperationSettings();
@@ -181,8 +175,6 @@ public UnaryCallSettings<UpdateAppProfileRequest, Operation> updateAppProfileSet
181175
}
182176

183177
/** Returns the object with the settings used for calls to updateAppProfile. */
184-
@BetaApi(
185-
"The surface for long-running operations is not stable yet and may change in the future.")
186178
public OperationCallSettings<UpdateAppProfileRequest, AppProfile, UpdateAppProfileMetadata>
187179
updateAppProfileOperationSettings() {
188180
return ((BigtableInstanceAdminStubSettings) getStubSettings())
@@ -271,18 +263,15 @@ protected BaseBigtableInstanceAdminSettings(Builder settingsBuilder) throws IOEx
271263
/** Builder for BaseBigtableInstanceAdminSettings. */
272264
public static class Builder
273265
extends ClientSettings.Builder<BaseBigtableInstanceAdminSettings, Builder> {
266+
274267
protected Builder() throws IOException {
275-
this((ClientContext) null);
268+
this(((ClientContext) null));
276269
}
277270

278271
protected Builder(ClientContext clientContext) {
279272
super(BigtableInstanceAdminStubSettings.newBuilder(clientContext));
280273
}
281274

282-
private static Builder createDefault() {
283-
return new Builder(BigtableInstanceAdminStubSettings.newBuilder());
284-
}
285-
286275
protected Builder(BaseBigtableInstanceAdminSettings settings) {
287276
super(settings.getStubSettings().toBuilder());
288277
}
@@ -291,11 +280,15 @@ protected Builder(BigtableInstanceAdminStubSettings.Builder stubSettings) {
291280
super(stubSettings);
292281
}
293282

283+
private static Builder createDefault() {
284+
return new Builder(BigtableInstanceAdminStubSettings.newBuilder());
285+
}
286+
294287
public BigtableInstanceAdminStubSettings.Builder getStubSettingsBuilder() {
295288
return ((BigtableInstanceAdminStubSettings.Builder) getStubSettings());
296289
}
297290

298-
// NEXT_MAJOR_VER: remove 'throws Exception'
291+
// NEXT_MAJOR_VER: remove 'throws Exception'.
299292
/**
300293
* Applies the given settings updater function to all of the unary API methods in this service.
301294
*
@@ -314,8 +307,6 @@ public UnaryCallSettings.Builder<CreateInstanceRequest, Operation> createInstanc
314307
}
315308

316309
/** Returns the builder for the settings used for calls to createInstance. */
317-
@BetaApi(
318-
"The surface for long-running operations is not stable yet and may change in the future.")
319310
public OperationCallSettings.Builder<CreateInstanceRequest, Instance, CreateInstanceMetadata>
320311
createInstanceOperationSettings() {
321312
return getStubSettingsBuilder().createInstanceOperationSettings();
@@ -339,8 +330,6 @@ public UnaryCallSettings.Builder<GetInstanceRequest, Instance> getInstanceSettin
339330
}
340331

341332
/** Returns the builder for the settings used for calls to partialUpdateInstance. */
342-
@BetaApi(
343-
"The surface for long-running operations is not stable yet and may change in the future.")
344333
public OperationCallSettings.Builder<
345334
PartialUpdateInstanceRequest, Instance, UpdateInstanceMetadata>
346335
partialUpdateInstanceOperationSettings() {
@@ -358,8 +347,6 @@ public UnaryCallSettings.Builder<CreateClusterRequest, Operation> createClusterS
358347
}
359348

360349
/** Returns the builder for the settings used for calls to createCluster. */
361-
@BetaApi(
362-
"The surface for long-running operations is not stable yet and may change in the future.")
363350
public OperationCallSettings.Builder<CreateClusterRequest, Cluster, CreateClusterMetadata>
364351
createClusterOperationSettings() {
365352
return getStubSettingsBuilder().createClusterOperationSettings();
@@ -382,8 +369,6 @@ public UnaryCallSettings.Builder<Cluster, Operation> updateClusterSettings() {
382369
}
383370

384371
/** Returns the builder for the settings used for calls to updateCluster. */
385-
@BetaApi(
386-
"The surface for long-running operations is not stable yet and may change in the future.")
387372
public OperationCallSettings.Builder<Cluster, Cluster, UpdateClusterMetadata>
388373
updateClusterOperationSettings() {
389374
return getStubSettingsBuilder().updateClusterOperationSettings();
@@ -419,8 +404,6 @@ public UnaryCallSettings.Builder<GetAppProfileRequest, AppProfile> getAppProfile
419404
}
420405

421406
/** Returns the builder for the settings used for calls to updateAppProfile. */
422-
@BetaApi(
423-
"The surface for long-running operations is not stable yet and may change in the future.")
424407
public OperationCallSettings.Builder<
425408
UpdateAppProfileRequest, AppProfile, UpdateAppProfileMetadata>
426409
updateAppProfileOperationSettings() {

0 commit comments

Comments
 (0)