Skip to content

Commit fe6cd83

Browse files
chore(deps): [cloudfunctions] Update gapic-generator-java to 2.21.0 (#9482)
* chore(deps): Update gapic-generator-java to 2.21.0 PiperOrigin-RevId: 538365689 Source-Link: googleapis/googleapis@7ac8a24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e58eedb75d3c07878097cdfbfd3ffdb7646763a3 Copy-Tag: eyJwIjoiamF2YS1mdW5jdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImU1OGVlZGI3NWQzYzA3ODc4MDk3Y2RmYmZkM2ZmZGI3NjQ2NzYzYTMifQ== chore: upgrading protobuf to 23.2 for code generation PiperOrigin-RevId: 537035741 Source-Link: googleapis/googleapis@640f743 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ec02ed2022878f99c94c763060ff6a018896b6e Copy-Tag: eyJwIjoiamF2YS1mdW5jdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjVlYzAyZWQyMDIyODc4Zjk5Yzk0Yzc2MzA2MGZmNmEwMTg4OTZiNmUifQ== feat: ListFunctions now include metadata which indicates whether a function is a `GEN_1` or `GEN_2` function feat: KMS crypto keys can now be specified when uploading function source code, enabling source code to be encrypted at rest with a user-managed encryption key feat: You can now specify concurrency and cpu of a gen 2 function through the Function API, without needing to modify the underlying Cloud Run service PiperOrigin-RevId: 536826096 Source-Link: googleapis/googleapis@b9f248e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6c880ea5a39beab05c9fb5cf200c2f4d01f6d437 Copy-Tag: eyJwIjoiamF2YS1mdW5jdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjZjODgwZWE1YTM5YmVhYjA1YzlmYjVjZjIwMGMyZjRkMDFmNmQ0MzcifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent fcd9b06 commit fe6cd83

373 files changed

Lines changed: 8511 additions & 1287 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java-functions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.15.0</version>
23+
<version>26.16.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.19.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.20.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@
2525
import com.google.api.gax.grpc.GrpcStubCallableFactory;
2626
import com.google.api.gax.rpc.ClientContext;
2727
import com.google.api.gax.rpc.OperationCallable;
28+
import com.google.api.gax.rpc.RequestParamsBuilder;
2829
import com.google.api.gax.rpc.UnaryCallable;
2930
import com.google.cloud.functions.v1.CallFunctionRequest;
3031
import com.google.cloud.functions.v1.CallFunctionResponse;
@@ -42,7 +43,6 @@
4243
import com.google.cloud.functions.v1.UpdateFunctionRequest;
4344
import com.google.cloud.location.ListLocationsRequest;
4445
import com.google.cloud.location.ListLocationsResponse;
45-
import com.google.common.collect.ImmutableMap;
4646
import com.google.iam.v1.GetIamPolicyRequest;
4747
import com.google.iam.v1.Policy;
4848
import com.google.iam.v1.SetIamPolicyRequest;
@@ -263,59 +263,59 @@ protected GrpcCloudFunctionsServiceStub(
263263
.setMethodDescriptor(listFunctionsMethodDescriptor)
264264
.setParamsExtractor(
265265
request -> {
266-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
267-
params.put("parent", String.valueOf(request.getParent()));
268-
return params.build();
266+
RequestParamsBuilder builder = RequestParamsBuilder.create();
267+
builder.add("parent", String.valueOf(request.getParent()));
268+
return builder.build();
269269
})
270270
.build();
271271
GrpcCallSettings<GetFunctionRequest, CloudFunction> getFunctionTransportSettings =
272272
GrpcCallSettings.<GetFunctionRequest, CloudFunction>newBuilder()
273273
.setMethodDescriptor(getFunctionMethodDescriptor)
274274
.setParamsExtractor(
275275
request -> {
276-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
277-
params.put("name", String.valueOf(request.getName()));
278-
return params.build();
276+
RequestParamsBuilder builder = RequestParamsBuilder.create();
277+
builder.add("name", String.valueOf(request.getName()));
278+
return builder.build();
279279
})
280280
.build();
281281
GrpcCallSettings<CreateFunctionRequest, Operation> createFunctionTransportSettings =
282282
GrpcCallSettings.<CreateFunctionRequest, Operation>newBuilder()
283283
.setMethodDescriptor(createFunctionMethodDescriptor)
284284
.setParamsExtractor(
285285
request -> {
286-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
287-
params.put("location", String.valueOf(request.getLocation()));
288-
return params.build();
286+
RequestParamsBuilder builder = RequestParamsBuilder.create();
287+
builder.add("location", String.valueOf(request.getLocation()));
288+
return builder.build();
289289
})
290290
.build();
291291
GrpcCallSettings<UpdateFunctionRequest, Operation> updateFunctionTransportSettings =
292292
GrpcCallSettings.<UpdateFunctionRequest, Operation>newBuilder()
293293
.setMethodDescriptor(updateFunctionMethodDescriptor)
294294
.setParamsExtractor(
295295
request -> {
296-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
297-
params.put("function.name", String.valueOf(request.getFunction().getName()));
298-
return params.build();
296+
RequestParamsBuilder builder = RequestParamsBuilder.create();
297+
builder.add("function.name", String.valueOf(request.getFunction().getName()));
298+
return builder.build();
299299
})
300300
.build();
301301
GrpcCallSettings<DeleteFunctionRequest, Operation> deleteFunctionTransportSettings =
302302
GrpcCallSettings.<DeleteFunctionRequest, Operation>newBuilder()
303303
.setMethodDescriptor(deleteFunctionMethodDescriptor)
304304
.setParamsExtractor(
305305
request -> {
306-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
307-
params.put("name", String.valueOf(request.getName()));
308-
return params.build();
306+
RequestParamsBuilder builder = RequestParamsBuilder.create();
307+
builder.add("name", String.valueOf(request.getName()));
308+
return builder.build();
309309
})
310310
.build();
311311
GrpcCallSettings<CallFunctionRequest, CallFunctionResponse> callFunctionTransportSettings =
312312
GrpcCallSettings.<CallFunctionRequest, CallFunctionResponse>newBuilder()
313313
.setMethodDescriptor(callFunctionMethodDescriptor)
314314
.setParamsExtractor(
315315
request -> {
316-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
317-
params.put("name", String.valueOf(request.getName()));
318-
return params.build();
316+
RequestParamsBuilder builder = RequestParamsBuilder.create();
317+
builder.add("name", String.valueOf(request.getName()));
318+
return builder.build();
319319
})
320320
.build();
321321
GrpcCallSettings<GenerateUploadUrlRequest, GenerateUploadUrlResponse>
@@ -324,9 +324,9 @@ protected GrpcCloudFunctionsServiceStub(
324324
.setMethodDescriptor(generateUploadUrlMethodDescriptor)
325325
.setParamsExtractor(
326326
request -> {
327-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
328-
params.put("parent", String.valueOf(request.getParent()));
329-
return params.build();
327+
RequestParamsBuilder builder = RequestParamsBuilder.create();
328+
builder.add("parent", String.valueOf(request.getParent()));
329+
return builder.build();
330330
})
331331
.build();
332332
GrpcCallSettings<GenerateDownloadUrlRequest, GenerateDownloadUrlResponse>
@@ -335,29 +335,29 @@ protected GrpcCloudFunctionsServiceStub(
335335
.setMethodDescriptor(generateDownloadUrlMethodDescriptor)
336336
.setParamsExtractor(
337337
request -> {
338-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
339-
params.put("name", String.valueOf(request.getName()));
340-
return params.build();
338+
RequestParamsBuilder builder = RequestParamsBuilder.create();
339+
builder.add("name", String.valueOf(request.getName()));
340+
return builder.build();
341341
})
342342
.build();
343343
GrpcCallSettings<SetIamPolicyRequest, Policy> setIamPolicyTransportSettings =
344344
GrpcCallSettings.<SetIamPolicyRequest, Policy>newBuilder()
345345
.setMethodDescriptor(setIamPolicyMethodDescriptor)
346346
.setParamsExtractor(
347347
request -> {
348-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
349-
params.put("resource", String.valueOf(request.getResource()));
350-
return params.build();
348+
RequestParamsBuilder builder = RequestParamsBuilder.create();
349+
builder.add("resource", String.valueOf(request.getResource()));
350+
return builder.build();
351351
})
352352
.build();
353353
GrpcCallSettings<GetIamPolicyRequest, Policy> getIamPolicyTransportSettings =
354354
GrpcCallSettings.<GetIamPolicyRequest, Policy>newBuilder()
355355
.setMethodDescriptor(getIamPolicyMethodDescriptor)
356356
.setParamsExtractor(
357357
request -> {
358-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
359-
params.put("resource", String.valueOf(request.getResource()));
360-
return params.build();
358+
RequestParamsBuilder builder = RequestParamsBuilder.create();
359+
builder.add("resource", String.valueOf(request.getResource()));
360+
return builder.build();
361361
})
362362
.build();
363363
GrpcCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
@@ -366,19 +366,19 @@ protected GrpcCloudFunctionsServiceStub(
366366
.setMethodDescriptor(testIamPermissionsMethodDescriptor)
367367
.setParamsExtractor(
368368
request -> {
369-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
370-
params.put("resource", String.valueOf(request.getResource()));
371-
return params.build();
369+
RequestParamsBuilder builder = RequestParamsBuilder.create();
370+
builder.add("resource", String.valueOf(request.getResource()));
371+
return builder.build();
372372
})
373373
.build();
374374
GrpcCallSettings<ListLocationsRequest, ListLocationsResponse> listLocationsTransportSettings =
375375
GrpcCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()
376376
.setMethodDescriptor(listLocationsMethodDescriptor)
377377
.setParamsExtractor(
378378
request -> {
379-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
380-
params.put("name", String.valueOf(request.getName()));
381-
return params.build();
379+
RequestParamsBuilder builder = RequestParamsBuilder.create();
380+
builder.add("name", String.valueOf(request.getName()));
381+
return builder.build();
382382
})
383383
.build();
384384

java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/HttpJsonCloudFunctionsServiceCallableFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Google LLC
2+
* Copyright 2023 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)