Skip to content

Commit 1e578b4

Browse files
chore(deps): [Many APIs] Update gapic-generator-java to 2.15.3 (googleapis#9227)
* chore(deps): Update gapic-generator-java to 2.15.3 PiperOrigin-RevId: 516900470 Source-Link: googleapis/googleapis@42ba7e6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/21abfad42a1f2edae64130bbf897283221cd66d7 Copy-Tag: eyJwIjoiamF2YS1kYXRhcHJvYy1tZXRhc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1kYXRhcHJvYy8uT3dsQm90LnlhbWwiLCJoIjoiMjFhYmZhZDQyYTFmMmVkYWU2NDEzMGJiZjg5NzI4MzIyMWNkNjZkNyJ9 Copy-Tag: eyJwIjoiamF2YS1kYXRhc3RyZWFtLy5Pd2xCb3QueWFtbCIsImgiOiIyMWFiZmFkNDJhMWYyZWRhZTY0MTMwYmJmODk3MjgzMjIxY2Q2NmQ3In0= Copy-Tag: eyJwIjoiamF2YS1kZXBsb3kvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiIyMWFiZmFkNDJhMWYyZWRhZTY0MTMwYmJmODk3MjgzMjIxY2Q2NmQ3In0= Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiIyMWFiZmFkNDJhMWYyZWRhZTY0MTMwYmJmODk3MjgzMjIxY2Q2NmQ3In0= Copy-Tag: eyJwIjoiamF2YS1kaXNjb3ZlcnllbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1kaXN0cmlidXRlZGNsb3VkZWRnZS8uT3dsQm90LnlhbWwiLCJoIjoiMjFhYmZhZDQyYTFmMmVkYWU2NDEzMGJiZjg5NzI4MzIyMWNkNjZkNyJ9 Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiMjFhYmZhZDQyYTFmMmVkYWU2NDEzMGJiZjg5NzI4MzIyMWNkNjZkNyJ9 Copy-Tag: eyJwIjoiamF2YS1kb21haW5zLy5Pd2xCb3QueWFtbCIsImgiOiIyMWFiZmFkNDJhMWYyZWRhZTY0MTMwYmJmODk3MjgzMjIxY2Q2NmQ3In0= Copy-Tag: eyJwIjoiamF2YS1ldmVudGFyYy8uT3dsQm90LnlhbWwiLCJoIjoiMjFhYmZhZDQyYTFmMmVkYWU2NDEzMGJiZjg5NzI4MzIyMWNkNjZkNyJ9 Copy-Tag: eyJwIjoiamF2YS1maWxlc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1mdW5jdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1nYW1lLXNlcnZlcnMvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1na2UtYmFja3VwLy5Pd2xCb3QueWFtbCIsImgiOiIyMWFiZmFkNDJhMWYyZWRhZTY0MTMwYmJmODk3MjgzMjIxY2Q2NmQ3In0= Copy-Tag: eyJwIjoiamF2YS1na2UtbXVsdGktY2xvdWQvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1na2VodWIvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1pZHMvLk93bEJvdC55YW1sIiwiaCI6IjIxYWJmYWQ0MmExZjJlZGFlNjQxMzBiYmY4OTcyODMyMjFjZDY2ZDcifQ== Copy-Tag: eyJwIjoiamF2YS1saWZlLXNjaWVuY2VzLy5Pd2xCb3QueWFtbCIsImgiOiIyMWFiZmFkNDJhMWYyZWRhZTY0MTMwYmJmODk3MjgzMjIxY2Q2NmQ3In0= * 🦉 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 8f68e5f commit 1e578b4

92 files changed

Lines changed: 2321 additions & 162 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-dataproc-metastore/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The client application making API calls must be granted [authorization scopes][a
5050
You will need a [Google Cloud Platform Console][developer-console] project with the Dataproc Metastore [API enabled][enable-api].
5151
You will need to [enable billing][enable-billing] to use Google Dataproc Metastore.
5252
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
53-
[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line:
53+
[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
5454
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
5555

5656
### Installation and setup
@@ -171,14 +171,14 @@ Java is a registered trademark of Oracle and/or its affiliates.
171171
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
172172
[stability-image]: https://img.shields.io/badge/stability-stable-green
173173
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg
174-
[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dataproc-metastore&core=gav
174+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.13.0
175175
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
176176
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
177177
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
178178
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
179179
[developer-console]: https://console.developers.google.com/
180180
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
181-
[cloud-sdk]: https://cloud.google.com/sdk/
181+
[cloud-cli]: https://cloud.google.com/cli
182182
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
183183
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
184184
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/HttpJsonDataprocMetastoreFederationStub.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListFederationsPagedResponse;
2020

21+
import com.google.api.HttpRule;
2122
import com.google.api.core.BetaApi;
2223
import com.google.api.core.InternalApi;
2324
import com.google.api.gax.core.BackgroundResource;
@@ -41,6 +42,7 @@
4142
import com.google.cloud.metastore.v1.ListFederationsResponse;
4243
import com.google.cloud.metastore.v1.OperationMetadata;
4344
import com.google.cloud.metastore.v1.UpdateFederationRequest;
45+
import com.google.common.collect.ImmutableMap;
4446
import com.google.longrunning.Operation;
4547
import com.google.protobuf.Empty;
4648
import com.google.protobuf.TypeRegistry;
@@ -330,7 +332,27 @@ protected HttpJsonDataprocMetastoreFederationStub(
330332
throws IOException {
331333
this.callableFactory = callableFactory;
332334
this.httpJsonOperationsStub =
333-
HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
335+
HttpJsonOperationsStub.create(
336+
clientContext,
337+
callableFactory,
338+
typeRegistry,
339+
ImmutableMap.<String, HttpRule>builder()
340+
.put(
341+
"google.longrunning.Operations.DeleteOperation",
342+
HttpRule.newBuilder()
343+
.setDelete("/v1/{name=projects/*/locations/*/operations/*}")
344+
.build())
345+
.put(
346+
"google.longrunning.Operations.GetOperation",
347+
HttpRule.newBuilder()
348+
.setGet("/v1/{name=projects/*/locations/*/operations/*}")
349+
.build())
350+
.put(
351+
"google.longrunning.Operations.ListOperations",
352+
HttpRule.newBuilder()
353+
.setGet("/v1/{name=projects/*/locations/*}/operations")
354+
.build())
355+
.build());
334356

335357
HttpJsonCallSettings<ListFederationsRequest, ListFederationsResponse>
336358
listFederationsTransportSettings =

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/HttpJsonDataprocMetastoreStub.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListMetadataImportsPagedResponse;
2121
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListServicesPagedResponse;
2222

23+
import com.google.api.HttpRule;
2324
import com.google.api.core.BetaApi;
2425
import com.google.api.core.InternalApi;
2526
import com.google.api.gax.core.BackgroundResource;
@@ -59,6 +60,7 @@
5960
import com.google.cloud.metastore.v1.Service;
6061
import com.google.cloud.metastore.v1.UpdateMetadataImportRequest;
6162
import com.google.cloud.metastore.v1.UpdateServiceRequest;
63+
import com.google.common.collect.ImmutableMap;
6264
import com.google.longrunning.Operation;
6365
import com.google.protobuf.Empty;
6466
import com.google.protobuf.TypeRegistry;
@@ -759,7 +761,27 @@ protected HttpJsonDataprocMetastoreStub(
759761
throws IOException {
760762
this.callableFactory = callableFactory;
761763
this.httpJsonOperationsStub =
762-
HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
764+
HttpJsonOperationsStub.create(
765+
clientContext,
766+
callableFactory,
767+
typeRegistry,
768+
ImmutableMap.<String, HttpRule>builder()
769+
.put(
770+
"google.longrunning.Operations.DeleteOperation",
771+
HttpRule.newBuilder()
772+
.setDelete("/v1/{name=projects/*/locations/*/operations/*}")
773+
.build())
774+
.put(
775+
"google.longrunning.Operations.GetOperation",
776+
HttpRule.newBuilder()
777+
.setGet("/v1/{name=projects/*/locations/*/operations/*}")
778+
.build())
779+
.put(
780+
"google.longrunning.Operations.ListOperations",
781+
HttpRule.newBuilder()
782+
.setGet("/v1/{name=projects/*/locations/*}/operations")
783+
.build())
784+
.build());
763785

764786
HttpJsonCallSettings<ListServicesRequest, ListServicesResponse> listServicesTransportSettings =
765787
HttpJsonCallSettings.<ListServicesRequest, ListServicesResponse>newBuilder()

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/HttpJsonDataprocMetastoreFederationStub.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.ListFederationsPagedResponse;
2020

21+
import com.google.api.HttpRule;
2122
import com.google.api.core.BetaApi;
2223
import com.google.api.core.InternalApi;
2324
import com.google.api.gax.core.BackgroundResource;
@@ -41,6 +42,7 @@
4142
import com.google.cloud.metastore.v1alpha.ListFederationsResponse;
4243
import com.google.cloud.metastore.v1alpha.OperationMetadata;
4344
import com.google.cloud.metastore.v1alpha.UpdateFederationRequest;
45+
import com.google.common.collect.ImmutableMap;
4446
import com.google.longrunning.Operation;
4547
import com.google.protobuf.Empty;
4648
import com.google.protobuf.TypeRegistry;
@@ -330,7 +332,27 @@ protected HttpJsonDataprocMetastoreFederationStub(
330332
throws IOException {
331333
this.callableFactory = callableFactory;
332334
this.httpJsonOperationsStub =
333-
HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
335+
HttpJsonOperationsStub.create(
336+
clientContext,
337+
callableFactory,
338+
typeRegistry,
339+
ImmutableMap.<String, HttpRule>builder()
340+
.put(
341+
"google.longrunning.Operations.DeleteOperation",
342+
HttpRule.newBuilder()
343+
.setDelete("/v1alpha/{name=projects/*/locations/*/operations/*}")
344+
.build())
345+
.put(
346+
"google.longrunning.Operations.GetOperation",
347+
HttpRule.newBuilder()
348+
.setGet("/v1alpha/{name=projects/*/locations/*/operations/*}")
349+
.build())
350+
.put(
351+
"google.longrunning.Operations.ListOperations",
352+
HttpRule.newBuilder()
353+
.setGet("/v1alpha/{name=projects/*/locations/*}/operations")
354+
.build())
355+
.build());
334356

335357
HttpJsonCallSettings<ListFederationsRequest, ListFederationsResponse>
336358
listFederationsTransportSettings =

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/HttpJsonDataprocMetastoreStub.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static com.google.cloud.metastore.v1alpha.DataprocMetastoreClient.ListMetadataImportsPagedResponse;
2121
import static com.google.cloud.metastore.v1alpha.DataprocMetastoreClient.ListServicesPagedResponse;
2222

23+
import com.google.api.HttpRule;
2324
import com.google.api.core.BetaApi;
2425
import com.google.api.core.InternalApi;
2526
import com.google.api.gax.core.BackgroundResource;
@@ -67,6 +68,7 @@
6768
import com.google.cloud.metastore.v1alpha.Service;
6869
import com.google.cloud.metastore.v1alpha.UpdateMetadataImportRequest;
6970
import com.google.cloud.metastore.v1alpha.UpdateServiceRequest;
71+
import com.google.common.collect.ImmutableMap;
7072
import com.google.longrunning.Operation;
7173
import com.google.protobuf.Empty;
7274
import com.google.protobuf.TypeRegistry;
@@ -949,7 +951,27 @@ protected HttpJsonDataprocMetastoreStub(
949951
throws IOException {
950952
this.callableFactory = callableFactory;
951953
this.httpJsonOperationsStub =
952-
HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
954+
HttpJsonOperationsStub.create(
955+
clientContext,
956+
callableFactory,
957+
typeRegistry,
958+
ImmutableMap.<String, HttpRule>builder()
959+
.put(
960+
"google.longrunning.Operations.DeleteOperation",
961+
HttpRule.newBuilder()
962+
.setDelete("/v1alpha/{name=projects/*/locations/*/operations/*}")
963+
.build())
964+
.put(
965+
"google.longrunning.Operations.GetOperation",
966+
HttpRule.newBuilder()
967+
.setGet("/v1alpha/{name=projects/*/locations/*/operations/*}")
968+
.build())
969+
.put(
970+
"google.longrunning.Operations.ListOperations",
971+
HttpRule.newBuilder()
972+
.setGet("/v1alpha/{name=projects/*/locations/*}/operations")
973+
.build())
974+
.build());
953975

954976
HttpJsonCallSettings<ListServicesRequest, ListServicesResponse> listServicesTransportSettings =
955977
HttpJsonCallSettings.<ListServicesRequest, ListServicesResponse>newBuilder()

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/HttpJsonDataprocMetastoreFederationStub.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.ListFederationsPagedResponse;
2020

21+
import com.google.api.HttpRule;
2122
import com.google.api.core.BetaApi;
2223
import com.google.api.core.InternalApi;
2324
import com.google.api.gax.core.BackgroundResource;
@@ -41,6 +42,7 @@
4142
import com.google.cloud.metastore.v1beta.ListFederationsResponse;
4243
import com.google.cloud.metastore.v1beta.OperationMetadata;
4344
import com.google.cloud.metastore.v1beta.UpdateFederationRequest;
45+
import com.google.common.collect.ImmutableMap;
4446
import com.google.longrunning.Operation;
4547
import com.google.protobuf.Empty;
4648
import com.google.protobuf.TypeRegistry;
@@ -330,7 +332,27 @@ protected HttpJsonDataprocMetastoreFederationStub(
330332
throws IOException {
331333
this.callableFactory = callableFactory;
332334
this.httpJsonOperationsStub =
333-
HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
335+
HttpJsonOperationsStub.create(
336+
clientContext,
337+
callableFactory,
338+
typeRegistry,
339+
ImmutableMap.<String, HttpRule>builder()
340+
.put(
341+
"google.longrunning.Operations.DeleteOperation",
342+
HttpRule.newBuilder()
343+
.setDelete("/v1beta/{name=projects/*/locations/*/operations/*}")
344+
.build())
345+
.put(
346+
"google.longrunning.Operations.GetOperation",
347+
HttpRule.newBuilder()
348+
.setGet("/v1beta/{name=projects/*/locations/*/operations/*}")
349+
.build())
350+
.put(
351+
"google.longrunning.Operations.ListOperations",
352+
HttpRule.newBuilder()
353+
.setGet("/v1beta/{name=projects/*/locations/*}/operations")
354+
.build())
355+
.build());
334356

335357
HttpJsonCallSettings<ListFederationsRequest, ListFederationsResponse>
336358
listFederationsTransportSettings =

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/HttpJsonDataprocMetastoreStub.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static com.google.cloud.metastore.v1beta.DataprocMetastoreClient.ListMetadataImportsPagedResponse;
2121
import static com.google.cloud.metastore.v1beta.DataprocMetastoreClient.ListServicesPagedResponse;
2222

23+
import com.google.api.HttpRule;
2324
import com.google.api.core.BetaApi;
2425
import com.google.api.core.InternalApi;
2526
import com.google.api.gax.core.BackgroundResource;
@@ -67,6 +68,7 @@
6768
import com.google.cloud.metastore.v1beta.Service;
6869
import com.google.cloud.metastore.v1beta.UpdateMetadataImportRequest;
6970
import com.google.cloud.metastore.v1beta.UpdateServiceRequest;
71+
import com.google.common.collect.ImmutableMap;
7072
import com.google.longrunning.Operation;
7173
import com.google.protobuf.Empty;
7274
import com.google.protobuf.TypeRegistry;
@@ -949,7 +951,27 @@ protected HttpJsonDataprocMetastoreStub(
949951
throws IOException {
950952
this.callableFactory = callableFactory;
951953
this.httpJsonOperationsStub =
952-
HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
954+
HttpJsonOperationsStub.create(
955+
clientContext,
956+
callableFactory,
957+
typeRegistry,
958+
ImmutableMap.<String, HttpRule>builder()
959+
.put(
960+
"google.longrunning.Operations.DeleteOperation",
961+
HttpRule.newBuilder()
962+
.setDelete("/v1beta/{name=projects/*/locations/*/operations/*}")
963+
.build())
964+
.put(
965+
"google.longrunning.Operations.GetOperation",
966+
HttpRule.newBuilder()
967+
.setGet("/v1beta/{name=projects/*/locations/*/operations/*}")
968+
.build())
969+
.put(
970+
"google.longrunning.Operations.ListOperations",
971+
HttpRule.newBuilder()
972+
.setGet("/v1beta/{name=projects/*/locations/*}/operations")
973+
.build())
974+
.build());
953975

954976
HttpJsonCallSettings<ListServicesRequest, ListServicesResponse> listServicesTransportSettings =
955977
HttpJsonCallSettings.<ListServicesRequest, ListServicesResponse>newBuilder()

java-dataproc/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The client application making API calls must be granted [authorization scopes][a
5050
You will need a [Google Cloud Platform Console][developer-console] project with the Dataproc [API enabled][enable-api].
5151
You will need to [enable billing][enable-billing] to use Google Dataproc.
5252
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
53-
[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line:
53+
[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
5454
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
5555

5656
### Installation and setup
@@ -171,14 +171,14 @@ Java is a registered trademark of Oracle and/or its affiliates.
171171
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
172172
[stability-image]: https://img.shields.io/badge/stability-stable-green
173173
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg
174-
[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dataproc&core=gav
174+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.9.0
175175
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
176176
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
177177
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
178178
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
179179
[developer-console]: https://console.developers.google.com/
180180
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
181-
[cloud-sdk]: https://cloud.google.com/sdk/
181+
[cloud-cli]: https://cloud.google.com/cli
182182
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
183183
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
184184
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct

java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse;
2020

21+
import com.google.api.HttpRule;
2122
import com.google.api.core.BetaApi;
2223
import com.google.api.core.InternalApi;
2324
import com.google.api.gax.core.BackgroundResource;
@@ -40,6 +41,7 @@
4041
import com.google.cloud.dataproc.v1.GetBatchRequest;
4142
import com.google.cloud.dataproc.v1.ListBatchesRequest;
4243
import com.google.cloud.dataproc.v1.ListBatchesResponse;
44+
import com.google.common.collect.ImmutableMap;
4345
import com.google.longrunning.Operation;
4446
import com.google.protobuf.Empty;
4547
import com.google.protobuf.TypeRegistry;
@@ -264,7 +266,48 @@ protected HttpJsonBatchControllerStub(
264266
throws IOException {
265267
this.callableFactory = callableFactory;
266268
this.httpJsonOperationsStub =
267-
HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry);
269+
HttpJsonOperationsStub.create(
270+
clientContext,
271+
callableFactory,
272+
typeRegistry,
273+
ImmutableMap.<String, HttpRule>builder()
274+
.put(
275+
"google.longrunning.Operations.CancelOperation",
276+
HttpRule.newBuilder()
277+
.setPost("/v1/{name=projects/*/regions/*/operations/*}:cancel")
278+
.addAdditionalBindings(
279+
HttpRule.newBuilder()
280+
.setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel")
281+
.build())
282+
.build())
283+
.put(
284+
"google.longrunning.Operations.DeleteOperation",
285+
HttpRule.newBuilder()
286+
.setDelete("/v1/{name=projects/*/regions/*/operations/*}")
287+
.addAdditionalBindings(
288+
HttpRule.newBuilder()
289+
.setDelete("/v1/{name=projects/*/locations/*/operations/*}")
290+
.build())
291+
.build())
292+
.put(
293+
"google.longrunning.Operations.GetOperation",
294+
HttpRule.newBuilder()
295+
.setGet("/v1/{name=projects/*/regions/*/operations/*}")
296+
.addAdditionalBindings(
297+
HttpRule.newBuilder()
298+
.setGet("/v1/{name=projects/*/locations/*/operations/*}")
299+
.build())
300+
.build())
301+
.put(
302+
"google.longrunning.Operations.ListOperations",
303+
HttpRule.newBuilder()
304+
.setGet("/v1/{name=projects/*/regions/*/operations}")
305+
.addAdditionalBindings(
306+
HttpRule.newBuilder()
307+
.setGet("/v1/{name=projects/*/locations/*/operations}")
308+
.build())
309+
.build())
310+
.build());
268311

269312
HttpJsonCallSettings<CreateBatchRequest, Operation> createBatchTransportSettings =
270313
HttpJsonCallSettings.<CreateBatchRequest, Operation>newBuilder()

0 commit comments

Comments
 (0)