Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 12f9e3d

Browse files
feat!: release gapic-generator-java v2.0.0
Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Aug 3 13:48:38 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: googleapis/googleapis@d9eaf41
1 parent dfc6dcf commit 12f9e3d

File tree

6 files changed

+12
-21
lines changed

6 files changed

+12
-21
lines changed

google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,13 @@ public WebRiskServiceStubSettings.Builder getStubSettingsBuilder() {
180180
return ((WebRiskServiceStubSettings.Builder) getStubSettings());
181181
}
182182

183-
// NEXT_MAJOR_VER: remove 'throws Exception'.
184183
/**
185184
* Applies the given settings updater function to all of the unary API methods in this service.
186185
*
187186
* <p>Note: This method does not support applying settings to streaming methods.
188187
*/
189188
public Builder applyToAllUnaryMethods(
190-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
189+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
191190
super.applyToAllUnaryMethods(
192191
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
193192
return this;

google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceStub.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import com.google.api.gax.grpc.GrpcCallSettings;
2222
import com.google.api.gax.grpc.GrpcStubCallableFactory;
2323
import com.google.api.gax.rpc.ClientContext;
24-
import com.google.api.gax.rpc.RequestParamsExtractor;
2524
import com.google.api.gax.rpc.UnaryCallable;
2625
import com.google.common.collect.ImmutableMap;
2726
import com.google.longrunning.stub.GrpcOperationsStub;
@@ -36,7 +35,6 @@
3635
import io.grpc.MethodDescriptor;
3736
import io.grpc.protobuf.ProtoUtils;
3837
import java.io.IOException;
39-
import java.util.Map;
4038
import java.util.concurrent.TimeUnit;
4139
import javax.annotation.Generated;
4240

@@ -156,13 +154,10 @@ protected GrpcWebRiskServiceStub(
156154
GrpcCallSettings.<CreateSubmissionRequest, Submission>newBuilder()
157155
.setMethodDescriptor(createSubmissionMethodDescriptor)
158156
.setParamsExtractor(
159-
new RequestParamsExtractor<CreateSubmissionRequest>() {
160-
@Override
161-
public Map<String, String> extract(CreateSubmissionRequest request) {
162-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
163-
params.put("parent", String.valueOf(request.getParent()));
164-
return params.build();
165-
}
157+
request -> {
158+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
159+
params.put("parent", String.valueOf(request.getParent()));
160+
return params.build();
166161
})
167162
.build();
168163

google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,13 @@ private static Builder initDefaults(Builder builder) {
322322
return builder;
323323
}
324324

325-
// NEXT_MAJOR_VER: remove 'throws Exception'.
326325
/**
327326
* Applies the given settings updater function to all of the unary API methods in this service.
328327
*
329328
* <p>Note: This method does not support applying settings to streaming methods.
330329
*/
331330
public Builder applyToAllUnaryMethods(
332-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
331+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
333332
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
334333
return this;
335334
}

google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,13 @@ public WebRiskServiceV1Beta1StubSettings.Builder getStubSettingsBuilder() {
176176
return ((WebRiskServiceV1Beta1StubSettings.Builder) getStubSettings());
177177
}
178178

179-
// NEXT_MAJOR_VER: remove 'throws Exception'.
180179
/**
181180
* Applies the given settings updater function to all of the unary API methods in this service.
182181
*
183182
* <p>Note: This method does not support applying settings to streaming methods.
184183
*/
185184
public Builder applyToAllUnaryMethods(
186-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
185+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
187186
super.applyToAllUnaryMethods(
188187
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
189188
return this;

google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,13 @@ private static Builder initDefaults(Builder builder) {
292292
return builder;
293293
}
294294

295-
// NEXT_MAJOR_VER: remove 'throws Exception'.
296295
/**
297296
* Applies the given settings updater function to all of the unary API methods in this service.
298297
*
299298
* <p>Note: This method does not support applying settings to streaming methods.
300299
*/
301300
public Builder applyToAllUnaryMethods(
302-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
301+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
303302
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
304303
return this;
305304
}

synth.metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "bb0a090d9204110042ab5dee2ce9e06e8071ce54",
15-
"internalRef": "388499329"
14+
"sha": "d9eaf41de44d953458b18712a3f240bb4c564e48",
15+
"internalRef": "388535346"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "bb0a090d9204110042ab5dee2ce9e06e8071ce54",
23-
"internalRef": "388499329"
22+
"sha": "d9eaf41de44d953458b18712a3f240bb4c564e48",
23+
"internalRef": "388535346"
2424
}
2525
},
2626
{

0 commit comments

Comments
 (0)