Skip to content

Commit

Permalink
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
Browse files Browse the repository at this point in the history
…ator_java versions (#304)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 9, 2022
1 parent c4e43aa commit 913d9bc
Show file tree
Hide file tree
Showing 11 changed files with 999 additions and 425 deletions.
6 changes: 3 additions & 3 deletions java-artifact-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-artifact-registry</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-artifact-registry:1.2.5'
implementation 'com.google.cloud:google-cloud-artifact-registry:1.2.6'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.2.5"
libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.2.6"
```

## Authentication
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@
* <p>For example, to set the total timeout of getDockerImage to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ArtifactRegistrySettings.Builder artifactRegistrySettingsBuilder =
* ArtifactRegistrySettings.newBuilder();
* artifactRegistrySettingsBuilder
* .getDockerImageSettings()
* .setRetrySettings(
* artifactRegistrySettingsBuilder
* .getDockerImageSettings()
* .getRetrySettings()
* .toBuilder()
* artifactRegistrySettingsBuilder.getDockerImageSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ArtifactRegistrySettings artifactRegistrySettings = artifactRegistrySettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@
* <p>Sample for ArtifactRegistryClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
* DockerImageName name =
* DockerImageName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[DOCKER_IMAGE]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,17 @@
* <p>For example, to set the total timeout of getDockerImage to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ArtifactRegistryStubSettings.Builder artifactRegistrySettingsBuilder =
* ArtifactRegistryStubSettings.newBuilder();
* artifactRegistrySettingsBuilder
* .getDockerImageSettings()
* .setRetrySettings(
* artifactRegistrySettingsBuilder
* .getDockerImageSettings()
* .getRetrySettings()
* .toBuilder()
* artifactRegistrySettingsBuilder.getDockerImageSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ArtifactRegistryStubSettings artifactRegistrySettings = artifactRegistrySettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -254,7 +254,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -366,7 +366,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("repository", request.getRepository()))
.toBody("repository", request.getRepository(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -408,7 +408,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("repository", request.getRepository()))
.toBody("repository", request.getRepository(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Repository>newBuilder()
Expand Down Expand Up @@ -830,7 +830,8 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
return fields;
})
.setRequestBodyExtractor(
request -> ProtoRestSerializer.create().toBody("tag", request.getTag()))
request ->
ProtoRestSerializer.create().toBody("tag", request.getTag(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Tag>newBuilder()
Expand Down Expand Up @@ -864,7 +865,8 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
return fields;
})
.setRequestBodyExtractor(
request -> ProtoRestSerializer.create().toBody("tag", request.getTag()))
request ->
ProtoRestSerializer.create().toBody("tag", request.getTag(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Tag>newBuilder()
Expand Down Expand Up @@ -933,7 +935,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -1005,7 +1007,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down Expand Up @@ -1080,7 +1082,7 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("projectSettings", request.getProjectSettings()))
.toBody("projectSettings", request.getProjectSettings(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ProjectSettings>newBuilder()
Expand Down
Loading

0 comments on commit 913d9bc

Please sign in to comment.