8000 chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions by gcf-owl-bot[bot] · Pull Request #257 · googleapis/java-binary-authorization · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@
* <p>For example, to set the total timeout of getPolicy 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
* BinauthzManagementServiceV1Beta1Settings.Builder
* binauthzManagementServiceV1Beta1SettingsBuilder =
* BinauthzManagementServiceV1Beta1Settings.newBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
* calls that map to API methods. Sample code to get started:
*
* <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 (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofLocationName("[LOCATION]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
Expand Down Expand Up @@ -71,8 +74,11 @@
* <p>To customize credentials:
*
* <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
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -84,8 +90,11 @@
* <p>To customize the endpoint:
*
* <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
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
* SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
Expand All @@ -96,8 +105,11 @@
* the wire:
*
* <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
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -167,8 +179,11 @@ public SystemPolicyV1Beta1Stub getStub() {
* <p>Sample code:
*
* <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 (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofLocationName("[LOCATION]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
Expand All @@ -192,8 +207,11 @@ public final Policy getSystemPolicy(PolicyName name) {
* <p>Sample code:
*
* <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 (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
Expand All @@ -216,8 +234,11 @@ public final Policy getSystemPolicy(String name) {
* <p>Sample code:
*
* <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 (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* GetSystemPolicyRequest request =
* GetSystemPolicyRequest.newBuilder()
Expand All @@ -241,8 +262,11 @@ public final Policy getSystemPolicy(GetSystemPolicyRequest request) {
* <p>Sample code:
*
* <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 (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* GetSystemPolicyRequest request =
* GetSystemPolicyRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
* <p>For example, to set the total timeout of getSystemPolicy 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
* SystemPolicyV1Beta1Settings.Builder systemPolicyV1Beta1SettingsBuilder =
* SystemPolicyV1Beta1Settings.newBuilder();
* systemPolicyV1Beta1SettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
* <p>Sample for BinauthzManagementServiceV1Beta1Client:
*
* <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 (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
Expand All @@ -48,8 +51,11 @@
* <p>Sample for SystemPolicyV1Beta1Client:
*
* <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 (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofLocationName("[LOCATION]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@
* <p>For example, to set the total timeout of getPolicy 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
* BinauthzManagementServiceV1Beta1StubSettings.Builder
* binauthzManagementServiceV1Beta1SettingsBuilder =
* BinauthzManagementServiceV1Beta1StubSettings.newBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public class HttpJsonBinauthzManagementServiceV1Beta1Stub
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("policy", request.getPolicy()))
ProtoRestSerializer.create()
.toBody("policy", request.getPolicy(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -161,7 +162,7 @@ public class HttpJsonBinauthzManagementServiceV1Beta1Stub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("attestor", request.getAttestor()))
.toBody("attestor", request.getAttestor(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Attestor>newBuilder()
Expand Down Expand Up @@ -233,7 +234,7 @@ public class HttpJsonBinauthzManagementServiceV1Beta1Stub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("attestor", request.getAttestor()))
.toBody("attestor", request.getAttestor(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Attestor>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@
* <p>For example, to set the total timeout of getSystemPolicy 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
* SystemPolicyV1Beta1StubSettings.Builder systemPolicyV1Beta1SettingsBuilder =
* SystemPolicyV1Beta1StubSettings.newBuilder();
* systemPolicyV1Beta1SettingsBuilder
Expand Down
Loading
0