Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#48)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 4, 2021
1 parent 0f04d0f commit 8e485f290f377afd8f10003749978adbf95405ca
@@ -206,14 +206,13 @@ public CloudShellServiceStubSettings.Builder getStubSettingsBuilder() {
return ((CloudShellServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
@@ -512,14 +512,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
@@ -22,7 +22,6 @@
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.shell.v1.AddPublicKeyMetadata;
import com.google.cloud.shell.v1.AddPublicKeyRequest;
@@ -44,7 +43,6 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

@@ -170,65 +168,50 @@ protected GrpcCloudShellServiceStub(
GrpcCallSettings.<GetEnvironmentRequest, Environment>newBuilder()
.setMethodDescriptor(getEnvironmentMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetEnvironmentRequest>() {
@Override
public Map<String, String> extract(GetEnvironmentRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<StartEnvironmentRequest, Operation> startEnvironmentTransportSettings =
GrpcCallSettings.<StartEnvironmentRequest, Operation>newBuilder()
.setMethodDescriptor(startEnvironmentMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<StartEnvironmentRequest>() {
@Override
public Map<String, String> extract(StartEnvironmentRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<AuthorizeEnvironmentRequest, Operation> authorizeEnvironmentTransportSettings =
GrpcCallSettings.<AuthorizeEnvironmentRequest, Operation>newBuilder()
.setMethodDescriptor(authorizeEnvironmentMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<AuthorizeEnvironmentRequest>() {
@Override
public Map<String, String> extract(AuthorizeEnvironmentRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<AddPublicKeyRequest, Operation> addPublicKeyTransportSettings =
GrpcCallSettings.<AddPublicKeyRequest, Operation>newBuilder()
.setMethodDescriptor(addPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<AddPublicKeyRequest>() {
@Override
public Map<String, String> extract(AddPublicKeyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("environment", String.valueOf(request.getEnvironment()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("environment", String.valueOf(request.getEnvironment()));
return params.build();
})
.build();
GrpcCallSettings<RemovePublicKeyRequest, Operation> removePublicKeyTransportSettings =
GrpcCallSettings.<RemovePublicKeyRequest, Operation>newBuilder()
.setMethodDescriptor(removePublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<RemovePublicKeyRequest>() {
@Override
public Map<String, String> extract(RemovePublicKeyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("environment", String.valueOf(request.getEnvironment()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("environment", String.valueOf(request.getEnvironment()));
return params.build();
})
.build();

0 comments on commit 8e485f2

Please sign in to comment.