Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#28)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 4, 2021
1 parent 1c3c757 commit 4882d7dd065b80cd54a1ff275eb9c9ddd8fc8b0e
@@ -157,14 +157,13 @@ public QuotaControllerStubSettings.Builder getStubSettingsBuilder() {
return ((QuotaControllerStubSettings.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;
@@ -162,14 +162,13 @@ public ServiceControllerStubSettings.Builder getStubSettingsBuilder() {
return ((ServiceControllerStubSettings.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;
@@ -21,7 +21,6 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.api.servicecontrol.v1.AllocateQuotaRequest;
import com.google.api.servicecontrol.v1.AllocateQuotaResponse;
@@ -30,7 +29,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;

@@ -103,13 +101,10 @@ protected GrpcQuotaControllerStub(
GrpcCallSettings.<AllocateQuotaRequest, AllocateQuotaResponse>newBuilder()
.setMethodDescriptor(allocateQuotaMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<AllocateQuotaRequest>() {
@Override
public Map<String, String> extract(AllocateQuotaRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("service_name", String.valueOf(request.getServiceName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("service_name", String.valueOf(request.getServiceName()));
return params.build();
})
.build();

@@ -21,7 +21,6 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.api.servicecontrol.v1.CheckRequest;
import com.google.api.servicecontrol.v1.CheckResponse;
@@ -32,7 +31,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;

@@ -111,26 +109,20 @@ protected GrpcServiceControllerStub(
GrpcCallSettings.<CheckRequest, CheckResponse>newBuilder()
.setMethodDescriptor(checkMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CheckRequest>() {
@Override
public Map<String, String> extract(CheckRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("service_name", String.valueOf(request.getServiceName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("service_name", String.valueOf(request.getServiceName()));
return params.build();
})
.build();
GrpcCallSettings<ReportRequest, ReportResponse> reportTransportSettings =
GrpcCallSettings.<ReportRequest, ReportResponse>newBuilder()
.setMethodDescriptor(reportMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ReportRequest>() {
@Override
public Map<String, String> extract(ReportRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("service_name", String.valueOf(request.getServiceName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("service_name", String.valueOf(request.getServiceName()));
return params.build();
})
.build();

@@ -238,14 +238,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;
}
@@ -276,14 +276,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;
}

0 comments on commit 4882d7d

Please sign in to comment.