From 8df986aa7f55a46089bcbffebc808735bdfbe902 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 2 Dec 2020 22:30:09 +0000
Subject: [PATCH 1/8] chore: release 1.0.4-SNAPSHOT (#96)
:robot: I have created a release \*beep\* \*boop\*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please).
---
google-cloud-functions-bom/pom.xml | 8 ++++----
google-cloud-functions/pom.xml | 4 ++--
grpc-google-cloud-functions-v1/pom.xml | 4 ++--
pom.xml | 8 ++++----
proto-google-cloud-functions-v1/pom.xml | 4 ++--
versions.txt | 6 +++---
6 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/google-cloud-functions-bom/pom.xml b/google-cloud-functions-bom/pom.xml
index 12c30763..aa62cc16 100644
--- a/google-cloud-functions-bom/pom.xml
+++ b/google-cloud-functions-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-functions-bom
- 1.0.3
+ 1.0.4-SNAPSHOTpomcom.google.cloud
@@ -68,17 +68,17 @@
com.google.cloudgoogle-cloud-functions
- 1.0.3
+ 1.0.4-SNAPSHOTcom.google.api.grpcproto-google-cloud-functions-v1
- 1.0.3
+ 1.0.4-SNAPSHOTcom.google.api.grpcgrpc-google-cloud-functions-v1
- 1.0.3
+ 1.0.4-SNAPSHOT
diff --git a/google-cloud-functions/pom.xml b/google-cloud-functions/pom.xml
index 7b348501..f334b987 100644
--- a/google-cloud-functions/pom.xml
+++ b/google-cloud-functions/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-functions
- 1.0.3
+ 1.0.4-SNAPSHOTjarGoogle Cloud Functionshttps://github.com/googleapis/java-functions
@@ -11,7 +11,7 @@
com.google.cloudgoogle-cloud-functions-parent
- 1.0.3
+ 1.0.4-SNAPSHOTgoogle-cloud-functions
diff --git a/grpc-google-cloud-functions-v1/pom.xml b/grpc-google-cloud-functions-v1/pom.xml
index d894e383..810430e2 100644
--- a/grpc-google-cloud-functions-v1/pom.xml
+++ b/grpc-google-cloud-functions-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0com.google.api.grpcgrpc-google-cloud-functions-v1
- 1.0.3
+ 1.0.4-SNAPSHOTgrpc-google-cloud-functions-v1GRPC library for grpc-google-cloud-functions-v1com.google.cloudgoogle-cloud-functions-parent
- 1.0.3
+ 1.0.4-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index 9eb50ffb..2a687cb0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloudgoogle-cloud-functions-parentpom
- 1.0.3
+ 1.0.4-SNAPSHOTGoogle Cloud Functions Parenthttps://github.com/googleapis/java-functions
@@ -70,17 +70,17 @@
com.google.cloudgoogle-cloud-functions
- 1.0.3
+ 1.0.4-SNAPSHOTcom.google.api.grpcproto-google-cloud-functions-v1
- 1.0.3
+ 1.0.4-SNAPSHOTcom.google.api.grpcgrpc-google-cloud-functions-v1
- 1.0.3
+ 1.0.4-SNAPSHOT
diff --git a/proto-google-cloud-functions-v1/pom.xml b/proto-google-cloud-functions-v1/pom.xml
index fdbce3a8..b3171868 100644
--- a/proto-google-cloud-functions-v1/pom.xml
+++ b/proto-google-cloud-functions-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0com.google.api.grpcproto-google-cloud-functions-v1
- 1.0.3
+ 1.0.4-SNAPSHOTproto-google-cloud-functions-v1PROTO library for proto-google-cloud-functions-v1com.google.cloudgoogle-cloud-functions-parent
- 1.0.3
+ 1.0.4-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index cd6998cd..88ad22d5 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-google-cloud-functions:1.0.3:1.0.3
-proto-google-cloud-functions-v1:1.0.3:1.0.3
-grpc-google-cloud-functions-v1:1.0.3:1.0.3
+google-cloud-functions:1.0.3:1.0.4-SNAPSHOT
+proto-google-cloud-functions-v1:1.0.3:1.0.4-SNAPSHOT
+grpc-google-cloud-functions-v1:1.0.3:1.0.4-SNAPSHOT
From 2e385dd9e300eda6764ebc6a344c8ff2bac48dc0 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Tue, 8 Dec 2020 11:22:26 -0800
Subject: [PATCH 2/8] chore: Update publish_javadoc.sh (#99)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/81f3ee10-5fde-4b9f-b14d-83629efb3093/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/5d11bd2888c38ce1fb6fa6bf25494a4219a73928
---
.kokoro/release/publish_javadoc.sh | 7 ++++---
synth.metadata | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh
index e4749a64..3789eac4 100755
--- a/.kokoro/release/publish_javadoc.sh
+++ b/.kokoro/release/publish_javadoc.sh
@@ -38,8 +38,8 @@ python3 -m pip install gcp-docuploader
# compile all packages
mvn clean install -B -q -DskipTests=true
-NAME=google-cloud-functions
-VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
+export NAME=google-cloud-functions
+export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
# build the docs
mvn site -B -q
@@ -59,7 +59,8 @@ python3 -m docuploader upload . \
popd
-# V2
+# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates.
+
mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/"
pushd target/devsite/reference
diff --git a/synth.metadata b/synth.metadata
index 87aeb2d9..3d319349 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
- "sha": "f3b46631b3aee07c0f75991971b731036be1587b"
+ "sha": "8df986aa7f55a46089bcbffebc808735bdfbe902"
}
},
{
@@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "943bb78606d035001123030067dffcc34f4645f2"
+ "sha": "5d11bd2888c38ce1fb6fa6bf25494a4219a73928"
}
}
],
From 603e6e5c2fd5ab00474ad3d33b8bc6d23af7b17d Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 14 Dec 2020 10:48:13 -0800
Subject: [PATCH 3/8] chore: migrate to microgenerator (#102)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/ff784592-64c9-46c3-9496-790383c9f6ca/targets
- [ ] To automatically regenerate this PR, check this box.
PiperOrigin-RevId: 346372957
Source-Link: https://github.com/googleapis/googleapis/commit/857f70daef9f4c38f042fb3dfb7b8423ae18fd19
PiperOrigin-RevId: 346126713
Source-Link: https://github.com/googleapis/googleapis/commit/b8b2f8c288cec1f673bf10aa5008819c1576bf2e
PiperOrigin-RevId: 345476969
Source-Link: https://github.com/googleapis/googleapis/commit/7be2c821dd88109038c55c89f7dd48f092eeab9d
PiperOrigin-RevId: 345067832
Source-Link: https://github.com/googleapis/googleapis/commit/069c56a0251702d5797b375c26846a21781f22e7
PiperOrigin-RevId: 345067549
Source-Link: https://github.com/googleapis/googleapis/commit/8cfc6c874574b649b4524a4ef6a0651533325a84
PiperOrigin-RevId: 344134135
Source-Link: https://github.com/googleapis/googleapis/commit/b11a87f3b54be3a5e42c15020ee1e0781f86da90
---
.../v1/CloudFunctionsServiceClient.java | 578 +++--------------
.../v1/CloudFunctionsServiceSettings.java | 48 +-
.../cloud/functions/v1/package-info.java | 19 +-
.../v1/stub/CloudFunctionsServiceStub.java | 13 +-
.../CloudFunctionsServiceStubSettings.java | 306 ++++-----
...cCloudFunctionsServiceCallableFactory.java | 40 +-
.../stub/GrpcCloudFunctionsServiceStub.java | 64 +-
.../v1/CloudFunctionsServiceClientTest.java | 594 +++++++++++-------
.../v1/MockCloudFunctionsService.java | 6 +-
.../v1/MockCloudFunctionsServiceImpl.java | 50 +-
.../cloud/functions/v1/CloudFunctionName.java | 112 ++--
.../cloud/functions/v1/LocationName.java | 98 +--
synth.metadata | 6 +-
13 files changed, 824 insertions(+), 1110 deletions(-)
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java
index a719edc4..67716b05 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1;
import com.google.api.core.ApiFunction;
@@ -43,23 +44,14 @@
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND SERVICE
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: A service that application uses to manipulate triggers and functions.
*
*
This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
*
- *
Note: close() needs to be called on the cloudFunctionsServiceClient object to clean up
+ *
Note: close() needs to be called on the CloudFunctionsServiceClient object to clean up
* resources such as threads. In the example above, try-with-resources is used, which automatically
* calls close().
*
@@ -88,30 +80,28 @@
*
*
Please refer to the GitHub repository's samples for more quickstart code snippets.
*/
-@Generated("by gapic-generator")
@BetaApi
+@Generated("by gapic-generator")
public class CloudFunctionsServiceClient implements BackgroundResource {
private final CloudFunctionsServiceSettings settings;
private final CloudFunctionsServiceStub stub;
@@ -133,7 +123,7 @@ public static final CloudFunctionsServiceClient create(CloudFunctionsServiceSett
/**
* Constructs an instance of CloudFunctionsServiceClient, using the given stub for making calls.
- * This is for advanced usage - prefer to use CloudFunctionsServiceSettings}.
+ * This is for advanced usage - prefer using create(CloudFunctionsServiceSettings).
*/
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public static final CloudFunctionsServiceClient create(CloudFunctionsServiceStub stub) {
@@ -171,27 +161,14 @@ public CloudFunctionsServiceStub getStub() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationsClient getOperationsClient() {
return operationsClient;
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of functions that belong to the requested project.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -199,69 +176,31 @@ public final ListFunctionsPagedResponse listFunctions(ListFunctionsRequest reque
return listFunctionsPagedCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of functions that belong to the requested project.
*
*
*/
public final UnaryCallable
listFunctionsPagedCallable() {
return stub.listFunctionsPagedCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a list of functions that belong to the requested project.
*
*
*/
public final UnaryCallable listFunctionsCallable() {
return stub.listFunctionsCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
- *
- *
* @param name Required. The name of the function which details should be obtained.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -271,19 +210,10 @@ public final CloudFunction getFunction(CloudFunctionName name) {
return getFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
- *
- *
* @param name Required. The name of the function which details should be obtained.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -292,22 +222,10 @@ public final CloudFunction getFunction(String name) {
return getFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -315,50 +233,26 @@ public final CloudFunction getFunction(GetFunctionRequest request) {
return getFunctionCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a function with the given name from the requested project.
*
*
*/
public final UnaryCallable getFunctionCallable() {
return stub.getFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
- *
- *
* @param location Required. The project and location in which the function should be created,
* specified in the format `projects/*/locations/*`
* @param function Required. Function to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createFunctionAsync(
LocationName location, CloudFunction function) {
CreateFunctionRequest request =
@@ -369,28 +263,16 @@ public final OperationFuture createFunctionA
return createFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
- *
- *
* @param location Required. The project and location in which the function should be created,
* specified in the format `projects/*/locations/*`
* @param function Required. Function to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createFunctionAsync(
String location, CloudFunction function) {
CreateFunctionRequest request =
@@ -398,105 +280,49 @@ public final OperationFuture createFunctionA
return createFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture createFunctionAsync(
CreateFunctionRequest request) {
return createFunctionOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
createFunctionOperationCallable() {
return stub.createFunctionOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new function. If a function with the given name already exists in the specified
* project, the long running operation will return `ALREADY_EXISTS` error.
*
*
- *
* @param function Required. New version of the function.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture updateFunctionAsync(
CloudFunction function) {
UpdateFunctionRequest request =
@@ -504,97 +330,47 @@ public final OperationFuture updateFunctionA
return updateFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates existing function.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture updateFunctionAsync(
UpdateFunctionRequest request) {
return updateFunctionOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates existing function.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
updateFunctionOperationCallable() {
return stub.updateFunctionOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates existing function.
*
*
*/
public final UnaryCallable updateFunctionCallable() {
return stub.updateFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
- *
- *
* @param name Required. The name of the function which should be deleted.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteFunctionAsync(
CloudFunctionName name) {
DeleteFunctionRequest request =
@@ -602,121 +378,61 @@ public final OperationFuture deleteFunctionAsync(
return deleteFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
- *
- *
* @param name Required. The name of the function which should be deleted.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteFunctionAsync(String name) {
DeleteFunctionRequest request = DeleteFunctionRequest.newBuilder().setName(name).build();
return deleteFunctionAsync(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture deleteFunctionAsync(
DeleteFunctionRequest request) {
return deleteFunctionOperationCallable().futureCall(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
*
*/
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable
deleteFunctionOperationCallable() {
return stub.deleteFunctionOperationCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a function with the given name from the specified project. If the given function is
* used by some trigger, the trigger will be updated to remove this function.
*
*
*/
public final UnaryCallable deleteFunctionCallable() {
return stub.deleteFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
- *
- *
* @param name Required. The name of the function to be called.
* @param data Required. Input to be passed to the function.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -730,22 +446,12 @@ public final CallFunctionResponse callFunction(CloudFunctionName name, String da
return callFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
- *
- *
* @param name Required. The name of the function to be called.
* @param data Required. Input to be passed to the function.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -756,26 +462,12 @@ public final CallFunctionResponse callFunction(String name, String data) {
return callFunction(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -783,33 +475,19 @@ public final CallFunctionResponse callFunction(CallFunctionRequest request) {
return callFunctionCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very
* limited traffic is allowed. For more information on the actual limits, refer to [Rate
* Limits](https://cloud.google.com/functions/quotas#rate_limits).
*
*
*/
public final UnaryCallable callFunctionCallable() {
return stub.callFunctionCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for uploading a function source code. For more information about the
* signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once
@@ -818,28 +496,27 @@ public final UnaryCallable callFuncti
*
*
When uploading source code to the generated signed URL, please follow these restrictions:
*
- *
* Source file type should be a zip file. * Source file size should not exceed 100MB
- * limit. * No credentials should be attached - the signed URLs provide access to the target
- * bucket using internal service identity; if credentials were attached, the identity from the
- * credentials would be used, but that identity does not have permissions to upload files to the
- * URL.
+ *
+ *
Source file type should be a zip file.
+ *
Source file size should not exceed 100MB limit.
+ *
No credentials should be attached - the signed URLs provide access to the target bucket
+ * using internal service identity; if credentials were attached, the identity from the
+ * credentials would be used, but that identity does not have permissions to upload files to
+ * the URL.
+ *
*
*
When making a HTTP PUT request, these two headers need to be specified:
*
- *
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -848,7 +525,7 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
return generateUploadUrlCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for uploading a function source code. For more information about the
* signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once
@@ -857,51 +534,41 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
*
*
When uploading source code to the generated signed URL, please follow these restrictions:
*
- *
* Source file type should be a zip file. * Source file size should not exceed 100MB
- * limit. * No credentials should be attached - the signed URLs provide access to the target
- * bucket using internal service identity; if credentials were attached, the identity from the
- * credentials would be used, but that identity does not have permissions to upload files to the
- * URL.
+ *
+ *
Source file type should be a zip file.
+ *
Source file size should not exceed 100MB limit.
+ *
No credentials should be attached - the signed URLs provide access to the target bucket
+ * using internal service identity; if credentials were attached, the identity from the
+ * credentials would be used, but that identity does not have permissions to upload files to
+ * the URL.
+ *
*
*
When making a HTTP PUT request, these two headers need to be specified:
*
- *
*/
public final UnaryCallable
generateUploadUrlCallable() {
return stub.generateUploadUrlCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for downloading deployed function source code. The URL is only valid for a
* limited period and should be used within minutes after generation. For more information about
* the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -909,46 +576,23 @@ public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrl
return generateDownloadUrlCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a signed URL for downloading deployed function source code. The URL is only valid for a
* limited period and should be used within minutes after generation. For more information about
* the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
*
*
*/
public final UnaryCallable
generateDownloadUrlCallable() {
return stub.generateDownloadUrlCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the IAM access control policy on the specified function. Replaces any existing policy.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -956,47 +600,21 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
return setIamPolicyCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the IAM access control policy on the specified function. Replaces any existing policy.
*
*
*/
public final UnaryCallable setIamPolicyCallable() {
return stub.setIamPolicyCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM access control policy for a function. Returns an empty policy if the function
* exists and does not have a policy set.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -1004,48 +622,22 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
return getIamPolicyCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the IAM access control policy for a function. Returns an empty policy if the function
* exists and does not have a policy set.
*
*
*/
public final UnaryCallable getIamPolicyCallable() {
return stub.getIamPolicyCallable();
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Tests the specified permissions against the IAM access control policy for a function. If the
* function does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
*
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -1053,26 +645,12 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
return testIamPermissionsCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Tests the specified permissions against the IAM access control policy for a function. If the
* function does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
*
*
*/
public final UnaryCallable
testIamPermissionsCallable() {
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java
index 39892158..cccf008c 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1;
import static com.google.cloud.functions.v1.CloudFunctionsServiceClient.ListFunctionsPagedResponse;
@@ -41,7 +42,7 @@
import java.util.List;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link CloudFunctionsServiceClient}.
*
@@ -59,23 +60,25 @@
*
*
For example, to set the total timeout of getFunction to 30 seconds:
*
- *
+ * CloudFunctionsServiceSettings cloudFunctionsServiceSettings =
+ * cloudFunctionsServiceSettingsBuilder.build();
+ * }
*/
-@Generated("by gapic-generator")
-@BetaApi
+@Generated("by gapic-generator-java")
public class CloudFunctionsServiceSettings extends ClientSettings {
+
/** Returns the object with the settings used for calls to listFunctions. */
public PagedCallSettings
listFunctionsSettings() {
@@ -93,8 +96,6 @@ public UnaryCallSettings createFunctionSetting
}
/** Returns the object with the settings used for calls to createFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
createFunctionOperationSettings() {
return ((CloudFunctionsServiceStubSettings) getStubSettings())
@@ -107,8 +108,6 @@ public UnaryCallSettings updateFunctionSetting
}
/** Returns the object with the settings used for calls to updateFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
updateFunctionOperationSettings() {
return ((CloudFunctionsServiceStubSettings) getStubSettings())
@@ -121,8 +120,6 @@ public UnaryCallSettings deleteFunctionSetting
}
/** Returns the object with the settings used for calls to deleteFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings
deleteFunctionOperationSettings() {
return ((CloudFunctionsServiceStubSettings) getStubSettings())
@@ -223,18 +220,15 @@ protected CloudFunctionsServiceSettings(Builder settingsBuilder) throws IOExcept
/** Builder for CloudFunctionsServiceSettings. */
public static class Builder
extends ClientSettings.Builder {
+
protected Builder() throws IOException {
- this((ClientContext) null);
+ this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(CloudFunctionsServiceStubSettings.newBuilder(clientContext));
}
- private static Builder createDefault() {
- return new Builder(CloudFunctionsServiceStubSettings.newBuilder());
- }
-
protected Builder(CloudFunctionsServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
@@ -243,11 +237,15 @@ protected Builder(CloudFunctionsServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}
+ private static Builder createDefault() {
+ return new Builder(CloudFunctionsServiceStubSettings.newBuilder());
+ }
+
public CloudFunctionsServiceStubSettings.Builder getStubSettingsBuilder() {
return ((CloudFunctionsServiceStubSettings.Builder) getStubSettings());
}
- // NEXT_MAJOR_VER: remove 'throws Exception'
+ // NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
@@ -278,8 +276,6 @@ public UnaryCallSettings.Builder createFunctio
}
/** Returns the builder for the settings used for calls to createFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
createFunctionOperationSettings() {
return getStubSettingsBuilder().createFunctionOperationSettings();
@@ -291,8 +287,6 @@ public UnaryCallSettings.Builder updateFunctio
}
/** Returns the builder for the settings used for calls to updateFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
updateFunctionOperationSettings() {
return getStubSettingsBuilder().updateFunctionOperationSettings();
@@ -304,8 +298,6 @@ public UnaryCallSettings.Builder deleteFunctio
}
/** Returns the builder for the settings used for calls to deleteFunction. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
public OperationCallSettings.Builder
deleteFunctionOperationSettings() {
return getStubSettingsBuilder().deleteFunctionOperationSettings();
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java
index a99e00a5..5e9e48c0 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,26 +15,15 @@
*/
/**
- * A client to Cloud Functions API.
+ * The interfaces provided are listed below, along with usage samples.
*
- *
The interfaces provided are listed below, along with usage samples.
- *
- *
*/
-@Generated("by gapic-generator")
+@Generated("by gapic-generator-java")
package com.google.cloud.functions.v1;
import javax.annotation.Generated;
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java
index 68272c3c..ad064508 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1.stub;
import static com.google.cloud.functions.v1.CloudFunctionsServiceClient.ListFunctionsPagedResponse;
-import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
@@ -45,17 +45,15 @@
import com.google.protobuf.Empty;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * Base stub class for Cloud Functions API.
+ * Base stub class for the CloudFunctionsService service API.
*
*
This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class CloudFunctionsServiceStub implements BackgroundResource {
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationsStub getOperationsStub() {
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
}
@@ -73,7 +71,6 @@ public UnaryCallable getFunctionCallable() {
throw new UnsupportedOperationException("Not implemented: getFunctionCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
createFunctionOperationCallable() {
throw new UnsupportedOperationException("Not implemented: createFunctionOperationCallable()");
@@ -83,7 +80,6 @@ public UnaryCallable createFunctionCallable()
throw new UnsupportedOperationException("Not implemented: createFunctionCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
updateFunctionOperationCallable() {
throw new UnsupportedOperationException("Not implemented: updateFunctionOperationCallable()");
@@ -93,7 +89,6 @@ public UnaryCallable updateFunctionCallable()
throw new UnsupportedOperationException("Not implemented: updateFunctionCallable()");
}
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
deleteFunctionOperationCallable() {
throw new UnsupportedOperationException("Not implemented: deleteFunctionOperationCallable()");
diff --git a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java
index 59ac3e98..80de0147 100644
--- a/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java
+++ b/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.functions.v1.stub;
import static com.google.cloud.functions.v1.CloudFunctionsServiceClient.ListFunctionsPagedResponse;
@@ -73,7 +74,7 @@
import javax.annotation.Generated;
import org.threeten.bp.Duration;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link CloudFunctionsServiceStub}.
*
@@ -91,22 +92,24 @@
*
*
For example, to set the total timeout of getFunction to 30 seconds:
*
- *