Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to java microgenerator #629

Merged
merged 8 commits into from Feb 23, 2021

Large diffs are not rendered by default.

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