Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#34)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 9, 2021
1 parent 865c4a8 commit d1404b2cba66ea852e2f6366ec360c444491276b
@@ -17,11 +17,12 @@ docker:

deep-remove-regex:
- "/grpc-google-.*/src"
- "/proto-google-.*/src"
- "/proto-google-cloud.*/src"
- "/google-.*/src"

deep-preserve-regex:
- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
- "/proto-google-devtools-source-protos"

deep-copy-regex:
- source: "/google/devtools/clouddebugger/(v.*)/.*-java/proto-google-.*/src"
@@ -173,14 +173,13 @@ public Controller2StubSettings.Builder getStubSettingsBuilder() {
return ((Controller2StubSettings.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;
@@ -185,14 +185,13 @@ public Debugger2StubSettings.Builder getStubSettingsBuilder() {
return ((Debugger2StubSettings.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;
@@ -310,14 +310,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;
}
@@ -345,14 +345,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;
}
@@ -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.common.collect.ImmutableMap;
import com.google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest;
@@ -34,7 +33,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;

@@ -143,13 +141,10 @@ protected GrpcController2Stub(
.<ListActiveBreakpointsRequest, ListActiveBreakpointsResponse>newBuilder()
.setMethodDescriptor(listActiveBreakpointsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListActiveBreakpointsRequest>() {
@Override
public Map<String, String> extract(ListActiveBreakpointsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
})
.build();
GrpcCallSettings<UpdateActiveBreakpointRequest, UpdateActiveBreakpointResponse>
@@ -158,15 +153,11 @@ public Map<String, String> extract(ListActiveBreakpointsRequest request) {
.<UpdateActiveBreakpointRequest, UpdateActiveBreakpointResponse>newBuilder()
.setMethodDescriptor(updateActiveBreakpointMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateActiveBreakpointRequest>() {
@Override
public Map<String, String> extract(UpdateActiveBreakpointRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put(
"breakpoint.id", String.valueOf(request.getBreakpoint().getId()));
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("breakpoint.id", String.valueOf(request.getBreakpoint().getId()));
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
})
.build();

@@ -212,7 +203,13 @@ public GrpcOperationsStub getOperationsStub() {

@Override
public final void close() {
shutdown();
try {
backgroundResources.close();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new IllegalStateException("Failed to close resource", e);
}
}

@Override
@@ -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.common.collect.ImmutableMap;
import com.google.devtools.clouddebugger.v2.DeleteBreakpointRequest;
@@ -38,7 +37,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;

@@ -156,55 +154,43 @@ protected GrpcDebugger2Stub(
GrpcCallSettings.<SetBreakpointRequest, SetBreakpointResponse>newBuilder()
.setMethodDescriptor(setBreakpointMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<SetBreakpointRequest>() {
@Override
public Map<String, String> extract(SetBreakpointRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
})
.build();
GrpcCallSettings<GetBreakpointRequest, GetBreakpointResponse> getBreakpointTransportSettings =
GrpcCallSettings.<GetBreakpointRequest, GetBreakpointResponse>newBuilder()
.setMethodDescriptor(getBreakpointMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetBreakpointRequest>() {
@Override
public Map<String, String> extract(GetBreakpointRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("breakpoint_id", String.valueOf(request.getBreakpointId()));
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("breakpoint_id", String.valueOf(request.getBreakpointId()));
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
})
.build();
GrpcCallSettings<DeleteBreakpointRequest, Empty> deleteBreakpointTransportSettings =
GrpcCallSettings.<DeleteBreakpointRequest, Empty>newBuilder()
.setMethodDescriptor(deleteBreakpointMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteBreakpointRequest>() {
@Override
public Map<String, String> extract(DeleteBreakpointRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("breakpoint_id", String.valueOf(request.getBreakpointId()));
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("breakpoint_id", String.valueOf(request.getBreakpointId()));
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
})
.build();
GrpcCallSettings<ListBreakpointsRequest, ListBreakpointsResponse>
listBreakpointsTransportSettings =
GrpcCallSettings.<ListBreakpointsRequest, ListBreakpointsResponse>newBuilder()
.setMethodDescriptor(listBreakpointsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListBreakpointsRequest>() {
@Override
public Map<String, String> extract(ListBreakpointsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("debuggee_id", String.valueOf(request.getDebuggeeId()));
return params.build();
})
.build();
GrpcCallSettings<ListDebuggeesRequest, ListDebuggeesResponse> listDebuggeesTransportSettings =
@@ -263,7 +249,13 @@ public UnaryCallable<ListDebuggeesRequest, ListDebuggeesResponse> listDebuggeesC

@Override
public final void close() {
shutdown();
try {
backgroundResources.close();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new IllegalStateException("Failed to close resource", e);
}
}

@Override

0 comments on commit d1404b2

Please sign in to comment.