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 @@ -62,8 +62,11 @@
* <p>For example, to set the total timeout of getFunction 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
* CloudFunctionsServiceSettings.Builder cloudFunctionsServiceSettingsBuilder =
* CloudFunctionsServiceSettings.newBuilder();
* cloudFunctionsServiceSettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
* <p>Sample for CloudFunctionsServiceClient:
*
* <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 (CloudFunctionsServiceClient cloudFunctionsServiceClient =
* CloudFunctionsServiceClient.create()) {
* CloudFunctionName name = CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@
* <p>For example, to set the total timeout of getFunction 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
* CloudFunctionsServiceStubSettings.Builder cloudFunctionsServiceSettingsBuilder =
* CloudFunctionsServiceStubSettings.newBuilder();
* cloudFunctionsServiceSettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("function", request.getFunction()))
.toBody("function", request.getFunction(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -215,7 +215,7 @@ public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("function", request.getFunction()))
.toBody("function", request.getFunction(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -290,7 +290,7 @@ public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<CallFunctionResponse>newBuilder()
Expand Down Expand Up @@ -327,7 +327,7 @@ public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<GenerateUploadUrlResponse>newBuilder()
Expand Down Expand Up @@ -364,7 +364,7 @@ public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<GenerateDownloadUrlResponse>newBuilder()
Expand Down Expand Up @@ -400,7 +400,7 @@ public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Policy>newBuilder()
Expand Down Expand Up @@ -471,7 +471,7 @@ public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearResource().build()))
.toBody("*", request.toBuilder().clearResource().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<TestIamPermissionsResponse>newBuilder()
Expand Down
Loading