Skip to content

Commit

Permalink
feat: migrate to java microgenerator (googleapis#629)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
2 people authored and ad548 committed Mar 13, 2021
1 parent 56e65e8 commit d37739a
Show file tree
Hide file tree
Showing 32 changed files with 6,382 additions and 4,111 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.bigtable.admin.v2;

import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse;
Expand Down Expand Up @@ -67,20 +68,19 @@
import java.util.List;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/** For internal use only. */
@Generated("by gapic-generator")
@InternalApi
public class BaseBigtableInstanceAdminSettings
extends ClientSettings<BaseBigtableInstanceAdminSettings> {

/** Returns the object with the settings used for calls to createInstance. */
public UnaryCallSettings<CreateInstanceRequest, Operation> createInstanceSettings() {
return ((BigtableInstanceAdminStubSettings) getStubSettings()).createInstanceSettings();
}

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

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

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

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

/** Returns the object with the settings used for calls to updateAppProfile. */
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings<UpdateAppProfileRequest, AppProfile, UpdateAppProfileMetadata>
updateAppProfileOperationSettings() {
return ((BigtableInstanceAdminStubSettings) getStubSettings())
Expand Down Expand Up @@ -271,18 +263,15 @@ protected BaseBigtableInstanceAdminSettings(Builder settingsBuilder) throws IOEx
/** Builder for BaseBigtableInstanceAdminSettings. */
public static class Builder
extends ClientSettings.Builder<BaseBigtableInstanceAdminSettings, Builder> {

protected Builder() throws IOException {
this((ClientContext) null);
this(((ClientContext) null));
}

protected Builder(ClientContext clientContext) {
super(BigtableInstanceAdminStubSettings.newBuilder(clientContext));
}

private static Builder createDefault() {
return new Builder(BigtableInstanceAdminStubSettings.newBuilder());
}

protected Builder(BaseBigtableInstanceAdminSettings settings) {
super(settings.getStubSettings().toBuilder());
}
Expand All @@ -291,11 +280,15 @@ protected Builder(BigtableInstanceAdminStubSettings.Builder stubSettings) {
super(stubSettings);
}

private static Builder createDefault() {
return new Builder(BigtableInstanceAdminStubSettings.newBuilder());
}

public BigtableInstanceAdminStubSettings.Builder getStubSettingsBuilder() {
return ((BigtableInstanceAdminStubSettings.Builder) getStubSettings());
}

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

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

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

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

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

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

0 comments on commit d37739a

Please sign in to comment.