Skip to content
This repository was archived by the owner on Jul 17, 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 @@ -54,16 +54,16 @@
* <p>For example, to set the total timeout of createExecution 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
* ExecutionsSettings.Builder executionsSettingsBuilder = ExecutionsSettings.newBuilder();
* executionsSettingsBuilder
* .createExecutionSettings()
* .setRetrySettings(
* executionsSettingsBuilder
* .createExecutionSettings()
* .getRetrySettings()
* .toBuilder()
* executionsSettingsBuilder.createExecutionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ExecutionsSettings executionsSettings = executionsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* <p>Sample for ExecutionsClient:
*
* <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 (ExecutionsClient executionsClient = ExecutionsClient.create()) {
* WorkflowName parent = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
* Execution execution = Execution.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@
* <p>For example, to set the total timeout of createExecution 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
* ExecutionsStubSettings.Builder executionsSettingsBuilder = ExecutionsStubSettings.newBuilder();
* executionsSettingsBuilder
* .createExecutionSettings()
* .setRetrySettings(
* executionsSettingsBuilder
* .createExecutionSettings()
* .getRetrySettings()
* .toBuilder()
* executionsSettingsBuilder.createExecutionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ExecutionsStubSettings executionsSettings = executionsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public class HttpJsonExecutionsStub extends ExecutionsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("execution", request.getExecution()))
.toBody("execution", request.getExecution(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Execution>newBuilder()
Expand Down Expand Up @@ -189,7 +189,7 @@ public class HttpJsonExecutionsStub extends ExecutionsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Execution>newBuilder()
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@
* <p>For example, to set the total timeout of createExecution 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
* ExecutionsSettings.Builder executionsSettingsBuilder = ExecutionsSettings.newBuilder();
* executionsSettingsBuilder
* .createExecutionSettings()
* .setRetrySettings(
* executionsSettingsBuilder
* .createExecutionSettings()
* .getRetrySettings()
* .toBuilder()
* executionsSettingsBuilder.createExecutionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ExecutionsSettings executionsSettings = executionsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
* <p>Sample for ExecutionsClient:
*
* <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 (ExecutionsClient executionsClient = ExecutionsClient.create()) {
* WorkflowName parent = WorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
* Execution execution = Execution.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@
* <p>For example, to set the total timeout of createExecution 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
* ExecutionsStubSettings.Builder executionsSettingsBuilder = ExecutionsStubSettings.newBuilder();
* executionsSettingsBuilder
* .createExecutionSettings()
* .setRetrySettings(
* executionsSettingsBuilder
* .createExecutionSettings()
* .getRetrySettings()
* .toBuilder()
* executionsSettingsBuilder.createExecutionSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* ExecutionsStubSettings executionsSettings = executionsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public class HttpJsonExecutionsStub extends ExecutionsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("execution", request.getExecution()))
.toBody("execution", request.getExecution(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Execution>newBuilder()
Expand Down Expand Up @@ -192,7 +192,7 @@ public class HttpJsonExecutionsStub extends ExecutionsStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Execution>newBuilder()
Expand Down