Skip to content

Commit 887ede0

Browse files
chore: [Many APIs] upgrading protobuf to 23.2 for code generation (googleapis#9486)
* 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: eyJwIjoiamF2YS1jb25maWRlbnRpYWxjb21wdXRpbmcvLk93bEJvdC55YW1sIiwiaCI6IjVlYzAyZWQyMDIyODc4Zjk5Yzk0Yzc2MzA2MGZmNmEwMTg4OTZiNmUifQ== Copy-Tag: eyJwIjoiamF2YS1jb250YWN0LWNlbnRlci1pbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9 Copy-Tag: eyJwIjoiamF2YS1jb250YWluZXJhbmFseXNpcy8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9 Copy-Tag: eyJwIjoiamF2YS1jb250ZW50d2FyZWhvdXNlLy5Pd2xCb3QueWFtbCIsImgiOiI1ZWMwMmVkMjAyMjg3OGY5OWM5NGM3NjMwNjBmZjZhMDE4ODk2YjZlIn0= Copy-Tag: eyJwIjoiamF2YS1kYXRhLWZ1c2lvbi8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhZm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI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sImgiOiI1ZWMwMmVkMjAyMjg3OGY5OWM5NGM3NjMwNjBmZjZhMDE4ODk2YjZlIn0= Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiI1ZWMwMmVkMjAyMjg3OGY5OWM5NGM3NjMwNjBmZjZhMDE4ODk2YjZlIn0= Copy-Tag: eyJwIjoiamF2YS1kaXN0cmlidXRlZGNsb3VkZWRnZS8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9 Copy-Tag: eyJwIjoiamF2YS1kbHAvLk93bEJvdC55YW1sIiwiaCI6IjVlYzAyZWQyMDIyODc4Zjk5Yzk0Yzc2MzA2MGZmNmEwMTg4OTZiNmUifQ== Copy-Tag: eyJwIjoiamF2YS1kbXMvLk93bEJvdC55YW1sIiwiaCI6IjVlYzAyZWQyMDIyODc4Zjk5Yzk0Yzc2MzA2MGZmNmEwMTg4OTZiNmUifQ== * 🦉 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 54fb07f commit 887ede0

9,481 files changed

Lines changed: 58180 additions & 46874 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-confidentialcomputing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.12.0</version>
26+
<version>26.16.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-confidentialcomputing/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.0.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.4.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStub.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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingCallableFactory.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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/GrpcConfidentialComputingStub.java

Lines changed: 14 additions & 14 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.
@@ -23,6 +23,7 @@
2323
import com.google.api.gax.grpc.GrpcCallSettings;
2424
import com.google.api.gax.grpc.GrpcStubCallableFactory;
2525
import com.google.api.gax.rpc.ClientContext;
26+
import com.google.api.gax.rpc.RequestParamsBuilder;
2627
import com.google.api.gax.rpc.UnaryCallable;
2728
import com.google.cloud.confidentialcomputing.v1.Challenge;
2829
import com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest;
@@ -32,7 +33,6 @@
3233
import com.google.cloud.location.ListLocationsRequest;
3334
import com.google.cloud.location.ListLocationsResponse;
3435
import com.google.cloud.location.Location;
35-
import com.google.common.collect.ImmutableMap;
3636
import com.google.longrunning.stub.GrpcOperationsStub;
3737
import io.grpc.MethodDescriptor;
3838
import io.grpc.protobuf.ProtoUtils;
@@ -147,9 +147,9 @@ protected GrpcConfidentialComputingStub(
147147
.setMethodDescriptor(createChallengeMethodDescriptor)
148148
.setParamsExtractor(
149149
request -> {
150-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
151-
params.put("parent", String.valueOf(request.getParent()));
152-
return params.build();
150+
RequestParamsBuilder builder = RequestParamsBuilder.create();
151+
builder.add("parent", String.valueOf(request.getParent()));
152+
return builder.build();
153153
})
154154
.build();
155155
GrpcCallSettings<VerifyAttestationRequest, VerifyAttestationResponse>
@@ -158,29 +158,29 @@ protected GrpcConfidentialComputingStub(
158158
.setMethodDescriptor(verifyAttestationMethodDescriptor)
159159
.setParamsExtractor(
160160
request -> {
161-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
162-
params.put("challenge", String.valueOf(request.getChallenge()));
163-
return params.build();
161+
RequestParamsBuilder builder = RequestParamsBuilder.create();
162+
builder.add("challenge", String.valueOf(request.getChallenge()));
163+
return builder.build();
164164
})
165165
.build();
166166
GrpcCallSettings<ListLocationsRequest, ListLocationsResponse> listLocationsTransportSettings =
167167
GrpcCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()
168168
.setMethodDescriptor(listLocationsMethodDescriptor)
169169
.setParamsExtractor(
170170
request -> {
171-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
172-
params.put("name", String.valueOf(request.getName()));
173-
return params.build();
171+
RequestParamsBuilder builder = RequestParamsBuilder.create();
172+
builder.add("name", String.valueOf(request.getName()));
173+
return builder.build();
174174
})
175175
.build();
176176
GrpcCallSettings<GetLocationRequest, Location> getLocationTransportSettings =
177177
GrpcCallSettings.<GetLocationRequest, Location>newBuilder()
178178
.setMethodDescriptor(getLocationMethodDescriptor)
179179
.setParamsExtractor(
180180
request -> {
181-
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
182-
params.put("name", String.valueOf(request.getName()));
183-
return params.build();
181+
RequestParamsBuilder builder = RequestParamsBuilder.create();
182+
builder.add("name", String.valueOf(request.getName()));
183+
return builder.build();
184184
})
185185
.build();
186186

java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingCallableFactory.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-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/HttpJsonConfidentialComputingStub.java

Lines changed: 26 additions & 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.
@@ -29,6 +29,7 @@
2929
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
3030
import com.google.api.gax.httpjson.ProtoRestSerializer;
3131
import com.google.api.gax.rpc.ClientContext;
32+
import com.google.api.gax.rpc.RequestParamsBuilder;
3233
import com.google.api.gax.rpc.UnaryCallable;
3334
import com.google.cloud.confidentialcomputing.v1.Challenge;
3435
import com.google.cloud.confidentialcomputing.v1.CreateChallengeRequest;
@@ -258,23 +259,47 @@ protected HttpJsonConfidentialComputingStub(
258259
HttpJsonCallSettings.<CreateChallengeRequest, Challenge>newBuilder()
259260
.setMethodDescriptor(createChallengeMethodDescriptor)
260261
.setTypeRegistry(typeRegistry)
262+
.setParamsExtractor(
263+
request -> {
264+
RequestParamsBuilder builder = RequestParamsBuilder.create();
265+
builder.add("parent", String.valueOf(request.getParent()));
266+
return builder.build();
267+
})
261268
.build();
262269
HttpJsonCallSettings<VerifyAttestationRequest, VerifyAttestationResponse>
263270
verifyAttestationTransportSettings =
264271
HttpJsonCallSettings.<VerifyAttestationRequest, VerifyAttestationResponse>newBuilder()
265272
.setMethodDescriptor(verifyAttestationMethodDescriptor)
266273
.setTypeRegistry(typeRegistry)
274+
.setParamsExtractor(
275+
request -> {
276+
RequestParamsBuilder builder = RequestParamsBuilder.create();
277+
builder.add("challenge", String.valueOf(request.getChallenge()));
278+
return builder.build();
279+
})
267280
.build();
268281
HttpJsonCallSettings<ListLocationsRequest, ListLocationsResponse>
269282
listLocationsTransportSettings =
270283
HttpJsonCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()
271284
.setMethodDescriptor(listLocationsMethodDescriptor)
272285
.setTypeRegistry(typeRegistry)
286+
.setParamsExtractor(
287+
request -> {
288+
RequestParamsBuilder builder = RequestParamsBuilder.create();
289+
builder.add("name", String.valueOf(request.getName()));
290+
return builder.build();
291+
})
273292
.build();
274293
HttpJsonCallSettings<GetLocationRequest, Location> getLocationTransportSettings =
275294
HttpJsonCallSettings.<GetLocationRequest, Location>newBuilder()
276295
.setMethodDescriptor(getLocationMethodDescriptor)
277296
.setTypeRegistry(typeRegistry)
297+
.setParamsExtractor(
298+
request -> {
299+
RequestParamsBuilder builder = RequestParamsBuilder.create();
300+
builder.add("name", String.valueOf(request.getName()));
301+
return builder.build();
302+
})
278303
.build();
279304

280305
this.createChallengeCallable =

0 commit comments

Comments
 (0)