From d945618f4001d6e1853b84ab6964fcd026319c52 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 26 May 2023 10:48:38 -0400 Subject: [PATCH] feat: [cloudfunctions] ListFunctions now include metadata which indicates whether a function is a `GEN_1` or `GEN_2` function (#9462) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: ListFunctions now include metadata which indicates whether a function is a `GEN_1` or `GEN_2` function feat: KMS crypto keys can now be specified when uploading function source code, enabling source code to be encrypted at rest with a user-managed encryption key feat: You can now specify concurrency and cpu of a gen 2 function through the Function API, without needing to modify the underlying Cloud Run service PiperOrigin-RevId: 534929457 Source-Link: https://github.com/googleapis/googleapis/commit/1c8b678e8b8336bd80fc5f0cd91fcf2e014dc1dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/c1050ce97535113557a0c132a62910794bc66227 Copy-Tag: eyJwIjoiamF2YS1mdW5jdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImMxMDUwY2U5NzUzNTExMzU1N2EwYzEzMmE2MjkxMDc5NGJjNjYyMjcifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: ListFunctions now include metadata which indicates whether a function is a `GEN_1` or `GEN_2` function PiperOrigin-RevId: 535193873 Source-Link: https://github.com/googleapis/googleapis/commit/d6b7eb591353e5fb41fa58c0d3127a18b278cefd Source-Link: https://github.com/googleapis/googleapis-gen/commit/822ccd09cc1e9f8a4ab0125cc93effe26ab882c1 Copy-Tag: eyJwIjoiamF2YS1mdW5jdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjgyMmNjZDA5Y2MxZTlmOGE0YWIwMTI1Y2M5M2VmZmUyNmFiODgyYzEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-functions/README.md | 4 +- .../v2beta/FunctionServiceClient.java | 6 + .../v2/FunctionServiceClientHttpJsonTest.java | 28 +- .../v2/FunctionServiceClientTest.java | 20 +- .../FunctionServiceClientHttpJsonTest.java | 48 +- .../v2beta/FunctionServiceClientTest.java | 37 +- .../functions/v1/CallFunctionRequest.java | 38 - .../functions/v1/CallFunctionResponse.java | 38 - .../cloud/functions/v1/CloudFunction.java | 165 +++- .../functions/v1/CloudFunctionOrBuilder.java | 38 +- .../functions/v1/CreateFunctionRequest.java | 38 - .../functions/v1/DeleteFunctionRequest.java | 38 - .../cloud/functions/v1/EventTrigger.java | 87 +- .../functions/v1/EventTriggerOrBuilder.java | 14 + .../cloud/functions/v1/FailurePolicy.java | 80 +- .../functions/v1/FailurePolicyOrBuilder.java | 2 +- .../cloud/functions/v1/FunctionsProto.java | 336 +++---- .../v1/GenerateDownloadUrlRequest.java | 38 - .../v1/GenerateDownloadUrlResponse.java | 38 - .../v1/GenerateUploadUrlRequest.java | 52 +- .../v1/GenerateUploadUrlRequestOrBuilder.java | 4 + .../v1/GenerateUploadUrlResponse.java | 38 - .../functions/v1/GetFunctionRequest.java | 38 - .../cloud/functions/v1/HttpsTrigger.java | 40 +- .../functions/v1/ListFunctionsRequest.java | 38 - .../functions/v1/ListFunctionsResponse.java | 75 +- .../functions/v1/OperationMetadataV1.java | 38 - .../cloud/functions/v1/SecretEnvVar.java | 38 - .../cloud/functions/v1/SecretVolume.java | 85 +- .../functions/v1/SecretVolumeOrBuilder.java | 2 + .../cloud/functions/v1/SourceRepository.java | 52 +- .../v1/SourceRepositoryOrBuilder.java | 4 + .../functions/v1/UpdateFunctionRequest.java | 38 - .../cloud/functions/v2/BuildConfig.java | 164 ++-- .../functions/v2/BuildConfigOrBuilder.java | 36 +- .../functions/v2/CreateFunctionRequest.java | 45 +- .../v2/CreateFunctionRequestOrBuilder.java | 2 + .../functions/v2/DeleteFunctionRequest.java | 38 - .../cloud/functions/v2/EventFilter.java | 38 - .../cloud/functions/v2/EventTrigger.java | 45 +- .../functions/v2/EventTriggerOrBuilder.java | 2 + .../google/cloud/functions/v2/Function.java | 707 +++++++------- .../cloud/functions/v2/FunctionOrBuilder.java | 80 +- .../cloud/functions/v2/FunctionsProto.java | 521 ++++++----- .../v2/GenerateDownloadUrlRequest.java | 38 - .../v2/GenerateDownloadUrlResponse.java | 38 - .../v2/GenerateUploadUrlRequest.java | 66 +- .../v2/GenerateUploadUrlRequestOrBuilder.java | 8 +- .../v2/GenerateUploadUrlResponse.java | 62 +- .../GenerateUploadUrlResponseOrBuilder.java | 6 + .../functions/v2/GetFunctionRequest.java | 38 - .../functions/v2/ListFunctionsRequest.java | 38 - .../functions/v2/ListFunctionsResponse.java | 75 +- .../functions/v2/ListRuntimesRequest.java | 38 - .../functions/v2/ListRuntimesResponse.java | 120 +-- .../cloud/functions/v2/LocationMetadata.java | 796 ++++++++++++++++ .../v2/LocationMetadataOrBuilder.java | 88 ++ .../cloud/functions/v2/OperationMetadata.java | 38 - .../google/cloud/functions/v2/RepoSource.java | 65 +- .../functions/v2/RepoSourceOrBuilder.java | 10 +- .../cloud/functions/v2/SecretEnvVar.java | 38 - .../cloud/functions/v2/SecretVolume.java | 78 -- .../cloud/functions/v2/ServiceConfig.java | 89 +- .../functions/v2/ServiceConfigOrBuilder.java | 11 +- .../com/google/cloud/functions/v2/Source.java | 40 +- .../cloud/functions/v2/SourceOrBuilder.java | 2 +- .../cloud/functions/v2/SourceProvenance.java | 38 - .../com/google/cloud/functions/v2/Stage.java | 38 - .../cloud/functions/v2/StateMessage.java | 38 - .../cloud/functions/v2/StorageSource.java | 45 +- .../functions/v2/StorageSourceOrBuilder.java | 2 + .../functions/v2/UpdateFunctionRequest.java | 38 - .../google/cloud/functions/v2/functions.proto | 45 +- .../cloud/functions/v2alpha/BuildConfig.java | 59 +- .../v2alpha/BuildConfigOrBuilder.java | 6 + .../v2alpha/CreateFunctionRequest.java | 45 +- .../CreateFunctionRequestOrBuilder.java | 2 + .../v2alpha/DeleteFunctionRequest.java | 38 - .../cloud/functions/v2alpha/EventFilter.java | 38 - .../cloud/functions/v2alpha/EventTrigger.java | 45 +- .../v2alpha/EventTriggerOrBuilder.java | 2 + .../cloud/functions/v2alpha/Function.java | 38 - .../functions/v2alpha/FunctionsProto.java | 465 +++++----- .../v2alpha/GenerateDownloadUrlRequest.java | 38 - .../v2alpha/GenerateDownloadUrlResponse.java | 38 - .../v2alpha/GenerateUploadUrlRequest.java | 38 - .../v2alpha/GenerateUploadUrlResponse.java | 62 +- .../GenerateUploadUrlResponseOrBuilder.java | 6 + .../functions/v2alpha/GetFunctionRequest.java | 38 - .../v2alpha/ListFunctionsRequest.java | 38 - .../v2alpha/ListFunctionsResponse.java | 75 +- .../v2alpha/ListRuntimesRequest.java | 38 - .../v2alpha/ListRuntimesResponse.java | 120 +-- .../functions/v2alpha/OperationMetadata.java | 38 - .../cloud/functions/v2alpha/RepoSource.java | 65 +- .../v2alpha/RepoSourceOrBuilder.java | 10 +- .../cloud/functions/v2alpha/SecretEnvVar.java | 38 - .../cloud/functions/v2alpha/SecretVolume.java | 78 -- .../functions/v2alpha/ServiceConfig.java | 53 +- .../v2alpha/ServiceConfigOrBuilder.java | 3 + .../cloud/functions/v2alpha/Source.java | 40 +- .../functions/v2alpha/SourceOrBuilder.java | 2 +- .../functions/v2alpha/SourceProvenance.java | 38 - .../google/cloud/functions/v2alpha/Stage.java | 38 - .../cloud/functions/v2alpha/StateMessage.java | 38 - .../functions/v2alpha/StorageSource.java | 45 +- .../v2alpha/StorageSourceOrBuilder.java | 2 + .../v2alpha/UpdateFunctionRequest.java | 38 - .../cloud/functions/v2beta/BuildConfig.java | 526 +++++++++-- .../v2beta/BuildConfigOrBuilder.java | 69 +- .../v2beta/CreateFunctionRequest.java | 73 +- .../CreateFunctionRequestOrBuilder.java | 10 +- .../cloud/functions/v2beta/CryptoKeyName.java | 261 ++++++ .../v2beta/DeleteFunctionRequest.java | 38 - .../cloud/functions/v2beta/EventFilter.java | 38 - .../cloud/functions/v2beta/EventTrigger.java | 122 +-- .../v2beta/EventTriggerOrBuilder.java | 24 +- .../cloud/functions/v2beta/Function.java | 864 ++++++++++++------ .../functions/v2beta/FunctionOrBuilder.java | 108 ++- .../functions/v2beta/FunctionsProto.java | 528 ++++++----- .../v2beta/GenerateDownloadUrlRequest.java | 66 +- .../GenerateDownloadUrlRequestOrBuilder.java | 8 +- .../v2beta/GenerateDownloadUrlResponse.java | 38 - .../v2beta/GenerateUploadUrlRequest.java | 346 +++++-- .../GenerateUploadUrlRequestOrBuilder.java | 61 +- .../v2beta/GenerateUploadUrlResponse.java | 62 +- .../GenerateUploadUrlResponseOrBuilder.java | 6 + .../functions/v2beta/GetFunctionRequest.java | 38 - .../v2beta/ListFunctionsRequest.java | 142 ++- .../v2beta/ListFunctionsRequestOrBuilder.java | 29 +- .../v2beta/ListFunctionsResponse.java | 75 +- .../functions/v2beta/ListRuntimesRequest.java | 66 +- .../v2beta/ListRuntimesRequestOrBuilder.java | 8 +- .../v2beta/ListRuntimesResponse.java | 120 +-- .../functions/v2beta/LocationMetadata.java | 798 ++++++++++++++++ .../v2beta/LocationMetadataOrBuilder.java | 88 ++ .../functions/v2beta/OperationMetadata.java | 58 +- .../v2beta/OperationMetadataOrBuilder.java | 5 +- .../cloud/functions/v2beta/RepoSource.java | 65 +- .../functions/v2beta/RepoSourceOrBuilder.java | 10 +- .../cloud/functions/v2beta/SecretEnvVar.java | 38 - .../cloud/functions/v2beta/SecretVolume.java | 78 -- .../cloud/functions/v2beta/ServiceConfig.java | 853 ++++++++++++++--- .../v2beta/ServiceConfigOrBuilder.java | 81 ++ .../google/cloud/functions/v2beta/Source.java | 40 +- .../functions/v2beta/SourceOrBuilder.java | 2 +- .../functions/v2beta/SourceProvenance.java | 38 - .../google/cloud/functions/v2beta/Stage.java | 38 - .../cloud/functions/v2beta/StateMessage.java | 38 - .../cloud/functions/v2beta/StorageSource.java | 45 +- .../v2beta/StorageSourceOrBuilder.java | 2 + .../v2beta/UpdateFunctionRequest.java | 38 - .../cloud/functions/v2beta/functions.proto | 224 +++-- .../AsyncGenerateUploadUrl.java | 4 + .../SyncGenerateUploadUrl.java | 4 + 155 files changed, 7137 insertions(+), 6230 deletions(-) create mode 100644 java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadata.java create mode 100644 java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadataOrBuilder.java create mode 100644 java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java create mode 100644 java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadata.java create mode 100644 java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadataOrBuilder.java diff --git a/java-functions/README.md b/java-functions/README.md index 6337208e2240..fce6232020a1 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.14.0 + 26.15.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java index 02fe7209d0ef..0d0b01a3a645 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java @@ -988,6 +988,9 @@ public final UnaryCallable deleteFunctionCalla * GenerateUploadUrlRequest request = * GenerateUploadUrlRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setKmsKeyName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) * .build(); * GenerateUploadUrlResponse response = functionServiceClient.generateUploadUrl(request); * } @@ -1041,6 +1044,9 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques * GenerateUploadUrlRequest request = * GenerateUploadUrlRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setKmsKeyName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) * .build(); * ApiFuture future = * functionServiceClient.generateUploadUrlCallable().futureCall(request); diff --git a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java index 49a722196a78..b4b610c6388f 100644 --- a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java +++ b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientHttpJsonTest.java @@ -101,7 +101,6 @@ public void getFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -109,10 +108,11 @@ public void getFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); mockService.addResponse(expectedResponse); @@ -157,7 +157,6 @@ public void getFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -165,10 +164,11 @@ public void getFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); mockService.addResponse(expectedResponse); @@ -313,7 +313,6 @@ public void createFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -321,10 +320,11 @@ public void createFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); Operation resultOperation = Operation.newBuilder() @@ -378,7 +378,6 @@ public void createFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -386,10 +385,11 @@ public void createFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); Operation resultOperation = Operation.newBuilder() @@ -443,7 +443,6 @@ public void updateFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -451,10 +450,11 @@ public void updateFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); Operation resultOperation = Operation.newBuilder() @@ -467,7 +467,6 @@ public void updateFunctionTest() throws Exception { Function function = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -475,10 +474,11 @@ public void updateFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -511,7 +511,6 @@ public void updateFunctionExceptionTest() throws Exception { Function function = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -519,10 +518,11 @@ public void updateFunctionExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateFunctionAsync(function, updateMask).get(); diff --git a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java index 137ecfe4e7e1..1757cc3b93b7 100644 --- a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java +++ b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2/FunctionServiceClientTest.java @@ -110,7 +110,6 @@ public void getFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -118,10 +117,11 @@ public void getFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); mockFunctionService.addResponse(expectedResponse); @@ -160,7 +160,6 @@ public void getFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -168,10 +167,11 @@ public void getFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); mockFunctionService.addResponse(expectedResponse); @@ -298,7 +298,6 @@ public void createFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -306,10 +305,11 @@ public void createFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); Operation resultOperation = Operation.newBuilder() @@ -362,7 +362,6 @@ public void createFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -370,10 +369,11 @@ public void createFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); Operation resultOperation = Operation.newBuilder() @@ -426,7 +426,6 @@ public void updateFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -434,10 +433,11 @@ public void updateFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") .setKmsKeyName( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) - .setUrl("url116079") .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java index 961897871752..a797545a8d1c 100644 --- a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java +++ b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientHttpJsonTest.java @@ -101,7 +101,6 @@ public void getFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -109,6 +108,11 @@ public void getFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -153,7 +157,6 @@ public void getFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -161,6 +164,11 @@ public void getFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); mockService.addResponse(expectedResponse); @@ -305,7 +313,6 @@ public void createFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -313,6 +320,11 @@ public void createFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -366,7 +378,6 @@ public void createFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -374,6 +385,11 @@ public void createFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -427,7 +443,6 @@ public void updateFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -435,6 +450,11 @@ public void updateFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -447,7 +467,6 @@ public void updateFunctionTest() throws Exception { Function function = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -455,6 +474,11 @@ public void updateFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -487,7 +511,6 @@ public void updateFunctionExceptionTest() throws Exception { Function function = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -495,6 +518,11 @@ public void updateFunctionExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateFunctionAsync(function, updateMask).get(); @@ -605,6 +633,9 @@ public void generateUploadUrlTest() throws Exception { GenerateUploadUrlRequest request = GenerateUploadUrlRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); GenerateUploadUrlResponse actualResponse = client.generateUploadUrl(request); @@ -636,6 +667,9 @@ public void generateUploadUrlExceptionTest() throws Exception { GenerateUploadUrlRequest request = GenerateUploadUrlRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); client.generateUploadUrl(request); Assert.fail("No exception raised"); diff --git a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java index 77aa215e8ca2..f4a98931ce2a 100644 --- a/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java +++ b/java-functions/google-cloud-functions/src/test/java/com/google/cloud/functions/v2beta/FunctionServiceClientTest.java @@ -110,7 +110,6 @@ public void getFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -118,6 +117,11 @@ public void getFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); mockFunctionService.addResponse(expectedResponse); @@ -156,7 +160,6 @@ public void getFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -164,6 +167,11 @@ public void getFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); mockFunctionService.addResponse(expectedResponse); @@ -290,7 +298,6 @@ public void createFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -298,6 +305,11 @@ public void createFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -350,7 +362,6 @@ public void createFunctionTest2() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -358,6 +369,11 @@ public void createFunctionTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -410,7 +426,6 @@ public void updateFunctionTest() throws Exception { Function expectedResponse = Function.newBuilder() .setName(FunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString()) - .setEnvironment(Environment.forNumber(0)) .setDescription("description-1724546052") .setBuildConfig(BuildConfig.newBuilder().build()) .setServiceConfig(ServiceConfig.newBuilder().build()) @@ -418,6 +433,11 @@ public void updateFunctionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .addAllStateMessages(new ArrayList()) + .setEnvironment(Environment.forNumber(0)) + .setUrl("url116079") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); Operation resultOperation = Operation.newBuilder() @@ -558,6 +578,9 @@ public void generateUploadUrlTest() throws Exception { GenerateUploadUrlRequest request = GenerateUploadUrlRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); GenerateUploadUrlResponse actualResponse = client.generateUploadUrl(request); @@ -568,6 +591,7 @@ public void generateUploadUrlTest() throws Exception { GenerateUploadUrlRequest actualRequest = ((GenerateUploadUrlRequest) actualRequests.get(0)); Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getKmsKeyName(), actualRequest.getKmsKeyName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -583,6 +607,9 @@ public void generateUploadUrlExceptionTest() throws Exception { GenerateUploadUrlRequest request = GenerateUploadUrlRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); client.generateUploadUrl(request); Assert.fail("No exception raised"); diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java index 91aa75ce031e..3689beda3e00 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CallFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_CallFunctionRequest_descriptor; @@ -427,39 +422,6 @@ private void buildPartial0(com.google.cloud.functions.v1.CallFunctionRequest res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.CallFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java index 3d33082ebd1e..4e730b4d2bf3 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CallFunctionResponse.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CallFunctionResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_CallFunctionResponse_descriptor; @@ -492,39 +487,6 @@ private void buildPartial0(com.google.cloud.functions.v1.CallFunctionResponse re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.CallFunctionResponse) { diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java index f6d849c70be9..6a0a09336d1b 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunction.java @@ -66,11 +66,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudFunction(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_CloudFunction_descriptor; @@ -106,6 +101,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * Available egress settings.
+   *
    * This controls what traffic is diverted through the Serverless VPC Access
    * connector resource. By default, PRIVATE_RANGES_ONLY is used.
    * 
@@ -272,7 +268,9 @@ private VpcConnectorEgressSettings(int value) { * *
    * Available ingress settings.
+   *
    * This controls what traffic can reach the function.
+   *
    * If unspecified, ALLOW_ALL is used.
    * 
* @@ -618,6 +616,8 @@ private DockerRegistry(int value) { } private int sourceCodeCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object sourceCode_; public enum SourceCodeCase @@ -668,6 +668,8 @@ public SourceCodeCase getSourceCodeCase() { } private int triggerCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object trigger_; public enum TriggerCase @@ -897,6 +899,7 @@ public com.google.protobuf.ByteString getSourceArchiveUrlBytes() { * *
    * **Beta Feature**
+   *
    * The source repository where a function is hosted.
    * 
* @@ -913,6 +916,7 @@ public boolean hasSourceRepository() { * *
    * **Beta Feature**
+   *
    * The source repository where a function is hosted.
    * 
* @@ -932,6 +936,7 @@ public com.google.cloud.functions.v1.SourceRepository getSourceRepository() { * *
    * **Beta Feature**
+   *
    * The source repository where a function is hosted.
    * 
* @@ -952,6 +957,7 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito *
    * The Google Cloud Storage-signed URL used for source uploading, generated
    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+   *
    * The signature is validated on write methods (Create, Update)
    * The signature is stripped from the Function object on read methods (Get,
    * List)
@@ -970,6 +976,7 @@ public boolean hasSourceUploadUrl() {
    * 
    * The Google Cloud Storage-signed URL used for source uploading, generated
    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+   *
    * The signature is validated on write methods (Create, Update)
    * The signature is stripped from the Function object on read methods (Get,
    * List)
@@ -1001,6 +1008,7 @@ public java.lang.String getSourceUploadUrl() {
    * 
    * The Google Cloud Storage-signed URL used for source uploading, generated
    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+   *
    * The signature is validated on write methods (Create, Update)
    * The signature is stripped from the Function object on read methods (Get,
    * List)
@@ -1811,8 +1819,10 @@ public java.lang.String getBuildEnvironmentVariablesOrThrow(java.lang.String key
    * `projects/{project}/global/networks/{network}` or `{network}`, where
    * `{project}` is a project id where the network is defined, and `{network}`
    * is the short name of the network.
+   *
    * This field is mutually exclusive with `vpc_connector` and will be replaced
    * by it.
+   *
    * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
    * more information on connecting Cloud projects.
    * 
@@ -1845,8 +1855,10 @@ public java.lang.String getNetwork() { * `projects/{project}/global/networks/{network}` or `{network}`, where * `{project}` is a project id where the network is defined, and `{network}` * is the short name of the network. + * * This field is mutually exclusive with `vpc_connector` and will be replaced * by it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -1876,11 +1888,13 @@ public com.google.protobuf.ByteString getNetworkBytes() { *
    * The limit on the maximum number of function instances that can coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions can for a
    * short period of time create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you might want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -1926,8 +1940,10 @@ public int getMinInstances() {
    * be either the fully qualified URI, or the short name of the network
    * connector resource. The format of this field is
    * `projects/*/locations/*/connectors/*`
+   *
    * This field is mutually exclusive with `network` field and will eventually
    * replace it.
+   *
    * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
    * more information on connecting Cloud projects.
    * 
@@ -1956,8 +1972,10 @@ public java.lang.String getVpcConnector() { * be either the fully qualified URI, or the short name of the network * connector resource. The format of this field is * `projects/*/locations/*/connectors/*` + * * This field is mutually exclusive with `network` field and will eventually * replace it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -2073,14 +2091,18 @@ public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSet *
    * Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function resources.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * If specified, you must also provide an artifact registry repository using
    * the `docker_repository` field that was created with the same KMS crypto
    * key.
+   *
    * The following service accounts need to be granted the role 'Cloud KMS
    * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
    * on the Key/KeyRing/Project/Organization (least access preferred).
+   *
    * 1. Google Cloud Functions service account
    *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
    *    Required to protect the function's image.
@@ -2092,6 +2114,7 @@ public com.google.cloud.functions.v1.CloudFunction.IngressSettings getIngressSet
    *    information, see
    *    https://cloud.google.com/storage/docs/projects#service-agents and
    *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+   *
    * Google Cloud Functions delegates access to service agents to protect
    * function resources in internal projects that are not accessible by the
    * end user.
@@ -2119,14 +2142,18 @@ public java.lang.String getKmsKeyName() {
    * 
    * Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function resources.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * If specified, you must also provide an artifact registry repository using
    * the `docker_repository` field that was created with the same KMS crypto
    * key.
+   *
    * The following service accounts need to be granted the role 'Cloud KMS
    * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
    * on the Key/KeyRing/Project/Organization (least access preferred).
+   *
    * 1. Google Cloud Functions service account
    *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
    *    Required to protect the function's image.
@@ -2138,6 +2165,7 @@ public java.lang.String getKmsKeyName() {
    *    information, see
    *    https://cloud.google.com/storage/docs/projects#service-agents and
    *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+   *
    * Google Cloud Functions delegates access to service agents to protect
    * function resources in internal projects that are not accessible by the
    * end user.
@@ -2174,6 +2202,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * `{project}` and `{region}` are the project id and region respectively where
    * the worker pool is defined and `{workerPool}` is the short name of the
    * worker pool.
+   *
    * If the project id is not the same as the function, then the Cloud
    * Functions Service Agent
    * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -2207,6 +2236,7 @@ public java.lang.String getBuildWorkerPool() {
    * `{project}` and `{region}` are the project id and region respectively where
    * the worker pool is defined and `{workerPool}` is the short name of the
    * worker pool.
+   *
    * If the project id is not the same as the function, then the Cloud
    * Functions Service Agent
    * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -2553,8 +2583,10 @@ public com.google.protobuf.ByteString getSourceTokenBytes() {
    * Artifact Registry, GCF will create and use a repository named
    * 'gcf-artifacts' for every deployed region. This is the repository to which
    * the function docker image is pushed after it is built by Cloud Build.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
@@ -2586,8 +2618,10 @@ public java.lang.String getDockerRepository() {
    * Artifact Registry, GCF will create and use a repository named
    * 'gcf-artifacts' for every deployed region. This is the repository to which
    * the function docker image is pushed after it is built by Cloud Build.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
@@ -2617,6 +2651,7 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() {
    *
    * 
    * Docker Registry to use for this deployment.
+   *
    * If `docker_repository` field is specified, this field is automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -2636,6 +2671,7 @@ public int getDockerRegistryValue() {
    *
    * 
    * Docker Registry to use for this deployment.
+   *
    * If `docker_repository` field is specified, this field is automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -3511,39 +3547,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v1.CloudFunction resu
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.CloudFunction) {
@@ -4432,6 +4435,7 @@ public Builder setSourceArchiveUrlBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4448,6 +4452,7 @@ public boolean hasSourceRepository() { * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4474,6 +4479,7 @@ public com.google.cloud.functions.v1.SourceRepository getSourceRepository() { * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4497,6 +4503,7 @@ public Builder setSourceRepository(com.google.cloud.functions.v1.SourceRepositor * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4518,6 +4525,7 @@ public Builder setSourceRepository( * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4551,6 +4559,7 @@ public Builder mergeSourceRepository(com.google.cloud.functions.v1.SourceReposit * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4577,6 +4586,7 @@ public Builder clearSourceRepository() { * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4590,6 +4600,7 @@ public com.google.cloud.functions.v1.SourceRepository.Builder getSourceRepositor * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4611,6 +4622,7 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito * *
      * **Beta Feature**
+     *
      * The source repository where a function is hosted.
      * 
* @@ -4646,6 +4658,7 @@ public com.google.cloud.functions.v1.SourceRepositoryOrBuilder getSourceReposito *
      * The Google Cloud Storage-signed URL used for source uploading, generated
      * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+     *
      * The signature is validated on write methods (Create, Update)
      * The signature is stripped from the Function object on read methods (Get,
      * List)
@@ -4665,6 +4678,7 @@ public boolean hasSourceUploadUrl() {
      * 
      * The Google Cloud Storage-signed URL used for source uploading, generated
      * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+     *
      * The signature is validated on write methods (Create, Update)
      * The signature is stripped from the Function object on read methods (Get,
      * List)
@@ -4697,6 +4711,7 @@ public java.lang.String getSourceUploadUrl() {
      * 
      * The Google Cloud Storage-signed URL used for source uploading, generated
      * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+     *
      * The signature is validated on write methods (Create, Update)
      * The signature is stripped from the Function object on read methods (Get,
      * List)
@@ -4729,6 +4744,7 @@ public com.google.protobuf.ByteString getSourceUploadUrlBytes() {
      * 
      * The Google Cloud Storage-signed URL used for source uploading, generated
      * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+     *
      * The signature is validated on write methods (Create, Update)
      * The signature is stripped from the Function object on read methods (Get,
      * List)
@@ -4754,6 +4770,7 @@ public Builder setSourceUploadUrl(java.lang.String value) {
      * 
      * The Google Cloud Storage-signed URL used for source uploading, generated
      * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+     *
      * The signature is validated on write methods (Create, Update)
      * The signature is stripped from the Function object on read methods (Get,
      * List)
@@ -4777,6 +4794,7 @@ public Builder clearSourceUploadUrl() {
      * 
      * The Google Cloud Storage-signed URL used for source uploading, generated
      * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+     *
      * The signature is validated on write methods (Create, Update)
      * The signature is stripped from the Function object on read methods (Get,
      * List)
@@ -6713,8 +6731,10 @@ public Builder putAllBuildEnvironmentVariables(
      * `projects/{project}/global/networks/{network}` or `{network}`, where
      * `{project}` is a project id where the network is defined, and `{network}`
      * is the short name of the network.
+     *
      * This field is mutually exclusive with `vpc_connector` and will be replaced
      * by it.
+     *
      * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
      * more information on connecting Cloud projects.
      * 
@@ -6746,8 +6766,10 @@ public java.lang.String getNetwork() { * `projects/{project}/global/networks/{network}` or `{network}`, where * `{project}` is a project id where the network is defined, and `{network}` * is the short name of the network. + * * This field is mutually exclusive with `vpc_connector` and will be replaced * by it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -6779,8 +6801,10 @@ public com.google.protobuf.ByteString getNetworkBytes() { * `projects/{project}/global/networks/{network}` or `{network}`, where * `{project}` is a project id where the network is defined, and `{network}` * is the short name of the network. + * * This field is mutually exclusive with `vpc_connector` and will be replaced * by it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -6811,8 +6835,10 @@ public Builder setNetwork(java.lang.String value) { * `projects/{project}/global/networks/{network}` or `{network}`, where * `{project}` is a project id where the network is defined, and `{network}` * is the short name of the network. + * * This field is mutually exclusive with `vpc_connector` and will be replaced * by it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -6839,8 +6865,10 @@ public Builder clearNetwork() { * `projects/{project}/global/networks/{network}` or `{network}`, where * `{project}` is a project id where the network is defined, and `{network}` * is the short name of the network. + * * This field is mutually exclusive with `vpc_connector` and will be replaced * by it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -6868,11 +6896,13 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { *
      * The limit on the maximum number of function instances that can coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions can for a
      * short period of time create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you might want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -6892,11 +6922,13 @@ public int getMaxInstances() {
      * 
      * The limit on the maximum number of function instances that can coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions can for a
      * short period of time create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you might want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -6920,11 +6952,13 @@ public Builder setMaxInstances(int value) {
      * 
      * The limit on the maximum number of function instances that can coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions can for a
      * short period of time create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you might want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -7006,8 +7040,10 @@ public Builder clearMinInstances() {
      * be either the fully qualified URI, or the short name of the network
      * connector resource. The format of this field is
      * `projects/*/locations/*/connectors/*`
+     *
      * This field is mutually exclusive with `network` field and will eventually
      * replace it.
+     *
      * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
      * more information on connecting Cloud projects.
      * 
@@ -7035,8 +7071,10 @@ public java.lang.String getVpcConnector() { * be either the fully qualified URI, or the short name of the network * connector resource. The format of this field is * `projects/*/locations/*/connectors/*` + * * This field is mutually exclusive with `network` field and will eventually * replace it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -7064,8 +7102,10 @@ public com.google.protobuf.ByteString getVpcConnectorBytes() { * be either the fully qualified URI, or the short name of the network * connector resource. The format of this field is * `projects/*/locations/*/connectors/*` + * * This field is mutually exclusive with `network` field and will eventually * replace it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -7092,8 +7132,10 @@ public Builder setVpcConnector(java.lang.String value) { * be either the fully qualified URI, or the short name of the network * connector resource. The format of this field is * `projects/*/locations/*/connectors/*` + * * This field is mutually exclusive with `network` field and will eventually * replace it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -7116,8 +7158,10 @@ public Builder clearVpcConnector() { * be either the fully qualified URI, or the short name of the network * connector resource. The format of this field is * `projects/*/locations/*/connectors/*` + * * This field is mutually exclusive with `network` field and will eventually * replace it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -7353,14 +7397,18 @@ public Builder clearIngressSettings() { *
      * Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function resources.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * If specified, you must also provide an artifact registry repository using
      * the `docker_repository` field that was created with the same KMS crypto
      * key.
+     *
      * The following service accounts need to be granted the role 'Cloud KMS
      * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
      * on the Key/KeyRing/Project/Organization (least access preferred).
+     *
      * 1. Google Cloud Functions service account
      *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
      *    Required to protect the function's image.
@@ -7372,6 +7420,7 @@ public Builder clearIngressSettings() {
      *    information, see
      *    https://cloud.google.com/storage/docs/projects#service-agents and
      *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+     *
      * Google Cloud Functions delegates access to service agents to protect
      * function resources in internal projects that are not accessible by the
      * end user.
@@ -7398,14 +7447,18 @@ public java.lang.String getKmsKeyName() {
      * 
      * Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function resources.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * If specified, you must also provide an artifact registry repository using
      * the `docker_repository` field that was created with the same KMS crypto
      * key.
+     *
      * The following service accounts need to be granted the role 'Cloud KMS
      * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
      * on the Key/KeyRing/Project/Organization (least access preferred).
+     *
      * 1. Google Cloud Functions service account
      *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
      *    Required to protect the function's image.
@@ -7417,6 +7470,7 @@ public java.lang.String getKmsKeyName() {
      *    information, see
      *    https://cloud.google.com/storage/docs/projects#service-agents and
      *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+     *
      * Google Cloud Functions delegates access to service agents to protect
      * function resources in internal projects that are not accessible by the
      * end user.
@@ -7443,14 +7497,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
      * Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function resources.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * If specified, you must also provide an artifact registry repository using
      * the `docker_repository` field that was created with the same KMS crypto
      * key.
+     *
      * The following service accounts need to be granted the role 'Cloud KMS
      * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
      * on the Key/KeyRing/Project/Organization (least access preferred).
+     *
      * 1. Google Cloud Functions service account
      *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
      *    Required to protect the function's image.
@@ -7462,6 +7520,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      *    information, see
      *    https://cloud.google.com/storage/docs/projects#service-agents and
      *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+     *
      * Google Cloud Functions delegates access to service agents to protect
      * function resources in internal projects that are not accessible by the
      * end user.
@@ -7487,14 +7546,18 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
      * Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function resources.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * If specified, you must also provide an artifact registry repository using
      * the `docker_repository` field that was created with the same KMS crypto
      * key.
+     *
      * The following service accounts need to be granted the role 'Cloud KMS
      * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
      * on the Key/KeyRing/Project/Organization (least access preferred).
+     *
      * 1. Google Cloud Functions service account
      *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
      *    Required to protect the function's image.
@@ -7506,6 +7569,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      *    information, see
      *    https://cloud.google.com/storage/docs/projects#service-agents and
      *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+     *
      * Google Cloud Functions delegates access to service agents to protect
      * function resources in internal projects that are not accessible by the
      * end user.
@@ -7527,14 +7591,18 @@ public Builder clearKmsKeyName() {
      * 
      * Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function resources.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * If specified, you must also provide an artifact registry repository using
      * the `docker_repository` field that was created with the same KMS crypto
      * key.
+     *
      * The following service accounts need to be granted the role 'Cloud KMS
      * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
      * on the Key/KeyRing/Project/Organization (least access preferred).
+     *
      * 1. Google Cloud Functions service account
      *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
      *    Required to protect the function's image.
@@ -7546,6 +7614,7 @@ public Builder clearKmsKeyName() {
      *    information, see
      *    https://cloud.google.com/storage/docs/projects#service-agents and
      *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+     *
      * Google Cloud Functions delegates access to service agents to protect
      * function resources in internal projects that are not accessible by the
      * end user.
@@ -7578,6 +7647,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * `{project}` and `{region}` are the project id and region respectively where
      * the worker pool is defined and `{workerPool}` is the short name of the
      * worker pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -7610,6 +7680,7 @@ public java.lang.String getBuildWorkerPool() {
      * `{project}` and `{region}` are the project id and region respectively where
      * the worker pool is defined and `{workerPool}` is the short name of the
      * worker pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -7642,6 +7713,7 @@ public com.google.protobuf.ByteString getBuildWorkerPoolBytes() {
      * `{project}` and `{region}` are the project id and region respectively where
      * the worker pool is defined and `{workerPool}` is the short name of the
      * worker pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -7673,6 +7745,7 @@ public Builder setBuildWorkerPool(java.lang.String value) {
      * `{project}` and `{region}` are the project id and region respectively where
      * the worker pool is defined and `{workerPool}` is the short name of the
      * worker pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -7700,6 +7773,7 @@ public Builder clearBuildWorkerPool() {
      * `{project}` and `{region}` are the project id and region respectively where
      * the worker pool is defined and `{workerPool}` is the short name of the
      * worker pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -8802,8 +8876,10 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) {
      * Artifact Registry, GCF will create and use a repository named
      * 'gcf-artifacts' for every deployed region. This is the repository to which
      * the function docker image is pushed after it is built by Cloud Build.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -8834,8 +8910,10 @@ public java.lang.String getDockerRepository() {
      * Artifact Registry, GCF will create and use a repository named
      * 'gcf-artifacts' for every deployed region. This is the repository to which
      * the function docker image is pushed after it is built by Cloud Build.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -8866,8 +8944,10 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() {
      * Artifact Registry, GCF will create and use a repository named
      * 'gcf-artifacts' for every deployed region. This is the repository to which
      * the function docker image is pushed after it is built by Cloud Build.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -8897,8 +8977,10 @@ public Builder setDockerRepository(java.lang.String value) {
      * Artifact Registry, GCF will create and use a repository named
      * 'gcf-artifacts' for every deployed region. This is the repository to which
      * the function docker image is pushed after it is built by Cloud Build.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -8924,8 +9006,10 @@ public Builder clearDockerRepository() {
      * Artifact Registry, GCF will create and use a repository named
      * 'gcf-artifacts' for every deployed region. This is the repository to which
      * the function docker image is pushed after it is built by Cloud Build.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -8953,6 +9037,7 @@ public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Docker Registry to use for this deployment.
+     *
      * If `docker_repository` field is specified, this field is automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -8972,6 +9057,7 @@ public int getDockerRegistryValue() {
      *
      * 
      * Docker Registry to use for this deployment.
+     *
      * If `docker_repository` field is specified, this field is automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -8994,6 +9080,7 @@ public Builder setDockerRegistryValue(int value) {
      *
      * 
      * Docker Registry to use for this deployment.
+     *
      * If `docker_repository` field is specified, this field is automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -9017,6 +9104,7 @@ public com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegis
      *
      * 
      * Docker Registry to use for this deployment.
+     *
      * If `docker_repository` field is specified, this field is automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -9043,6 +9131,7 @@ public Builder setDockerRegistry(
      *
      * 
      * Docker Registry to use for this deployment.
+     *
      * If `docker_repository` field is specified, this field is automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java
index e6a2820bbbcb..3f07dd4c1e8f 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionOrBuilder.java
@@ -120,6 +120,7 @@ public interface CloudFunctionOrBuilder
    *
    * 
    * **Beta Feature**
+   *
    * The source repository where a function is hosted.
    * 
* @@ -133,6 +134,7 @@ public interface CloudFunctionOrBuilder * *
    * **Beta Feature**
+   *
    * The source repository where a function is hosted.
    * 
* @@ -146,6 +148,7 @@ public interface CloudFunctionOrBuilder * *
    * **Beta Feature**
+   *
    * The source repository where a function is hosted.
    * 
* @@ -159,6 +162,7 @@ public interface CloudFunctionOrBuilder *
    * The Google Cloud Storage-signed URL used for source uploading, generated
    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+   *
    * The signature is validated on write methods (Create, Update)
    * The signature is stripped from the Function object on read methods (Get,
    * List)
@@ -175,6 +179,7 @@ public interface CloudFunctionOrBuilder
    * 
    * The Google Cloud Storage-signed URL used for source uploading, generated
    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+   *
    * The signature is validated on write methods (Create, Update)
    * The signature is stripped from the Function object on read methods (Get,
    * List)
@@ -191,6 +196,7 @@ public interface CloudFunctionOrBuilder
    * 
    * The Google Cloud Storage-signed URL used for source uploading, generated
    * by calling [google.cloud.functions.v1.GenerateUploadUrl].
+   *
    * The signature is validated on write methods (Create, Update)
    * The signature is stripped from the Function object on read methods (Get,
    * List)
@@ -689,8 +695,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
    * `projects/{project}/global/networks/{network}` or `{network}`, where
    * `{project}` is a project id where the network is defined, and `{network}`
    * is the short name of the network.
+   *
    * This field is mutually exclusive with `vpc_connector` and will be replaced
    * by it.
+   *
    * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
    * more information on connecting Cloud projects.
    * 
@@ -712,8 +720,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault( * `projects/{project}/global/networks/{network}` or `{network}`, where * `{project}` is a project id where the network is defined, and `{network}` * is the short name of the network. + * * This field is mutually exclusive with `vpc_connector` and will be replaced * by it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -730,11 +740,13 @@ java.lang.String getBuildEnvironmentVariablesOrDefault( *
    * The limit on the maximum number of function instances that can coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions can for a
    * short period of time create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you might want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -768,8 +780,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
    * be either the fully qualified URI, or the short name of the network
    * connector resource. The format of this field is
    * `projects/*/locations/*/connectors/*`
+   *
    * This field is mutually exclusive with `network` field and will eventually
    * replace it.
+   *
    * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
    * more information on connecting Cloud projects.
    * 
@@ -787,8 +801,10 @@ java.lang.String getBuildEnvironmentVariablesOrDefault( * be either the fully qualified URI, or the short name of the network * connector resource. The format of this field is * `projects/*/locations/*/connectors/*` + * * This field is mutually exclusive with `network` field and will eventually * replace it. + * * See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for * more information on connecting Cloud projects. *
@@ -864,14 +880,18 @@ java.lang.String getBuildEnvironmentVariablesOrDefault( *
    * Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function resources.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * If specified, you must also provide an artifact registry repository using
    * the `docker_repository` field that was created with the same KMS crypto
    * key.
+   *
    * The following service accounts need to be granted the role 'Cloud KMS
    * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
    * on the Key/KeyRing/Project/Organization (least access preferred).
+   *
    * 1. Google Cloud Functions service account
    *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
    *    Required to protect the function's image.
@@ -883,6 +903,7 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
    *    information, see
    *    https://cloud.google.com/storage/docs/projects#service-agents and
    *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+   *
    * Google Cloud Functions delegates access to service agents to protect
    * function resources in internal projects that are not accessible by the
    * end user.
@@ -899,14 +920,18 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
    * 
    * Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function resources.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * If specified, you must also provide an artifact registry repository using
    * the `docker_repository` field that was created with the same KMS crypto
    * key.
+   *
    * The following service accounts need to be granted the role 'Cloud KMS
    * CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
    * on the Key/KeyRing/Project/Organization (least access preferred).
+   *
    * 1. Google Cloud Functions service account
    *    (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
    *    Required to protect the function's image.
@@ -918,6 +943,7 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
    *    information, see
    *    https://cloud.google.com/storage/docs/projects#service-agents and
    *    https://cloud.google.com/storage/docs/getting-service-agent#gsutil.
+   *
    * Google Cloud Functions delegates access to service agents to protect
    * function resources in internal projects that are not accessible by the
    * end user.
@@ -939,6 +965,7 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
    * `{project}` and `{region}` are the project id and region respectively where
    * the worker pool is defined and `{workerPool}` is the short name of the
    * worker pool.
+   *
    * If the project id is not the same as the function, then the Cloud
    * Functions Service Agent
    * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -961,6 +988,7 @@ java.lang.String getBuildEnvironmentVariablesOrDefault(
    * `{project}` and `{region}` are the project id and region respectively where
    * the worker pool is defined and `{workerPool}` is the short name of the
    * worker pool.
+   *
    * If the project id is not the same as the function, then the Cloud
    * Functions Service Agent
    * (`service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com`) must
@@ -1175,8 +1203,10 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
    * Artifact Registry, GCF will create and use a repository named
    * 'gcf-artifacts' for every deployed region. This is the repository to which
    * the function docker image is pushed after it is built by Cloud Build.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
@@ -1197,8 +1227,10 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
    * Artifact Registry, GCF will create and use a repository named
    * 'gcf-artifacts' for every deployed region. This is the repository to which
    * the function docker image is pushed after it is built by Cloud Build.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
@@ -1215,6 +1247,7 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
    *
    * 
    * Docker Registry to use for this deployment.
+   *
    * If `docker_repository` field is specified, this field is automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -1231,6 +1264,7 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
    *
    * 
    * Docker Registry to use for this deployment.
+   *
    * If `docker_repository` field is specified, this field is automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
@@ -1243,7 +1277,7 @@ com.google.cloud.functions.v1.SecretEnvVarOrBuilder getSecretEnvironmentVariable
    */
   com.google.cloud.functions.v1.CloudFunction.DockerRegistry getDockerRegistry();
 
-  public com.google.cloud.functions.v1.CloudFunction.SourceCodeCase getSourceCodeCase();
+  com.google.cloud.functions.v1.CloudFunction.SourceCodeCase getSourceCodeCase();
 
-  public com.google.cloud.functions.v1.CloudFunction.TriggerCase getTriggerCase();
+  com.google.cloud.functions.v1.CloudFunction.TriggerCase getTriggerCase();
 }
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
index 455eccf429c5..f922737a3600 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CreateFunctionRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateFunctionRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_CreateFunctionRequest_descriptor;
@@ -442,39 +437,6 @@ private void buildPartial0(com.google.cloud.functions.v1.CreateFunctionRequest r
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.CreateFunctionRequest) {
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java
index 0935dd4f334f..88b1b969693c 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/DeleteFunctionRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteFunctionRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_DeleteFunctionRequest_descriptor;
@@ -362,39 +357,6 @@ private void buildPartial0(com.google.cloud.functions.v1.DeleteFunctionRequest r
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.DeleteFunctionRequest) {
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java
index 87ce89465b12..84b835b0ba7c 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTrigger.java
@@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EventTrigger();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_EventTrigger_descriptor;
@@ -81,8 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * Required. The type of event to observe. For example:
    * `providers/cloud.storage/eventTypes/object.change` and
    * `providers/cloud.pubsub/eventTypes/topic.publish`.
+   *
    * Event types match pattern `providers/*/eventTypes/*.*`.
    * The pattern contains:
+   *
    * 1. namespace: For example, `cloud.storage` and
    *    `google.firebase.analytics`.
    * 2. resource type: The type of resource on which event occurs. For
@@ -115,8 +112,10 @@ public java.lang.String getEventType() {
    * Required. The type of event to observe. For example:
    * `providers/cloud.storage/eventTypes/object.change` and
    * `providers/cloud.pubsub/eventTypes/topic.publish`.
+   *
    * Event types match pattern `providers/*/eventTypes/*.*`.
    * The pattern contains:
+   *
    * 1. namespace: For example, `cloud.storage` and
    *    `google.firebase.analytics`.
    * 2. resource type: The type of resource on which event occurs. For
@@ -153,8 +152,10 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
    * 
    * Required. The resource(s) from which to observe events, for example,
    * `projects/_/buckets/myBucket`.
+   *
    * Not all syntactically correct values are accepted by all services. For
    * example:
+   *
    * 1. The authorization model must support it. Google Cloud Functions
    *    only allows EventTriggers to be deployed that observe resources in the
    *    same project as the `CloudFunction`.
@@ -162,9 +163,11 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
    *    `event_type`. For example, an `EventTrigger` that has an
    *    `event_type` of "google.pubsub.topic.publish" should have a resource
    *    that matches Google Cloud Pub/Sub topics.
+   *
    * Additionally, some services may support short names when creating an
    * `EventTrigger`. These are always returned in the normalized "long"
    * format.
+   *
    * See each *service's* documentation for supported formats.
    * 
* @@ -190,8 +193,10 @@ public java.lang.String getResource() { *
    * Required. The resource(s) from which to observe events, for example,
    * `projects/_/buckets/myBucket`.
+   *
    * Not all syntactically correct values are accepted by all services. For
    * example:
+   *
    * 1. The authorization model must support it. Google Cloud Functions
    *    only allows EventTriggers to be deployed that observe resources in the
    *    same project as the `CloudFunction`.
@@ -199,9 +204,11 @@ public java.lang.String getResource() {
    *    `event_type`. For example, an `EventTrigger` that has an
    *    `event_type` of "google.pubsub.topic.publish" should have a resource
    *    that matches Google Cloud Pub/Sub topics.
+   *
    * Additionally, some services may support short names when creating an
    * `EventTrigger`. These are always returned in the normalized "long"
    * format.
+   *
    * See each *service's* documentation for supported formats.
    * 
* @@ -231,6 +238,7 @@ public com.google.protobuf.ByteString getResourceBytes() { * *
    * The hostname of the service that should be observed.
+   *
    * If no string is provided, the default service implementing the API will
    * be used. For example, `storage.googleapis.com` is the default for all
    * event types in the `google.storage` namespace.
@@ -257,6 +265,7 @@ public java.lang.String getService() {
    *
    * 
    * The hostname of the service that should be observed.
+   *
    * If no string is provided, the default service implementing the API will
    * be used. For example, `storage.googleapis.com` is the default for all
    * event types in the `google.storage` namespace.
@@ -619,39 +628,6 @@ private void buildPartial0(com.google.cloud.functions.v1.EventTrigger result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.EventTrigger) {
@@ -759,8 +735,10 @@ public Builder mergeFrom(
      * Required. The type of event to observe. For example:
      * `providers/cloud.storage/eventTypes/object.change` and
      * `providers/cloud.pubsub/eventTypes/topic.publish`.
+     *
      * Event types match pattern `providers/*/eventTypes/*.*`.
      * The pattern contains:
+     *
      * 1. namespace: For example, `cloud.storage` and
      *    `google.firebase.analytics`.
      * 2. resource type: The type of resource on which event occurs. For
@@ -792,8 +770,10 @@ public java.lang.String getEventType() {
      * Required. The type of event to observe. For example:
      * `providers/cloud.storage/eventTypes/object.change` and
      * `providers/cloud.pubsub/eventTypes/topic.publish`.
+     *
      * Event types match pattern `providers/*/eventTypes/*.*`.
      * The pattern contains:
+     *
      * 1. namespace: For example, `cloud.storage` and
      *    `google.firebase.analytics`.
      * 2. resource type: The type of resource on which event occurs. For
@@ -825,8 +805,10 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
      * Required. The type of event to observe. For example:
      * `providers/cloud.storage/eventTypes/object.change` and
      * `providers/cloud.pubsub/eventTypes/topic.publish`.
+     *
      * Event types match pattern `providers/*/eventTypes/*.*`.
      * The pattern contains:
+     *
      * 1. namespace: For example, `cloud.storage` and
      *    `google.firebase.analytics`.
      * 2. resource type: The type of resource on which event occurs. For
@@ -857,8 +839,10 @@ public Builder setEventType(java.lang.String value) {
      * Required. The type of event to observe. For example:
      * `providers/cloud.storage/eventTypes/object.change` and
      * `providers/cloud.pubsub/eventTypes/topic.publish`.
+     *
      * Event types match pattern `providers/*/eventTypes/*.*`.
      * The pattern contains:
+     *
      * 1. namespace: For example, `cloud.storage` and
      *    `google.firebase.analytics`.
      * 2. resource type: The type of resource on which event occurs. For
@@ -885,8 +869,10 @@ public Builder clearEventType() {
      * Required. The type of event to observe. For example:
      * `providers/cloud.storage/eventTypes/object.change` and
      * `providers/cloud.pubsub/eventTypes/topic.publish`.
+     *
      * Event types match pattern `providers/*/eventTypes/*.*`.
      * The pattern contains:
+     *
      * 1. namespace: For example, `cloud.storage` and
      *    `google.firebase.analytics`.
      * 2. resource type: The type of resource on which event occurs. For
@@ -919,8 +905,10 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) {
      * 
      * Required. The resource(s) from which to observe events, for example,
      * `projects/_/buckets/myBucket`.
+     *
      * Not all syntactically correct values are accepted by all services. For
      * example:
+     *
      * 1. The authorization model must support it. Google Cloud Functions
      *    only allows EventTriggers to be deployed that observe resources in the
      *    same project as the `CloudFunction`.
@@ -928,9 +916,11 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) {
      *    `event_type`. For example, an `EventTrigger` that has an
      *    `event_type` of "google.pubsub.topic.publish" should have a resource
      *    that matches Google Cloud Pub/Sub topics.
+     *
      * Additionally, some services may support short names when creating an
      * `EventTrigger`. These are always returned in the normalized "long"
      * format.
+     *
      * See each *service's* documentation for supported formats.
      * 
* @@ -955,8 +945,10 @@ public java.lang.String getResource() { *
      * Required. The resource(s) from which to observe events, for example,
      * `projects/_/buckets/myBucket`.
+     *
      * Not all syntactically correct values are accepted by all services. For
      * example:
+     *
      * 1. The authorization model must support it. Google Cloud Functions
      *    only allows EventTriggers to be deployed that observe resources in the
      *    same project as the `CloudFunction`.
@@ -964,9 +956,11 @@ public java.lang.String getResource() {
      *    `event_type`. For example, an `EventTrigger` that has an
      *    `event_type` of "google.pubsub.topic.publish" should have a resource
      *    that matches Google Cloud Pub/Sub topics.
+     *
      * Additionally, some services may support short names when creating an
      * `EventTrigger`. These are always returned in the normalized "long"
      * format.
+     *
      * See each *service's* documentation for supported formats.
      * 
* @@ -991,8 +985,10 @@ public com.google.protobuf.ByteString getResourceBytes() { *
      * Required. The resource(s) from which to observe events, for example,
      * `projects/_/buckets/myBucket`.
+     *
      * Not all syntactically correct values are accepted by all services. For
      * example:
+     *
      * 1. The authorization model must support it. Google Cloud Functions
      *    only allows EventTriggers to be deployed that observe resources in the
      *    same project as the `CloudFunction`.
@@ -1000,9 +996,11 @@ public com.google.protobuf.ByteString getResourceBytes() {
      *    `event_type`. For example, an `EventTrigger` that has an
      *    `event_type` of "google.pubsub.topic.publish" should have a resource
      *    that matches Google Cloud Pub/Sub topics.
+     *
      * Additionally, some services may support short names when creating an
      * `EventTrigger`. These are always returned in the normalized "long"
      * format.
+     *
      * See each *service's* documentation for supported formats.
      * 
* @@ -1026,8 +1024,10 @@ public Builder setResource(java.lang.String value) { *
      * Required. The resource(s) from which to observe events, for example,
      * `projects/_/buckets/myBucket`.
+     *
      * Not all syntactically correct values are accepted by all services. For
      * example:
+     *
      * 1. The authorization model must support it. Google Cloud Functions
      *    only allows EventTriggers to be deployed that observe resources in the
      *    same project as the `CloudFunction`.
@@ -1035,9 +1035,11 @@ public Builder setResource(java.lang.String value) {
      *    `event_type`. For example, an `EventTrigger` that has an
      *    `event_type` of "google.pubsub.topic.publish" should have a resource
      *    that matches Google Cloud Pub/Sub topics.
+     *
      * Additionally, some services may support short names when creating an
      * `EventTrigger`. These are always returned in the normalized "long"
      * format.
+     *
      * See each *service's* documentation for supported formats.
      * 
* @@ -1057,8 +1059,10 @@ public Builder clearResource() { *
      * Required. The resource(s) from which to observe events, for example,
      * `projects/_/buckets/myBucket`.
+     *
      * Not all syntactically correct values are accepted by all services. For
      * example:
+     *
      * 1. The authorization model must support it. Google Cloud Functions
      *    only allows EventTriggers to be deployed that observe resources in the
      *    same project as the `CloudFunction`.
@@ -1066,9 +1070,11 @@ public Builder clearResource() {
      *    `event_type`. For example, an `EventTrigger` that has an
      *    `event_type` of "google.pubsub.topic.publish" should have a resource
      *    that matches Google Cloud Pub/Sub topics.
+     *
      * Additionally, some services may support short names when creating an
      * `EventTrigger`. These are always returned in the normalized "long"
      * format.
+     *
      * See each *service's* documentation for supported formats.
      * 
* @@ -1094,6 +1100,7 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { * *
      * The hostname of the service that should be observed.
+     *
      * If no string is provided, the default service implementing the API will
      * be used. For example, `storage.googleapis.com` is the default for all
      * event types in the `google.storage` namespace.
@@ -1119,6 +1126,7 @@ public java.lang.String getService() {
      *
      * 
      * The hostname of the service that should be observed.
+     *
      * If no string is provided, the default service implementing the API will
      * be used. For example, `storage.googleapis.com` is the default for all
      * event types in the `google.storage` namespace.
@@ -1144,6 +1152,7 @@ public com.google.protobuf.ByteString getServiceBytes() {
      *
      * 
      * The hostname of the service that should be observed.
+     *
      * If no string is provided, the default service implementing the API will
      * be used. For example, `storage.googleapis.com` is the default for all
      * event types in the `google.storage` namespace.
@@ -1168,6 +1177,7 @@ public Builder setService(java.lang.String value) {
      *
      * 
      * The hostname of the service that should be observed.
+     *
      * If no string is provided, the default service implementing the API will
      * be used. For example, `storage.googleapis.com` is the default for all
      * event types in the `google.storage` namespace.
@@ -1188,6 +1198,7 @@ public Builder clearService() {
      *
      * 
      * The hostname of the service that should be observed.
+     *
      * If no string is provided, the default service implementing the API will
      * be used. For example, `storage.googleapis.com` is the default for all
      * event types in the `google.storage` namespace.
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java
index 90b0b1312ffd..8f8371d154bc 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/EventTriggerOrBuilder.java
@@ -30,8 +30,10 @@ public interface EventTriggerOrBuilder
    * Required. The type of event to observe. For example:
    * `providers/cloud.storage/eventTypes/object.change` and
    * `providers/cloud.pubsub/eventTypes/topic.publish`.
+   *
    * Event types match pattern `providers/*/eventTypes/*.*`.
    * The pattern contains:
+   *
    * 1. namespace: For example, `cloud.storage` and
    *    `google.firebase.analytics`.
    * 2. resource type: The type of resource on which event occurs. For
@@ -53,8 +55,10 @@ public interface EventTriggerOrBuilder
    * Required. The type of event to observe. For example:
    * `providers/cloud.storage/eventTypes/object.change` and
    * `providers/cloud.pubsub/eventTypes/topic.publish`.
+   *
    * Event types match pattern `providers/*/eventTypes/*.*`.
    * The pattern contains:
+   *
    * 1. namespace: For example, `cloud.storage` and
    *    `google.firebase.analytics`.
    * 2. resource type: The type of resource on which event occurs. For
@@ -76,8 +80,10 @@ public interface EventTriggerOrBuilder
    * 
    * Required. The resource(s) from which to observe events, for example,
    * `projects/_/buckets/myBucket`.
+   *
    * Not all syntactically correct values are accepted by all services. For
    * example:
+   *
    * 1. The authorization model must support it. Google Cloud Functions
    *    only allows EventTriggers to be deployed that observe resources in the
    *    same project as the `CloudFunction`.
@@ -85,9 +91,11 @@ public interface EventTriggerOrBuilder
    *    `event_type`. For example, an `EventTrigger` that has an
    *    `event_type` of "google.pubsub.topic.publish" should have a resource
    *    that matches Google Cloud Pub/Sub topics.
+   *
    * Additionally, some services may support short names when creating an
    * `EventTrigger`. These are always returned in the normalized "long"
    * format.
+   *
    * See each *service's* documentation for supported formats.
    * 
* @@ -102,8 +110,10 @@ public interface EventTriggerOrBuilder *
    * Required. The resource(s) from which to observe events, for example,
    * `projects/_/buckets/myBucket`.
+   *
    * Not all syntactically correct values are accepted by all services. For
    * example:
+   *
    * 1. The authorization model must support it. Google Cloud Functions
    *    only allows EventTriggers to be deployed that observe resources in the
    *    same project as the `CloudFunction`.
@@ -111,9 +121,11 @@ public interface EventTriggerOrBuilder
    *    `event_type`. For example, an `EventTrigger` that has an
    *    `event_type` of "google.pubsub.topic.publish" should have a resource
    *    that matches Google Cloud Pub/Sub topics.
+   *
    * Additionally, some services may support short names when creating an
    * `EventTrigger`. These are always returned in the normalized "long"
    * format.
+   *
    * See each *service's* documentation for supported formats.
    * 
* @@ -128,6 +140,7 @@ public interface EventTriggerOrBuilder * *
    * The hostname of the service that should be observed.
+   *
    * If no string is provided, the default service implementing the API will
    * be used. For example, `storage.googleapis.com` is the default for all
    * event types in the `google.storage` namespace.
@@ -143,6 +156,7 @@ public interface EventTriggerOrBuilder
    *
    * 
    * The hostname of the service that should be observed.
+   *
    * If no string is provided, the default service implementing the API will
    * be used. For example, `storage.googleapis.com` is the default for all
    * event types in the `google.storage` namespace.
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java
index 7a50a3017c48..3d30fdc82ed7 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicy.java
@@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FailurePolicy();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_FailurePolicy_descriptor;
@@ -101,11 +96,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Retry();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.cloud.functions.v1.FunctionsProto
           .internal_static_google_cloud_functions_v1_FailurePolicy_Retry_descriptor;
@@ -346,41 +336,6 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry buildPartial() {
         return result;
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.functions.v1.FailurePolicy.Retry) {
@@ -502,6 +457,8 @@ public com.google.cloud.functions.v1.FailurePolicy.Retry getDefaultInstanceForTy
   }
 
   private int actionCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object action_;
 
   public enum ActionCase
@@ -862,39 +819,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v1.FailurePolicy resu
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.FailurePolicy) {
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java
index 283b645151cb..ebd8ff37e5aa 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FailurePolicyOrBuilder.java
@@ -58,5 +58,5 @@ public interface FailurePolicyOrBuilder
    */
   com.google.cloud.functions.v1.FailurePolicy.RetryOrBuilder getRetryOrBuilder();
 
-  public com.google.cloud.functions.v1.FailurePolicy.ActionCase getActionCase();
+  com.google.cloud.functions.v1.FailurePolicy.ActionCase getActionCase();
 }
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java
index d9d4ac6ac466..1d47da5193c5 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/FunctionsProto.java
@@ -143,7 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + ".proto\032\036google/protobuf/duration.proto\032\033"
           + "google/protobuf/empty.proto\032 google/prot"
           + "obuf/field_mask.proto\032\037google/protobuf/t"
-          + "imestamp.proto\"\347\021\n\rCloudFunction\022\014\n\004name"
+          + "imestamp.proto\"\355\021\n\rCloudFunction\022\014\n\004name"
           + "\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\034\n\022source_ar"
           + "chive_url\030\003 \001(\tH\000\022H\n\021source_repository\030\004"
           + " \001(\0132+.google.cloud.functions.v1.SourceR"
@@ -151,173 +151,173 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "\022@\n\rhttps_trigger\030\005 \001(\0132\'.google.cloud.f"
           + "unctions.v1.HttpsTriggerH\001\022@\n\revent_trig"
           + "ger\030\006 \001(\0132\'.google.cloud.functions.v1.Ev"
-          + "entTriggerH\001\022C\n\006status\030\007 \001(\0162..google.cl"
-          + "oud.functions.v1.CloudFunctionStatusB\003\340A"
-          + "\003\022\023\n\013entry_point\030\010 \001(\t\022\017\n\007runtime\030\023 \001(\t\022"
-          + "*\n\007timeout\030\t \001(\0132\031.google.protobuf.Durat"
-          + "ion\022\033\n\023available_memory_mb\030\n \001(\005\022\035\n\025serv"
-          + "ice_account_email\030\013 \001(\t\0224\n\013update_time\030\014"
-          + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n"
-          + "\nversion_id\030\016 \001(\003B\003\340A\003\022D\n\006labels\030\017 \003(\01324"
-          + ".google.cloud.functions.v1.CloudFunction"
-          + ".LabelsEntry\022a\n\025environment_variables\030\021 "
-          + "\003(\0132B.google.cloud.functions.v1.CloudFun"
-          + "ction.EnvironmentVariablesEntry\022l\n\033build"
-          + "_environment_variables\030\034 \003(\0132G.google.cl"
-          + "oud.functions.v1.CloudFunction.BuildEnvi"
-          + "ronmentVariablesEntry\022\017\n\007network\030\022 \001(\t\022\025"
-          + "\n\rmax_instances\030\024 \001(\005\022\025\n\rmin_instances\030 "
-          + " \001(\005\022\025\n\rvpc_connector\030\026 \001(\t\022j\n\035vpc_conne"
-          + "ctor_egress_settings\030\027 \001(\0162C.google.clou"
-          + "d.functions.v1.CloudFunction.VpcConnecto"
-          + "rEgressSettings\022R\n\020ingress_settings\030\030 \001("
-          + "\01628.google.cloud.functions.v1.CloudFunct"
-          + "ion.IngressSettings\022<\n\014kms_key_name\030\031 \001("
-          + "\tB&\372A#\n!cloudkms.googleapis.com/CryptoKe"
-          + "y\022\031\n\021build_worker_pool\030\032 \001(\t\022\025\n\010build_id"
-          + "\030\033 \001(\tB\003\340A\003\022\027\n\nbuild_name\030! \001(\tB\003\340A\003\022M\n\034"
-          + "secret_environment_variables\030\035 \003(\0132\'.goo"
-          + "gle.cloud.functions.v1.SecretEnvVar\022?\n\016s"
-          + "ecret_volumes\030\036 \003(\0132\'.google.cloud.funct"
-          + "ions.v1.SecretVolume\022\031\n\014source_token\030\037 \001"
-          + "(\tB\003\340A\004\022J\n\021docker_repository\030\" \001(\tB/\372A,\n"
-          + "*artifactregistry.googleapis.com/Reposit"
-          + "ory\022P\n\017docker_registry\030# \001(\01627.google.cl"
-          + "oud.functions.v1.CloudFunction.DockerReg"
-          + "istry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
-          + "ue\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariablesEntr"
-          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032@\n\036Bui"
-          + "ldEnvironmentVariablesEntry\022\013\n\003key\030\001 \001(\t"
-          + "\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnectorEgres"
-          + "sSettings\022-\n)VPC_CONNECTOR_EGRESS_SETTIN"
-          + "GS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGES_ONLY\020"
-          + "\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSettings\022 \n"
-          + "\034INGRESS_SETTINGS_UNSPECIFIED\020\000\022\r\n\tALLOW"
-          + "_ALL\020\001\022\027\n\023ALLOW_INTERNAL_ONLY\020\002\022\033\n\027ALLOW"
-          + "_INTERNAL_AND_GCLB\020\003\"`\n\016DockerRegistry\022\037"
-          + "\n\033DOCKER_REGISTRY_UNSPECIFIED\020\000\022\026\n\022CONTA"
-          + "INER_REGISTRY\020\001\022\025\n\021ARTIFACT_REGISTRY\020\002:n"
-          + "\352Ak\n+cloudfunctions.googleapis.com/Cloud"
-          + "Function\022\n\032GenerateDownload"
-          + "UrlRequest\022\014\n\004name\030\001 \001(\t\022\022\n\nversion_id\030\002"
-          + " \001(\004\"3\n\033GenerateDownloadUrlResponse\022\024\n\014d"
-          + "ownload_url\030\001 \001(\t*\222\001\n\023CloudFunctionStatu"
-          + "s\022%\n!CLOUD_FUNCTION_STATUS_UNSPECIFIED\020\000"
-          + "\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002\022\026\n\022DEPLOY_IN_P"
-          + "ROGRESS\020\003\022\026\n\022DELETE_IN_PROGRESS\020\004\022\013\n\007UNK"
-          + "NOWN\020\0052\227\021\n\025CloudFunctionsService\022\251\001\n\rLis"
-          + "tFunctions\022/.google.cloud.functions.v1.L"
-          + "istFunctionsRequest\0320.google.cloud.funct"
-          + "ions.v1.ListFunctionsResponse\"5\202\323\344\223\002/\022-/"
-          + "v1/{parent=projects/*/locations/*}/funct"
-          + "ions\022\244\001\n\013GetFunction\022-.google.cloud.func"
-          + "tions.v1.GetFunctionRequest\032(.google.clo"
-          + "ud.functions.v1.CloudFunction\"<\202\323\344\223\002/\022-/"
-          + "v1/{name=projects/*/locations/*/function"
-          + "s/*}\332A\004name\022\337\001\n\016CreateFunction\0220.google."
-          + "cloud.functions.v1.CreateFunctionRequest"
-          + "\032\035.google.longrunning.Operation\"|\202\323\344\223\002;\""
-          + "//v1/{location=projects/*/locations/*}/f"
-          + "unctions:\010function\332A\021location,function\312A"
-          + "$\n\rCloudFunction\022\023OperationMetadataV1\022\335\001"
-          + "\n\016UpdateFunction\0220.google.cloud.function"
-          + "s.v1.UpdateFunctionRequest\032\035.google.long"
-          + "running.Operation\"z\202\323\344\223\002B26/v1/{function"
-          + ".name=projects/*/locations/*/functions/*"
-          + "}:\010function\332A\010function\312A$\n\rCloudFunction"
-          + "\022\023OperationMetadataV1\022\316\001\n\016DeleteFunction"
-          + "\0220.google.cloud.functions.v1.DeleteFunct"
-          + "ionRequest\032\035.google.longrunning.Operatio"
-          + "n\"k\202\323\344\223\002/*-/v1/{name=projects/*/location"
-          + "s/*/functions/*}\332A\004name\312A,\n\025google.proto"
-          + "buf.Empty\022\023OperationMetadataV1\022\272\001\n\014CallF"
-          + "unction\022..google.cloud.functions.v1.Call"
-          + "FunctionRequest\032/.google.cloud.functions"
-          + ".v1.CallFunctionResponse\"I\202\323\344\223\0027\"2/v1/{n"
-          + "ame=projects/*/locations/*/functions/*}:"
-          + "call:\001*\332A\tname,data\022\312\001\n\021GenerateUploadUr"
-          + "l\0223.google.cloud.functions.v1.GenerateUp"
-          + "loadUrlRequest\0324.google.cloud.functions."
-          + "v1.GenerateUploadUrlResponse\"J\202\323\344\223\002D\"?/v"
-          + "1/{parent=projects/*/locations/*}/functi"
-          + "ons:generateUploadUrl:\001*\022\322\001\n\023GenerateDow"
-          + "nloadUrl\0225.google.cloud.functions.v1.Gen"
-          + "erateDownloadUrlRequest\0326.google.cloud.f"
-          + "unctions.v1.GenerateDownloadUrlResponse\""
-          + "L\202\323\344\223\002F\"A/v1/{name=projects/*/locations/"
-          + "*/functions/*}:generateDownloadUrl:\001*\022\224\001"
-          + "\n\014SetIamPolicy\022\".google.iam.v1.SetIamPol"
-          + "icyRequest\032\025.google.iam.v1.Policy\"I\202\323\344\223\002"
-          + "C\">/v1/{resource=projects/*/locations/*/"
-          + "functions/*}:setIamPolicy:\001*\022\221\001\n\014GetIamP"
-          + "olicy\022\".google.iam.v1.GetIamPolicyReques"
-          + "t\032\025.google.iam.v1.Policy\"F\202\323\344\223\002@\022>/v1/{r"
-          + "esource=projects/*/locations/*/functions"
-          + "/*}:getIamPolicy\022\272\001\n\022TestIamPermissions\022"
-          + "(.google.iam.v1.TestIamPermissionsReques"
-          + "t\032).google.iam.v1.TestIamPermissionsResp"
-          + "onse\"O\202\323\344\223\002I\"D/v1/{resource=projects/*/l"
-          + "ocations/*/functions/*}:testIamPermissio"
-          + "ns:\001*\032Q\312A\035cloudfunctions.googleapis.com\322"
-          + "A.https://www.googleapis.com/auth/cloud-"
-          + "platformB\341\002\n\035com.google.cloud.functions."
-          + "v1B\016FunctionsProtoP\001Z;cloud.google.com/g"
-          + "o/functions/apiv1/functionspb;functionsp"
-          + "b\242\002\003GCF\352Ao\n*artifactregistry.googleapis."
-          + "com/Repository\022Aprojects/{project}/locat"
-          + "ions/{location}/repositories/{repository"
-          + "}\352Ax\n!cloudkms.googleapis.com/CryptoKey\022"
-          + "Sprojects/{project}/locations/{location}"
-          + "/keyRings/{key_ring}/cryptoKeys/{crypto_"
-          + "key}b\006proto3"
+          + "entTriggerH\001\022D\n\006status\030\007 \001(\0162..google.cl"
+          + "oud.functions.v1.CloudFunctionStatusB\004\342A"
+          + "\001\003\022\023\n\013entry_point\030\010 \001(\t\022\017\n\007runtime\030\023 \001(\t"
+          + "\022*\n\007timeout\030\t \001(\0132\031.google.protobuf.Dura"
+          + "tion\022\033\n\023available_memory_mb\030\n \001(\005\022\035\n\025ser"
+          + "vice_account_email\030\013 \001(\t\0225\n\013update_time\030"
+          + "\014 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022"
+          + "\030\n\nversion_id\030\016 \001(\003B\004\342A\001\003\022D\n\006labels\030\017 \003("
+          + "\01324.google.cloud.functions.v1.CloudFunct"
+          + "ion.LabelsEntry\022a\n\025environment_variables"
+          + "\030\021 \003(\0132B.google.cloud.functions.v1.Cloud"
+          + "Function.EnvironmentVariablesEntry\022l\n\033bu"
+          + "ild_environment_variables\030\034 \003(\0132G.google"
+          + ".cloud.functions.v1.CloudFunction.BuildE"
+          + "nvironmentVariablesEntry\022\017\n\007network\030\022 \001("
+          + "\t\022\025\n\rmax_instances\030\024 \001(\005\022\025\n\rmin_instance"
+          + "s\030  \001(\005\022\025\n\rvpc_connector\030\026 \001(\t\022j\n\035vpc_co"
+          + "nnector_egress_settings\030\027 \001(\0162C.google.c"
+          + "loud.functions.v1.CloudFunction.VpcConne"
+          + "ctorEgressSettings\022R\n\020ingress_settings\030\030"
+          + " \001(\01628.google.cloud.functions.v1.CloudFu"
+          + "nction.IngressSettings\022<\n\014kms_key_name\030\031"
+          + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt"
+          + "oKey\022\031\n\021build_worker_pool\030\032 \001(\t\022\026\n\010build"
+          + "_id\030\033 \001(\tB\004\342A\001\003\022\030\n\nbuild_name\030! \001(\tB\004\342A\001"
+          + "\003\022M\n\034secret_environment_variables\030\035 \003(\0132"
+          + "\'.google.cloud.functions.v1.SecretEnvVar"
+          + "\022?\n\016secret_volumes\030\036 \003(\0132\'.google.cloud."
+          + "functions.v1.SecretVolume\022\032\n\014source_toke"
+          + "n\030\037 \001(\tB\004\342A\001\004\022J\n\021docker_repository\030\" \001(\t"
+          + "B/\372A,\n*artifactregistry.googleapis.com/R"
+          + "epository\022P\n\017docker_registry\030# \001(\01627.goo"
+          + "gle.cloud.functions.v1.CloudFunction.Doc"
+          + "kerRegistry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022"
+          + "\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031EnvironmentVariabl"
+          + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032"
+          + "@\n\036BuildEnvironmentVariablesEntry\022\013\n\003key"
+          + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnecto"
+          + "rEgressSettings\022-\n)VPC_CONNECTOR_EGRESS_"
+          + "SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGES"
+          + "_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSetti"
+          + "ngs\022 \n\034INGRESS_SETTINGS_UNSPECIFIED\020\000\022\r\n"
+          + "\tALLOW_ALL\020\001\022\027\n\023ALLOW_INTERNAL_ONLY\020\002\022\033\n"
+          + "\027ALLOW_INTERNAL_AND_GCLB\020\003\"`\n\016DockerRegi"
+          + "stry\022\037\n\033DOCKER_REGISTRY_UNSPECIFIED\020\000\022\026\n"
+          + "\022CONTAINER_REGISTRY\020\001\022\025\n\021ARTIFACT_REGIST"
+          + "RY\020\002:n\352Ak\n+cloudfunctions.googleapis.com"
+          + "/CloudFunction\022\n\032G"
+          + "enerateDownloadUrlRequest\022\014\n\004name\030\001 \001(\t\022"
+          + "\022\n\nversion_id\030\002 \001(\004\"3\n\033GenerateDownloadU"
+          + "rlResponse\022\024\n\014download_url\030\001 \001(\t*\222\001\n\023Clo"
+          + "udFunctionStatus\022%\n!CLOUD_FUNCTION_STATU"
+          + "S_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007OFFLINE\020\002"
+          + "\022\026\n\022DEPLOY_IN_PROGRESS\020\003\022\026\n\022DELETE_IN_PR"
+          + "OGRESS\020\004\022\013\n\007UNKNOWN\020\0052\227\021\n\025CloudFunctions"
+          + "Service\022\251\001\n\rListFunctions\022/.google.cloud"
+          + ".functions.v1.ListFunctionsRequest\0320.goo"
+          + "gle.cloud.functions.v1.ListFunctionsResp"
+          + "onse\"5\202\323\344\223\002/\022-/v1/{parent=projects/*/loc"
+          + "ations/*}/functions\022\244\001\n\013GetFunction\022-.go"
+          + "ogle.cloud.functions.v1.GetFunctionReque"
+          + "st\032(.google.cloud.functions.v1.CloudFunc"
+          + "tion\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/"
+          + "*/locations/*/functions/*}\022\337\001\n\016CreateFun"
+          + "ction\0220.google.cloud.functions.v1.Create"
+          + "FunctionRequest\032\035.google.longrunning.Ope"
+          + "ration\"|\312A$\n\rCloudFunction\022\023OperationMet"
+          + "adataV1\332A\021location,function\202\323\344\223\002;\"//v1/{"
+          + "location=projects/*/locations/*}/functio"
+          + "ns:\010function\022\335\001\n\016UpdateFunction\0220.google"
+          + ".cloud.functions.v1.UpdateFunctionReques"
+          + "t\032\035.google.longrunning.Operation\"z\312A$\n\rC"
+          + "loudFunction\022\023OperationMetadataV1\332A\010func"
+          + "tion\202\323\344\223\002B26/v1/{function.name=projects/"
+          + "*/locations/*/functions/*}:\010function\022\316\001\n"
+          + "\016DeleteFunction\0220.google.cloud.functions"
+          + ".v1.DeleteFunctionRequest\032\035.google.longr"
+          + "unning.Operation\"k\312A,\n\025google.protobuf.E"
+          + "mpty\022\023OperationMetadataV1\332A\004name\202\323\344\223\002/*-"
+          + "/v1/{name=projects/*/locations/*/functio"
+          + "ns/*}\022\272\001\n\014CallFunction\022..google.cloud.fu"
+          + "nctions.v1.CallFunctionRequest\032/.google."
+          + "cloud.functions.v1.CallFunctionResponse\""
+          + "I\332A\tname,data\202\323\344\223\0027\"2/v1/{name=projects/"
+          + "*/locations/*/functions/*}:call:\001*\022\312\001\n\021G"
+          + "enerateUploadUrl\0223.google.cloud.function"
+          + "s.v1.GenerateUploadUrlRequest\0324.google.c"
+          + "loud.functions.v1.GenerateUploadUrlRespo"
+          + "nse\"J\202\323\344\223\002D\"?/v1/{parent=projects/*/loca"
+          + "tions/*}/functions:generateUploadUrl:\001*\022"
+          + "\322\001\n\023GenerateDownloadUrl\0225.google.cloud.f"
+          + "unctions.v1.GenerateDownloadUrlRequest\0326"
+          + ".google.cloud.functions.v1.GenerateDownl"
+          + "oadUrlResponse\"L\202\323\344\223\002F\"A/v1/{name=projec"
+          + "ts/*/locations/*/functions/*}:generateDo"
+          + "wnloadUrl:\001*\022\224\001\n\014SetIamPolicy\022\".google.i"
+          + "am.v1.SetIamPolicyRequest\032\025.google.iam.v"
+          + "1.Policy\"I\202\323\344\223\002C\">/v1/{resource=projects"
+          + "/*/locations/*/functions/*}:setIamPolicy"
+          + ":\001*\022\221\001\n\014GetIamPolicy\022\".google.iam.v1.Get"
+          + "IamPolicyRequest\032\025.google.iam.v1.Policy\""
+          + "F\202\323\344\223\002@\022>/v1/{resource=projects/*/locati"
+          + "ons/*/functions/*}:getIamPolicy\022\272\001\n\022Test"
+          + "IamPermissions\022(.google.iam.v1.TestIamPe"
+          + "rmissionsRequest\032).google.iam.v1.TestIam"
+          + "PermissionsResponse\"O\202\323\344\223\002I\"D/v1/{resour"
+          + "ce=projects/*/locations/*/functions/*}:t"
+          + "estIamPermissions:\001*\032Q\312A\035cloudfunctions."
+          + "googleapis.com\322A.https://www.googleapis."
+          + "com/auth/cloud-platformB\341\002\n\035com.google.c"
+          + "loud.functions.v1B\016FunctionsProtoP\001Z;clo"
+          + "ud.google.com/go/functions/apiv1/functio"
+          + "nspb;functionspb\242\002\003GCF\352Ao\n*artifactregis"
+          + "try.googleapis.com/Repository\022Aprojects/"
+          + "{project}/locations/{location}/repositor"
+          + "ies/{repository}\352Ax\n!cloudkms.googleapis"
+          + ".com/CryptoKey\022Sprojects/{project}/locat"
+          + "ions/{location}/keyRings/{key_ring}/cryp"
+          + "toKeys/{crypto_key}b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java
index c641425433eb..ab5fc34dc8ad 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateDownloadUrlRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_GenerateDownloadUrlRequest_descriptor;
@@ -393,39 +388,6 @@ private void buildPartial0(com.google.cloud.functions.v1.GenerateDownloadUrlRequ
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.GenerateDownloadUrlRequest) {
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java
index ed92b6e71ffd..10d0b8e52649 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateDownloadUrlResponse.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateDownloadUrlResponse();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_GenerateDownloadUrlResponse_descriptor;
@@ -361,39 +356,6 @@ private void buildPartial0(com.google.cloud.functions.v1.GenerateDownloadUrlResp
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.GenerateDownloadUrlResponse) {
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java
index 394cae4730f9..992c8d9d8afc 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateUploadUrlRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_GenerateUploadUrlRequest_descriptor;
@@ -135,8 +130,10 @@ public com.google.protobuf.ByteString getParentBytes() {
    * gets copied to a staging Cloud Storage bucket in an internal regional
    * project. The source code is then copied to a versioned directory in the
    * sources bucket in the consumer project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -172,8 +169,10 @@ public java.lang.String getKmsKeyName() {
    * gets copied to a staging Cloud Storage bucket in an internal regional
    * project. The source code is then copied to a versioned directory in the
    * sources bucket in the consumer project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -454,39 +453,6 @@ private void buildPartial0(com.google.cloud.functions.v1.GenerateUploadUrlReques
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.GenerateUploadUrlRequest) {
@@ -689,8 +655,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * gets copied to a staging Cloud Storage bucket in an internal regional
      * project. The source code is then copied to a versioned directory in the
      * sources bucket in the consumer project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -725,8 +693,10 @@ public java.lang.String getKmsKeyName() {
      * gets copied to a staging Cloud Storage bucket in an internal regional
      * project. The source code is then copied to a versioned directory in the
      * sources bucket in the consumer project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -761,8 +731,10 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * gets copied to a staging Cloud Storage bucket in an internal regional
      * project. The source code is then copied to a versioned directory in the
      * sources bucket in the consumer project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -796,8 +768,10 @@ public Builder setKmsKeyName(java.lang.String value) {
      * gets copied to a staging Cloud Storage bucket in an internal regional
      * project. The source code is then copied to a versioned directory in the
      * sources bucket in the consumer project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -827,8 +801,10 @@ public Builder clearKmsKeyName() {
      * gets copied to a staging Cloud Storage bucket in an internal regional
      * project. The source code is then copied to a versioned directory in the
      * sources bucket in the consumer project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java
index 3de6432b464a..9a5beb33f353 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlRequestOrBuilder.java
@@ -60,8 +60,10 @@ public interface GenerateUploadUrlRequestOrBuilder
    * gets copied to a staging Cloud Storage bucket in an internal regional
    * project. The source code is then copied to a versioned directory in the
    * sources bucket in the consumer project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -86,8 +88,10 @@ public interface GenerateUploadUrlRequestOrBuilder
    * gets copied to a staging Cloud Storage bucket in an internal regional
    * project. The source code is then copied to a versioned directory in the
    * sources bucket in the consumer project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java
index 685fd5705f61..607ade2a241a 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GenerateUploadUrlResponse.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateUploadUrlResponse();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_GenerateUploadUrlResponse_descriptor;
@@ -363,39 +358,6 @@ private void buildPartial0(com.google.cloud.functions.v1.GenerateUploadUrlRespon
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.GenerateUploadUrlResponse) {
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java
index 754110fc0a80..944e2e1721e3 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/GetFunctionRequest.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetFunctionRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_GetFunctionRequest_descriptor;
@@ -362,39 +357,6 @@ private void buildPartial0(com.google.cloud.functions.v1.GetFunctionRequest resu
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v1.GetFunctionRequest) {
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java
index 387e6beae60f..3b2d69655071 100644
--- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java
+++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/HttpsTrigger.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new HttpsTrigger();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v1.FunctionsProto
         .internal_static_google_cloud_functions_v1_HttpsTrigger_descriptor;
@@ -73,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * 
    * Available security-level settings.
+   *
    * This controls the methods to enforce security (HTTPS) on a URL.
+   *
    * If unspecified, SECURE_OPTIONAL is used.
    * 
* @@ -580,39 +577,6 @@ private void buildPartial0(com.google.cloud.functions.v1.HttpsTrigger result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.HttpsTrigger) { diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java index ff13a7af5dd9..19318c583d20 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_ListFunctionsRequest_descriptor; @@ -470,39 +465,6 @@ private void buildPartial0(com.google.cloud.functions.v1.ListFunctionsRequest re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.ListFunctionsRequest) { diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java index fcf1527149f4..5b4bbb36b484 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/ListFunctionsResponse.java @@ -40,7 +40,7 @@ private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_ListFunctionsResponse_descriptor; @@ -200,7 +195,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList unreachable_; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -497,8 +493,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -545,11 +540,6 @@ private void buildPartialRepeatedFields( } else { result.functions_ = functionsBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; } private void buildPartial0(com.google.cloud.functions.v1.ListFunctionsResponse result) { @@ -557,39 +547,10 @@ private void buildPartial0(com.google.cloud.functions.v1.ListFunctionsResponse r if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } } @java.lang.Override @@ -640,7 +601,7 @@ public Builder mergeFrom(com.google.cloud.functions.v1.ListFunctionsResponse oth if (!other.unreachable_.isEmpty()) { if (unreachable_.isEmpty()) { unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureUnreachableIsMutable(); unreachable_.addAll(other.unreachable_); @@ -1190,14 +1151,14 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** * @@ -1212,7 +1173,8 @@ private void ensureUnreachableIsMutable() { * @return A list containing the unreachable. */ public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); + unreachable_.makeImmutable(); + return unreachable_; } /** * @@ -1281,6 +1243,7 @@ public Builder setUnreachable(int index, java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1303,6 +1266,7 @@ public Builder addUnreachable(java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1322,6 +1286,7 @@ public Builder addUnreachable(java.lang.String value) { public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1338,8 +1303,9 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } @@ -1363,6 +1329,7 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java index 6af129f6a5f1..ff820c0d4c77 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/OperationMetadataV1.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadataV1(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsOperationsProto .internal_static_google_cloud_functions_v1_OperationMetadataV1_descriptor; @@ -780,39 +775,6 @@ private void buildPartial0(com.google.cloud.functions.v1.OperationMetadataV1 res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.OperationMetadataV1) { diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java index 32c07c1c1a72..fc6e462aba05 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretEnvVar.java @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretEnvVar(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_SecretEnvVar_descriptor; @@ -567,39 +562,6 @@ private void buildPartial0(com.google.cloud.functions.v1.SecretEnvVar result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.SecretEnvVar) { diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java index d7fada1ae34f..d219ace7a9c0 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolume.java @@ -54,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretVolume(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_SecretVolume_descriptor; @@ -169,11 +164,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecretVersion(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_SecretVolume_SecretVersion_descriptor; @@ -557,41 +547,6 @@ private void buildPartial0(com.google.cloud.functions.v1.SecretVolume.SecretVers } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.SecretVolume.SecretVersion) { @@ -985,6 +940,7 @@ public com.google.cloud.functions.v1.SecretVolume.SecretVersion getDefaultInstan * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
@@ -1013,6 +969,7 @@ public java.lang.String getMountPath() { * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
@@ -1526,39 +1483,6 @@ private void buildPartial0(com.google.cloud.functions.v1.SecretVolume result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.SecretVolume) { @@ -1699,6 +1623,7 @@ public Builder mergeFrom( * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
@@ -1726,6 +1651,7 @@ public java.lang.String getMountPath() { * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
@@ -1753,6 +1679,7 @@ public com.google.protobuf.ByteString getMountPathBytes() { * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
@@ -1779,6 +1706,7 @@ public Builder setMountPath(java.lang.String value) { * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
@@ -1801,6 +1729,7 @@ public Builder clearMountPath() { * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java index e06eeb35c594..48cd31627123 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SecretVolumeOrBuilder.java @@ -31,6 +31,7 @@ public interface SecretVolumeOrBuilder * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
@@ -48,6 +49,7 @@ public interface SecretVolumeOrBuilder * setting the mount_path as `/etc/secrets` mounts the secret value files * under the `/etc/secrets` directory. This directory is also completely * shadowed and unavailable to mount any other secrets. + * * Recommended mount paths: /etc/secrets * Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log *
diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java index efb859723e0c..58b90e703cd3 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepository.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceRepository(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_SourceRepository_descriptor; @@ -80,6 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -87,6 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* @@ -113,6 +110,7 @@ public java.lang.String getUrl() { * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -120,6 +118,7 @@ public java.lang.String getUrl() { * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* @@ -449,39 +448,6 @@ private void buildPartial0(com.google.cloud.functions.v1.SourceRepository result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.SourceRepository) { @@ -569,6 +535,7 @@ public Builder mergeFrom( * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -576,6 +543,7 @@ public Builder mergeFrom( * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* @@ -601,6 +569,7 @@ public java.lang.String getUrl() { * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -608,6 +577,7 @@ public java.lang.String getUrl() { * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* @@ -633,6 +603,7 @@ public com.google.protobuf.ByteString getUrlBytes() { * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -640,6 +611,7 @@ public com.google.protobuf.ByteString getUrlBytes() { * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* @@ -664,6 +636,7 @@ public Builder setUrl(java.lang.String value) { * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -671,6 +644,7 @@ public Builder setUrl(java.lang.String value) { * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* @@ -691,6 +665,7 @@ public Builder clearUrl() { * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -698,6 +673,7 @@ public Builder clearUrl() { * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java index 6e13038f32e7..11b67f51ccd0 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/SourceRepositoryOrBuilder.java @@ -30,6 +30,7 @@ public interface SourceRepositoryOrBuilder * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -37,6 +38,7 @@ public interface SourceRepositoryOrBuilder * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* @@ -52,6 +54,7 @@ public interface SourceRepositoryOrBuilder * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following * formats: + * * To refer to a specific commit: * `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): @@ -59,6 +62,7 @@ public interface SourceRepositoryOrBuilder * In particular, to refer to HEAD use `master` moveable alias. * To refer to a specific fixed alias (tag): * `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` + * * You can omit `paths/*` if you want to use the main directory. *
* diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java index 2a61656306bc..fc7a358d49bc 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/UpdateFunctionRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v1.FunctionsProto .internal_static_google_cloud_functions_v1_UpdateFunctionRequest_descriptor; @@ -438,39 +433,6 @@ private void buildPartial0(com.google.cloud.functions.v1.UpdateFunctionRequest r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v1.UpdateFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java index 83f7e3498953..e43a0493ba4e 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfig.java @@ -53,11 +53,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BuildConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_BuildConfig_descriptor; @@ -544,6 +539,7 @@ public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenan * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -577,6 +573,7 @@ public java.lang.String getWorkerPool() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -713,18 +710,17 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { * * *
-   * Optional. Docker Registry to use for this deployment. This configuration is
-   * only applicable to 1st Gen functions, 2nd Gen functions can only use
-   * Artifact Registry.
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
    * If `docker_repository` field is specified, this field will be automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
    * This field may be overridden by the backend for eligible deployments.
    * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @return The enum numeric value on the wire for dockerRegistry. */ @@ -736,18 +732,17 @@ public int getDockerRegistryValue() { * * *
-   * Optional. Docker Registry to use for this deployment. This configuration is
-   * only applicable to 1st Gen functions, 2nd Gen functions can only use
-   * Artifact Registry.
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
    * If `docker_repository` field is specified, this field will be automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
    * This field may be overridden by the backend for eligible deployments.
    * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @return The dockerRegistry. */ @@ -768,13 +763,15 @@ public com.google.cloud.functions.v2.BuildConfig.DockerRegistry getDockerRegistr * * *
-   * User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
@@ -800,13 +797,15 @@ public java.lang.String getDockerRepository() {
    *
    *
    * 
-   * User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
@@ -1230,39 +1229,6 @@ private void buildPartial0(com.google.cloud.functions.v2.BuildConfig result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2.BuildConfig) {
@@ -2193,6 +2159,7 @@ public com.google.cloud.functions.v2.SourceProvenanceOrBuilder getSourceProvenan
      * {project} and {region} are the project id and region respectively where the
      * worker pool is defined and {workerPool} is the short name of the worker
      * pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be
@@ -2225,6 +2192,7 @@ public java.lang.String getWorkerPool() {
      * {project} and {region} are the project id and region respectively where the
      * worker pool is defined and {workerPool} is the short name of the worker
      * pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be
@@ -2257,6 +2225,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() {
      * {project} and {region} are the project id and region respectively where the
      * worker pool is defined and {workerPool} is the short name of the worker
      * pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be
@@ -2288,6 +2257,7 @@ public Builder setWorkerPool(java.lang.String value) {
      * {project} and {region} are the project id and region respectively where the
      * worker pool is defined and {workerPool} is the short name of the worker
      * pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be
@@ -2315,6 +2285,7 @@ public Builder clearWorkerPool() {
      * {project} and {region} are the project id and region respectively where the
      * worker pool is defined and {workerPool} is the short name of the worker
      * pool.
+     *
      * If the project id is not the same as the function, then the Cloud
      * Functions Service Agent
      * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be
@@ -2513,18 +2484,17 @@ public Builder putAllEnvironmentVariables(
      *
      *
      * 
-     * Optional. Docker Registry to use for this deployment. This configuration is
-     * only applicable to 1st Gen functions, 2nd Gen functions can only use
-     * Artifact Registry.
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
      * If `docker_repository` field is specified, this field will be automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
      * This field may be overridden by the backend for eligible deployments.
      * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @return The enum numeric value on the wire for dockerRegistry. */ @@ -2536,18 +2506,17 @@ public int getDockerRegistryValue() { * * *
-     * Optional. Docker Registry to use for this deployment. This configuration is
-     * only applicable to 1st Gen functions, 2nd Gen functions can only use
-     * Artifact Registry.
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
      * If `docker_repository` field is specified, this field will be automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
      * This field may be overridden by the backend for eligible deployments.
      * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @param value The enum numeric value on the wire for dockerRegistry to set. * @return This builder for chaining. @@ -2562,18 +2531,17 @@ public Builder setDockerRegistryValue(int value) { * * *
-     * Optional. Docker Registry to use for this deployment. This configuration is
-     * only applicable to 1st Gen functions, 2nd Gen functions can only use
-     * Artifact Registry.
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
      * If `docker_repository` field is specified, this field will be automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
      * This field may be overridden by the backend for eligible deployments.
      * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @return The dockerRegistry. */ @@ -2589,18 +2557,17 @@ public com.google.cloud.functions.v2.BuildConfig.DockerRegistry getDockerRegistr * * *
-     * Optional. Docker Registry to use for this deployment. This configuration is
-     * only applicable to 1st Gen functions, 2nd Gen functions can only use
-     * Artifact Registry.
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
      * If `docker_repository` field is specified, this field will be automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
      * This field may be overridden by the backend for eligible deployments.
      * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @param value The dockerRegistry to set. * @return This builder for chaining. @@ -2619,18 +2586,17 @@ public Builder setDockerRegistry( * * *
-     * Optional. Docker Registry to use for this deployment. This configuration is
-     * only applicable to 1st Gen functions, 2nd Gen functions can only use
-     * Artifact Registry.
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
      * If `docker_repository` field is specified, this field will be automatically
      * set as `ARTIFACT_REGISTRY`.
      * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
      * This field may be overridden by the backend for eligible deployments.
      * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @return This builder for chaining. */ @@ -2646,13 +2612,15 @@ public Builder clearDockerRegistry() { * * *
-     * User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -2677,13 +2645,15 @@ public java.lang.String getDockerRepository() {
      *
      *
      * 
-     * User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -2708,13 +2678,15 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() {
      *
      *
      * 
-     * User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -2738,13 +2710,15 @@ public Builder setDockerRepository(java.lang.String value) {
      *
      *
      * 
-     * User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
@@ -2764,13 +2738,15 @@ public Builder clearDockerRepository() {
      *
      *
      * 
-     * User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java
index ba39ba0594fd..74217fbe0098 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/BuildConfigOrBuilder.java
@@ -208,6 +208,7 @@ public interface BuildConfigOrBuilder
    * {project} and {region} are the project id and region respectively where the
    * worker pool is defined and {workerPool} is the short name of the worker
    * pool.
+   *
    * If the project id is not the same as the function, then the Cloud
    * Functions Service Agent
    * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be
@@ -230,6 +231,7 @@ public interface BuildConfigOrBuilder
    * {project} and {region} are the project id and region respectively where the
    * worker pool is defined and {workerPool} is the short name of the worker
    * pool.
+   *
    * If the project id is not the same as the function, then the Cloud
    * Functions Service Agent
    * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be
@@ -305,18 +307,17 @@ java.lang.String getEnvironmentVariablesOrDefault(
    *
    *
    * 
-   * Optional. Docker Registry to use for this deployment. This configuration is
-   * only applicable to 1st Gen functions, 2nd Gen functions can only use
-   * Artifact Registry.
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
    * If `docker_repository` field is specified, this field will be automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
    * This field may be overridden by the backend for eligible deployments.
    * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @return The enum numeric value on the wire for dockerRegistry. */ @@ -325,18 +326,17 @@ java.lang.String getEnvironmentVariablesOrDefault( * * *
-   * Optional. Docker Registry to use for this deployment. This configuration is
-   * only applicable to 1st Gen functions, 2nd Gen functions can only use
-   * Artifact Registry.
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
    * If `docker_repository` field is specified, this field will be automatically
    * set as `ARTIFACT_REGISTRY`.
    * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
    * This field may be overridden by the backend for eligible deployments.
    * 
* - * - * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10; * * @return The dockerRegistry. */ @@ -346,13 +346,15 @@ java.lang.String getEnvironmentVariablesOrDefault( * * *
-   * User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
@@ -367,13 +369,15 @@ java.lang.String getEnvironmentVariablesOrDefault(
    *
    *
    * 
-   * User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java
index ba530f51f4ec..232699b54c48 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequest.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateFunctionRequest();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2.FunctionsProto
         .internal_static_google_cloud_functions_v2_CreateFunctionRequest_descriptor;
@@ -191,6 +186,7 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() {
    * 
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -217,6 +213,7 @@ public java.lang.String getFunctionId() { *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -513,39 +510,6 @@ private void buildPartial0(com.google.cloud.functions.v2.CreateFunctionRequest r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.CreateFunctionRequest) { @@ -964,6 +928,7 @@ public com.google.cloud.functions.v2.FunctionOrBuilder getFunctionOrBuilder() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -989,6 +954,7 @@ public java.lang.String getFunctionId() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1014,6 +980,7 @@ public com.google.protobuf.ByteString getFunctionIdBytes() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1038,6 +1005,7 @@ public Builder setFunctionId(java.lang.String value) { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1058,6 +1026,7 @@ public Builder clearFunctionId() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java index 676109858ea7..75a185853054 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CreateFunctionRequestOrBuilder.java @@ -101,6 +101,7 @@ public interface CreateFunctionRequestOrBuilder *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -116,6 +117,7 @@ public interface CreateFunctionRequestOrBuilder *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java index d6fad80691e4..23de1cc9badf 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/DeleteFunctionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_DeleteFunctionRequest_descriptor; @@ -362,39 +357,6 @@ private void buildPartial0(com.google.cloud.functions.v2.DeleteFunctionRequest r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.DeleteFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java index c72f1379bb84..48da5207ce42 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventFilter.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventFilter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_EventFilter_descriptor; @@ -494,39 +489,6 @@ private void buildPartial0(com.google.cloud.functions.v2.EventFilter result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.EventFilter) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java index 11786dd2bfeb..443bc706aafe 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTrigger.java @@ -55,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventTrigger(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_EventTrigger_descriptor; @@ -486,6 +481,7 @@ public com.google.cloud.functions.v2.EventFilterOrBuilder getEventFiltersOrBuild * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -516,6 +512,7 @@ public java.lang.String getPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -1055,39 +1052,6 @@ private void buildPartial0(com.google.cloud.functions.v2.EventTrigger result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.EventTrigger) { @@ -1977,6 +1941,7 @@ public com.google.cloud.functions.v2.EventFilter.Builder addEventFiltersBuilder( * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2006,6 +1971,7 @@ public java.lang.String getPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2035,6 +2001,7 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2063,6 +2030,7 @@ public Builder setPubsubTopic(java.lang.String value) { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2087,6 +2055,7 @@ public Builder clearPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java index 443e4cd045d1..ce24cf02330c 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/EventTriggerOrBuilder.java @@ -173,6 +173,7 @@ public interface EventTriggerOrBuilder * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -192,6 +193,7 @@ public interface EventTriggerOrBuilder * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java index c76b47a059fa..95e0f8689958 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Function.java @@ -40,12 +40,12 @@ private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Function() { name_ = ""; - environment_ = 0; description_ = ""; state_ = 0; stateMessages_ = java.util.Collections.emptyList(); - kmsKeyName_ = ""; + environment_ = 0; url_ = ""; + kmsKeyName_ = ""; } @java.lang.Override @@ -54,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Function(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_Function_descriptor; @@ -363,41 +358,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int ENVIRONMENT_FIELD_NUMBER = 10; - private int environment_ = 0; - /** - * - * - *
-   * Describe whether the function is 1st Gen or 2nd Gen.
-   * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @return The enum numeric value on the wire for environment. - */ - @java.lang.Override - public int getEnvironmentValue() { - return environment_; - } - /** - * - * - *
-   * Describe whether the function is 1st Gen or 2nd Gen.
-   * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @return The environment. - */ - @java.lang.Override - public com.google.cloud.functions.v2.Environment getEnvironment() { - com.google.cloud.functions.v2.Environment result = - com.google.cloud.functions.v2.Environment.forNumber(environment_); - return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; - } - public static final int DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -879,33 +839,65 @@ public com.google.cloud.functions.v2.StateMessageOrBuilder getStateMessagesOrBui return stateMessages_.get(index); } - public static final int KMS_KEY_NAME_FIELD_NUMBER = 25; + public static final int ENVIRONMENT_FIELD_NUMBER = 10; + private int environment_ = 0; + /** + * + * + *
+   * Describe whether the function is 1st Gen or 2nd Gen.
+   * 
+ * + * .google.cloud.functions.v2.Environment environment = 10; + * + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + /** + * + * + *
+   * Describe whether the function is 1st Gen or 2nd Gen.
+   * 
+ * + * .google.cloud.functions.v2.Environment environment = 10; + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Environment getEnvironment() { + com.google.cloud.functions.v2.Environment result = + com.google.cloud.functions.v2.Environment.forNumber(environment_); + return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; + } + + public static final int URL_FIELD_NUMBER = 14; @SuppressWarnings("serial") - private volatile java.lang.Object kmsKeyName_ = ""; + private volatile java.lang.Object url_ = ""; /** * * *
-   * Resource name of a KMS crypto key (managed by the user) used to
-   * encrypt/decrypt function resources.
-   * It must match the pattern
-   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * Output only. The deployed url for the function.
    * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The kmsKeyName. + * @return The url. */ @java.lang.Override - public java.lang.String getKmsKeyName() { - java.lang.Object ref = kmsKeyName_; + public java.lang.String getUrl() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kmsKeyName_ = s; + url_ = s; return s; } } @@ -913,53 +905,54 @@ public java.lang.String getKmsKeyName() { * * *
-   * Resource name of a KMS crypto key (managed by the user) used to
-   * encrypt/decrypt function resources.
-   * It must match the pattern
-   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * Output only. The deployed url for the function.
    * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for kmsKeyName. + * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { - java.lang.Object ref = kmsKeyName_; + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyName_ = b; + url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int URL_FIELD_NUMBER = 14; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 25; @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; + private volatile java.lang.Object kmsKeyName_ = ""; /** * * *
-   * Output only. The deployed url for the function.
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } * - * @return The url. + * @return The kmsKeyName. */ @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - url_ = s; + kmsKeyName_ = s; return s; } } @@ -967,20 +960,24 @@ public java.lang.String getUrl() { * * *
-   * Output only. The deployed url for the function.
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } * - * @return The bytes for url. + * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; + kmsKeyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1106,7 +1103,6 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.functions.v2.Function other = (com.google.cloud.functions.v2.Function) obj; if (!getName().equals(other.getName())) return false; - if (environment_ != other.environment_) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { @@ -1127,8 +1123,9 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (environment_ != other.environment_) return false; if (!getUrl().equals(other.getUrl())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1142,8 +1139,6 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; - hash = (53 * hash) + environment_; hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasBuildConfig()) { @@ -1172,10 +1167,12 @@ public int hashCode() { hash = (37 * hash) + STATE_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getStateMessagesList().hashCode(); } - hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + environment_; hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1337,7 +1334,6 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - environment_ = 0; description_ = ""; buildConfig_ = null; if (buildConfigBuilder_ != null) { @@ -1367,9 +1363,10 @@ public Builder clear() { stateMessages_ = null; stateMessagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); - kmsKeyName_ = ""; + bitField0_ = (bitField0_ & ~0x00000100); + environment_ = 0; url_ = ""; + kmsKeyName_ = ""; return this; } @@ -1407,9 +1404,9 @@ public com.google.cloud.functions.v2.Function buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.functions.v2.Function result) { if (stateMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); } result.stateMessages_ = stateMessages_; } else { @@ -1423,74 +1420,41 @@ private void buildPartial0(com.google.cloud.functions.v2.Function result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.environment_ = environment_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.buildConfig_ = buildConfigBuilder_ == null ? buildConfig_ : buildConfigBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.serviceConfig_ = serviceConfigBuilder_ == null ? serviceConfig_ : serviceConfigBuilder_.build(); } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.eventTrigger_ = eventTriggerBuilder_ == null ? eventTrigger_ : eventTriggerBuilder_.build(); } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.environment_ = environment_; + } if (((from_bitField0_ & 0x00000400) != 0)) { - result.kmsKeyName_ = kmsKeyName_; + result.url_ = url_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.url_ = url_; + result.kmsKeyName_ = kmsKeyName_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.Function) { @@ -1508,12 +1472,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2.Function other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.environment_ != 0) { - setEnvironmentValue(other.getEnvironmentValue()); - } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasBuildConfig()) { @@ -1532,12 +1493,12 @@ public Builder mergeFrom(com.google.cloud.functions.v2.Function other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; if (stateMessagesBuilder_ == null) { if (!other.stateMessages_.isEmpty()) { if (stateMessages_.isEmpty()) { stateMessages_ = other.stateMessages_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureStateMessagesIsMutable(); stateMessages_.addAll(other.stateMessages_); @@ -1550,7 +1511,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2.Function other) { stateMessagesBuilder_.dispose(); stateMessagesBuilder_ = null; stateMessages_ = other.stateMessages_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); stateMessagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStateMessagesFieldBuilder() @@ -1560,13 +1521,16 @@ public Builder mergeFrom(com.google.cloud.functions.v2.Function other) { } } } - if (!other.getKmsKeyName().isEmpty()) { - kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000400; - onChanged(); + if (other.environment_ != 0) { + setEnvironmentValue(other.getEnvironmentValue()); } if (!other.getUrl().isEmpty()) { url_ = other.url_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; bitField0_ |= 0x00000800; onChanged(); } @@ -1605,37 +1569,37 @@ public Builder mergeFrom( case 18: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getBuildConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getServiceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getEventTriggerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; break; } // case 42 case 48: { state_ = input.readEnum(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; break; } // case 58 case 66: @@ -1647,7 +1611,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; break; } // case 66 case 74: @@ -1666,19 +1630,19 @@ public Builder mergeFrom( case 80: { environment_ = input.readEnum(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000200; break; } // case 80 case 114: { url_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000400; break; } // case 114 case 202: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 202 default: @@ -1811,124 +1775,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int environment_ = 0; + private java.lang.Object description_ = ""; /** * * *
-     * Describe whether the function is 1st Gen or 2nd Gen.
+     * User-provided description of a function.
      * 
* - * .google.cloud.functions.v2.Environment environment = 10; + * string description = 2; * - * @return The enum numeric value on the wire for environment. + * @return The description. */ - @java.lang.Override - public int getEnvironmentValue() { - return environment_; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Describe whether the function is 1st Gen or 2nd Gen.
-     * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @param value The enum numeric value on the wire for environment to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentValue(int value) { - environment_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Describe whether the function is 1st Gen or 2nd Gen.
-     * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @return The environment. - */ - @java.lang.Override - public com.google.cloud.functions.v2.Environment getEnvironment() { - com.google.cloud.functions.v2.Environment result = - com.google.cloud.functions.v2.Environment.forNumber(environment_); - return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Describe whether the function is 1st Gen or 2nd Gen.
-     * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @param value The environment to set. - * @return This builder for chaining. - */ - public Builder setEnvironment(com.google.cloud.functions.v2.Environment value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - environment_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Describe whether the function is 1st Gen or 2nd Gen.
-     * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @return This builder for chaining. - */ - public Builder clearEnvironment() { - bitField0_ = (bitField0_ & ~0x00000002); - environment_ = 0; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * User-provided description of a function.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * User-provided description of a function.
+     * User-provided description of a function.
      * 
* * string description = 2; @@ -1963,7 +1837,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1980,7 +1854,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2002,7 +1876,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2026,7 +1900,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2068,7 +1942,7 @@ public Builder setBuildConfig(com.google.cloud.functions.v2.BuildConfig value) { } else { buildConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2089,7 +1963,7 @@ public Builder setBuildConfig( } else { buildConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2105,7 +1979,7 @@ public Builder setBuildConfig( */ public Builder mergeBuildConfig(com.google.cloud.functions.v2.BuildConfig value) { if (buildConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000004) != 0) && buildConfig_ != null && buildConfig_ != com.google.cloud.functions.v2.BuildConfig.getDefaultInstance()) { getBuildConfigBuilder().mergeFrom(value); @@ -2115,7 +1989,7 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2.BuildConfig value) } else { buildConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2130,7 +2004,7 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2.BuildConfig value) * .google.cloud.functions.v2.BuildConfig build_config = 3; */ public Builder clearBuildConfig() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); buildConfig_ = null; if (buildConfigBuilder_ != null) { buildConfigBuilder_.dispose(); @@ -2150,7 +2024,7 @@ public Builder clearBuildConfig() { * .google.cloud.functions.v2.BuildConfig build_config = 3; */ public com.google.cloud.functions.v2.BuildConfig.Builder getBuildConfigBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return getBuildConfigFieldBuilder().getBuilder(); } @@ -2219,7 +2093,7 @@ public com.google.cloud.functions.v2.BuildConfigOrBuilder getBuildConfigOrBuilde * @return Whether the serviceConfig field is set. */ public boolean hasServiceConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2261,7 +2135,7 @@ public Builder setServiceConfig(com.google.cloud.functions.v2.ServiceConfig valu } else { serviceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2282,7 +2156,7 @@ public Builder setServiceConfig( } else { serviceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2298,7 +2172,7 @@ public Builder setServiceConfig( */ public Builder mergeServiceConfig(com.google.cloud.functions.v2.ServiceConfig value) { if (serviceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000008) != 0) && serviceConfig_ != null && serviceConfig_ != com.google.cloud.functions.v2.ServiceConfig.getDefaultInstance()) { getServiceConfigBuilder().mergeFrom(value); @@ -2308,7 +2182,7 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2.ServiceConfig va } else { serviceConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2323,7 +2197,7 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2.ServiceConfig va * .google.cloud.functions.v2.ServiceConfig service_config = 4; */ public Builder clearServiceConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); serviceConfig_ = null; if (serviceConfigBuilder_ != null) { serviceConfigBuilder_.dispose(); @@ -2343,7 +2217,7 @@ public Builder clearServiceConfig() { * .google.cloud.functions.v2.ServiceConfig service_config = 4; */ public com.google.cloud.functions.v2.ServiceConfig.Builder getServiceConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return getServiceConfigFieldBuilder().getBuilder(); } @@ -2412,7 +2286,7 @@ public com.google.cloud.functions.v2.ServiceConfigOrBuilder getServiceConfigOrBu * @return Whether the eventTrigger field is set. */ public boolean hasEventTrigger() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2454,7 +2328,7 @@ public Builder setEventTrigger(com.google.cloud.functions.v2.EventTrigger value) } else { eventTriggerBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2475,7 +2349,7 @@ public Builder setEventTrigger( } else { eventTriggerBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2491,7 +2365,7 @@ public Builder setEventTrigger( */ public Builder mergeEventTrigger(com.google.cloud.functions.v2.EventTrigger value) { if (eventTriggerBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000010) != 0) && eventTrigger_ != null && eventTrigger_ != com.google.cloud.functions.v2.EventTrigger.getDefaultInstance()) { getEventTriggerBuilder().mergeFrom(value); @@ -2501,7 +2375,7 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2.EventTrigger valu } else { eventTriggerBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2516,7 +2390,7 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2.EventTrigger valu * .google.cloud.functions.v2.EventTrigger event_trigger = 5; */ public Builder clearEventTrigger() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); eventTrigger_ = null; if (eventTriggerBuilder_ != null) { eventTriggerBuilder_.dispose(); @@ -2536,7 +2410,7 @@ public Builder clearEventTrigger() { * .google.cloud.functions.v2.EventTrigger event_trigger = 5; */ public com.google.cloud.functions.v2.EventTrigger.Builder getEventTriggerBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return getEventTriggerFieldBuilder().getBuilder(); } @@ -2620,7 +2494,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2661,7 +2535,7 @@ public Builder setState(com.google.cloud.functions.v2.Function.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -2680,7 +2554,7 @@ public Builder setState(com.google.cloud.functions.v2.Function.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; @@ -2706,7 +2580,7 @@ public Builder clearState() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2750,7 +2624,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2771,7 +2645,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2788,7 +2662,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000040) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2798,7 +2672,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2814,7 +2688,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000040); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2835,7 +2709,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2904,7 +2778,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; onChanged(); return labels_; } @@ -2989,7 +2863,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3012,7 +2886,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** @@ -3032,7 +2906,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return this; } /** @@ -3046,7 +2920,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return this; } @@ -3054,10 +2928,10 @@ public Builder putAllLabels(java.util.Map va java.util.Collections.emptyList(); private void ensureStateMessagesIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { stateMessages_ = new java.util.ArrayList(stateMessages_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; } } @@ -3295,7 +3169,7 @@ public Builder addAllStateMessages( public Builder clearStateMessages() { if (stateMessagesBuilder_ == null) { stateMessages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { stateMessagesBuilder_.clear(); @@ -3433,7 +3307,7 @@ public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilde com.google.cloud.functions.v2.StateMessage.Builder, com.google.cloud.functions.v2.StateMessageOrBuilder>( stateMessages_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); stateMessages_ = null; @@ -3441,27 +3315,114 @@ public com.google.cloud.functions.v2.StateMessage.Builder addStateMessagesBuilde return stateMessagesBuilder_; } - private java.lang.Object kmsKeyName_ = ""; + private int environment_ = 0; /** * * *
-     * Resource name of a KMS crypto key (managed by the user) used to
-     * encrypt/decrypt function resources.
-     * It must match the pattern
-     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * Describe whether the function is 1st Gen or 2nd Gen.
      * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * .google.cloud.functions.v2.Environment environment = 10; * - * @return The kmsKeyName. + * @return The enum numeric value on the wire for environment. */ - public java.lang.String getKmsKeyName() { - java.lang.Object ref = kmsKeyName_; + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2.Environment environment = 10; + * + * @param value The enum numeric value on the wire for environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentValue(int value) { + environment_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2.Environment environment = 10; + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Environment getEnvironment() { + com.google.cloud.functions.v2.Environment result = + com.google.cloud.functions.v2.Environment.forNumber(environment_); + return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2.Environment environment = 10; + * + * @param value The environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironment(com.google.cloud.functions.v2.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + environment_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2.Environment environment = 10; + * + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + bitField0_ = (bitField0_ & ~0x00000200); + environment_ = 0; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + * + * + *
+     * Output only. The deployed url for the function.
+     * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kmsKeyName_ = s; + url_ = s; return s; } else { return (java.lang.String) ref; @@ -3471,22 +3432,19 @@ public java.lang.String getKmsKeyName() { * * *
-     * Resource name of a KMS crypto key (managed by the user) used to
-     * encrypt/decrypt function resources.
-     * It must match the pattern
-     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * Output only. The deployed url for the function.
      * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for kmsKeyName. + * @return The bytes for url. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { - java.lang.Object ref = kmsKeyName_; + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyName_ = b; + url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3496,22 +3454,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
-     * Resource name of a KMS crypto key (managed by the user) used to
-     * encrypt/decrypt function resources.
-     * It must match the pattern
-     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * Output only. The deployed url for the function.
      * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The kmsKeyName to set. + * @param value The url to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kmsKeyName_ = value; + url_ = value; bitField0_ |= 0x00000400; onChanged(); return this; @@ -3520,18 +3475,15 @@ public Builder setKmsKeyName(java.lang.String value) { * * *
-     * Resource name of a KMS crypto key (managed by the user) used to
-     * encrypt/decrypt function resources.
-     * It must match the pattern
-     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * Output only. The deployed url for the function.
      * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearKmsKeyName() { - kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; @@ -3540,46 +3492,47 @@ public Builder clearKmsKeyName() { * * *
-     * Resource name of a KMS crypto key (managed by the user) used to
-     * encrypt/decrypt function resources.
-     * It must match the pattern
-     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * Output only. The deployed url for the function.
      * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for kmsKeyName to set. + * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kmsKeyName_ = value; + url_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } - private java.lang.Object url_ = ""; + private java.lang.Object kmsKeyName_ = ""; /** * * *
-     * Output only. The deployed url for the function.
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } * - * @return The url. + * @return The kmsKeyName. */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - url_ = s; + kmsKeyName_ = s; return s; } else { return (java.lang.String) ref; @@ -3589,19 +3542,23 @@ public java.lang.String getUrl() { * * *
-     * Output only. The deployed url for the function.
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } * - * @return The bytes for url. + * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; + kmsKeyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3611,19 +3568,23 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
-     * Output only. The deployed url for the function.
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } * - * @param value The url to set. + * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - url_ = value; + kmsKeyName_ = value; bitField0_ |= 0x00000800; onChanged(); return this; @@ -3632,15 +3593,19 @@ public Builder setUrl(java.lang.String value) { * * *
-     * Output only. The deployed url for the function.
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; @@ -3649,20 +3614,24 @@ public Builder clearUrl() { * * *
-     * Output only. The deployed url for the function.
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } * - * @param value The bytes for url to set. + * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - url_ = value; + kmsKeyName_ = value; bitField0_ |= 0x00000800; onChanged(); return this; diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java index c955249e1d76..24035034e292 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionOrBuilder.java @@ -50,31 +50,6 @@ public interface FunctionOrBuilder */ com.google.protobuf.ByteString getNameBytes(); - /** - * - * - *
-   * Describe whether the function is 1st Gen or 2nd Gen.
-   * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @return The enum numeric value on the wire for environment. - */ - int getEnvironmentValue(); - /** - * - * - *
-   * Describe whether the function is 1st Gen or 2nd Gen.
-   * 
- * - * .google.cloud.functions.v2.Environment environment = 10; - * - * @return The environment. - */ - com.google.cloud.functions.v2.Environment getEnvironment(); - /** * * @@ -405,32 +380,26 @@ java.lang.String getLabelsOrDefault( * * *
-   * Resource name of a KMS crypto key (managed by the user) used to
-   * encrypt/decrypt function resources.
-   * It must match the pattern
-   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * Describe whether the function is 1st Gen or 2nd Gen.
    * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * .google.cloud.functions.v2.Environment environment = 10; * - * @return The kmsKeyName. + * @return The enum numeric value on the wire for environment. */ - java.lang.String getKmsKeyName(); + int getEnvironmentValue(); /** * * *
-   * Resource name of a KMS crypto key (managed by the user) used to
-   * encrypt/decrypt function resources.
-   * It must match the pattern
-   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * Describe whether the function is 1st Gen or 2nd Gen.
    * 
* - * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * .google.cloud.functions.v2.Environment environment = 10; * - * @return The bytes for kmsKeyName. + * @return The environment. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.cloud.functions.v2.Environment getEnvironment(); /** * @@ -456,4 +425,37 @@ java.lang.String getLabelsOrDefault( * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java index e8124f6d9e62..3a8c19d3a66f 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionsProto.java @@ -147,6 +147,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_functions_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2_LocationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_functions_v2_Stage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -168,256 +172,259 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nning/operations.proto\032\031google/protobuf/" + "any.proto\032\033google/protobuf/empty.proto\032 " + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\"\207\007\n\010Function\022\014" - + "\n\004name\030\001 \001(\t\022;\n\013environment\030\n \001(\0162&.goog" - + "le.cloud.functions.v2.Environment\022\023\n\013des" - + "cription\030\002 \001(\t\022<\n\014build_config\030\003 \001(\0132&.g" - + "oogle.cloud.functions.v2.BuildConfig\022@\n\016" - + "service_config\030\004 \001(\0132(.google.cloud.func" - + "tions.v2.ServiceConfig\022>\n\revent_trigger\030" - + "\005 \001(\0132\'.google.cloud.functions.v2.EventT" - + "rigger\022=\n\005state\030\006 \001(\0162).google.cloud.fun" - + "ctions.v2.Function.StateB\003\340A\003\0224\n\013update_" - + "time\030\007 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022?\n\006labels\030\010 \003(\0132/.google.cloud.funct" - + "ions.v2.Function.LabelsEntry\022D\n\016state_me" - + "ssages\030\t \003(\0132\'.google.cloud.functions.v2" - + ".StateMessageB\003\340A\003\022<\n\014kms_key_name\030\031 \001(\t" - + "B&\372A#\n!cloudkms.googleapis.com/CryptoKey" - + "\022\020\n\003url\030\016 \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006FAILED\020" - + "\002\022\r\n\tDEPLOYING\020\003\022\014\n\010DELETING\020\004\022\013\n\007UNKNOW" - + "N\020\005:~\352A{\n&cloudfunctions.googleapis.com/" - + "Function\022\n\013worker_p" - + "ool\030\005 \001(\tB)\372A&\n$cloudbuild.googleapis.co" - + "m/WorkerPool\022_\n\025environment_variables\030\006 " - + "\003(\0132@.google.cloud.functions.v2.BuildCon" - + "fig.EnvironmentVariablesEntry\022S\n\017docker_" - + "registry\030\n \001(\01625.google.cloud.functions." - + "v2.BuildConfig.DockerRegistryB\003\340A\001\022J\n\021do" - + "cker_repository\030\007 \001(\tB/\372A,\n*artifactregi" - + "stry.googleapis.com/Repository\032;\n\031Enviro" - + "nmentVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"`\n\016DockerRegistry\022\037\n\033DOCKER_" - + "REGISTRY_UNSPECIFIED\020\000\022\026\n\022CONTAINER_REGI" - + "STRY\020\001\022\025\n\021ARTIFACT_REGISTRY\020\002\"\252\n\n\rServic" - + "eConfig\0223\n\007service\030\001 \001(\tB\"\340A\003\372A\034\n\032run.go" - + "ogleapis.com/Service\022\027\n\017timeout_seconds\030" - + "\002 \001(\005\022\030\n\020available_memory\030\r \001(\t\022\025\n\ravail" - + "able_cpu\030\026 \001(\t\022a\n\025environment_variables\030" - + "\004 \003(\0132B.google.cloud.functions.v2.Servic" - + "eConfig.EnvironmentVariablesEntry\022\032\n\022max" - + "_instance_count\030\005 \001(\005\022\032\n\022min_instance_co" - + "unt\030\014 \001(\005\022>\n\rvpc_connector\030\006 \001(\tB\'\372A$\n\"v" - + "pcaccess.googleapis.com/Connector\022j\n\035vpc" - + "_connector_egress_settings\030\007 \001(\0162C.googl" - + "e.cloud.functions.v2.ServiceConfig.VpcCo" - + "nnectorEgressSettings\022R\n\020ingress_setting" - + "s\030\010 \001(\01628.google.cloud.functions.v2.Serv" - + "iceConfig.IngressSettings\022\020\n\003uri\030\t \001(\tB\003" - + "\340A\003\022\035\n\025service_account_email\030\n \001(\t\022&\n\036al" - + "l_traffic_on_latest_revision\030\020 \001(\010\022M\n\034se" - + "cret_environment_variables\030\021 \003(\0132\'.googl" - + "e.cloud.functions.v2.SecretEnvVar\022?\n\016sec" - + "ret_volumes\030\023 \003(\0132\'.google.cloud.functio" - + "ns.v2.SecretVolume\022\025\n\010revision\030\022 \001(\tB\003\340A" - + "\003\022(\n max_instance_request_concurrency\030\024 " - + "\001(\005\022N\n\016security_level\030\025 \001(\01626.google.clo" - + "ud.functions.v2.ServiceConfig.SecurityLe" - + "vel\032;\n\031EnvironmentVariablesEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnector" - + "EgressSettings\022-\n)VPC_CONNECTOR_EGRESS_S" - + "ETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGES_" - + "ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSettin" - + "gs\022 \n\034INGRESS_SETTINGS_UNSPECIFIED\020\000\022\r\n\t" - + "ALLOW_ALL\020\001\022\027\n\023ALLOW_INTERNAL_ONLY\020\002\022\033\n\027" - + "ALLOW_INTERNAL_AND_GCLB\020\003\"W\n\rSecurityLev" - + "el\022\036\n\032SECURITY_LEVEL_UNSPECIFIED\020\000\022\021\n\rSE" - + "CURE_ALWAYS\020\001\022\023\n\017SECURE_OPTIONAL\020\002\"P\n\014Se" - + "cretEnvVar\022\013\n\003key\030\001 \001(\t\022\022\n\nproject_id\030\002 " - + "\001(\t\022\016\n\006secret\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\"\277\001\n" - + "\014SecretVolume\022\022\n\nmount_path\030\001 \001(\t\022\022\n\npro" - + "ject_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022G\n\010version" - + "s\030\004 \003(\01325.google.cloud.functions.v2.Secr" - + "etVolume.SecretVersion\032.\n\rSecretVersion\022" - + "\017\n\007version\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\205\004\n\014Event" - + "Trigger\0228\n\007trigger\030\001 \001(\tB\'\340A\003\372A!\n\037eventa" - + "rc.googleapis.com/Trigger\022\026\n\016trigger_reg" - + "ion\030\002 \001(\t\022\027\n\nevent_type\030\003 \001(\tB\003\340A\002\022=\n\rev" - + "ent_filters\030\004 \003(\0132&.google.cloud.functio" - + "ns.v2.EventFilter\0229\n\014pubsub_topic\030\005 \001(\tB" - + "#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\022\"\n\025" - + "service_account_email\030\006 \001(\tB\003\340A\001\022N\n\014retr" - + "y_policy\030\007 \001(\01623.google.cloud.functions." - + "v2.EventTrigger.RetryPolicyB\003\340A\001\0228\n\007chan" - + "nel\030\010 \001(\tB\'\340A\001\372A!\n\037eventarc.googleapis.c" - + "om/Channel\"b\n\013RetryPolicy\022\034\n\030RETRY_POLIC" - + "Y_UNSPECIFIED\020\000\022\035\n\031RETRY_POLICY_DO_NOT_R" - + "ETRY\020\001\022\026\n\022RETRY_POLICY_RETRY\020\002\"P\n\013EventF" - + "ilter\022\026\n\tattribute\030\001 \001(\tB\003\340A\002\022\022\n\005value\030\002" - + " \001(\tB\003\340A\002\022\025\n\010operator\030\003 \001(\tB\003\340A\001\"R\n\022GetF" - + "unctionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cl" - + "oudfunctions.googleapis.com/Function\"\237\001\n" - + "\024ListFunctionsRequest\022>\n\006parent\030\001 \001(\tB.\340" - + "A\002\372A(\022&cloudfunctions.googleapis.com/Fun" - + "ction\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"}" - + "\n\025ListFunctionsResponse\0226\n\tfunctions\030\001 \003" - + "(\0132#.google.cloud.functions.v2.Function\022" - + "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" - + "\003 \003(\t\"\243\001\n\025CreateFunctionRequest\0229\n\006paren" - + "t\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" - + "m/Location\022:\n\010function\030\002 \001(\0132#.google.cl" - + "oud.functions.v2.FunctionB\003\340A\002\022\023\n\013functi" - + "on_id\030\003 \001(\t\"\204\001\n\025UpdateFunctionRequest\022:\n" - + "\010function\030\001 \001(\0132#.google.cloud.functions" - + ".v2.FunctionB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" - + ".google.protobuf.FieldMask\"U\n\025DeleteFunc" - + "tionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloud" - + "functions.googleapis.com/Function\"\223\001\n\030Ge" - + "nerateUploadUrlRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\n!locations.googleapis.com/Locatio" - + "n\022<\n\014kms_key_name\030\002 \001(\tB&\372A#\n!cloudkms.g" - + "oogleapis.com/CryptoKey\"q\n\031GenerateUploa" - + "dUrlResponse\022\022\n\nupload_url\030\001 \001(\t\022@\n\016stor" - + "age_source\030\002 \001(\0132(.google.cloud.function" - + "s.v2.StorageSource\"Z\n\032GenerateDownloadUr" - + "lRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloudfun" - + "ctions.googleapis.com/Function\"3\n\033Genera" - + "teDownloadUrlResponse\022\024\n\014download_url\030\001 " - + "\001(\t\"`\n\023ListRuntimesRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\016\n\006filter\030\002 \001(\t\"\256\003\n\024ListRuntimesRe" - + "sponse\022I\n\010runtimes\030\001 \003(\01327.google.cloud." - + "functions.v2.ListRuntimesResponse.Runtim" - + "e\032\311\001\n\007Runtime\022\014\n\004name\030\001 \001(\t\022\024\n\014display_n" - + "ame\030\005 \001(\t\022K\n\005stage\030\002 \001(\0162<.google.cloud." - + "functions.v2.ListRuntimesResponse.Runtim" - + "eStage\022\020\n\010warnings\030\003 \003(\t\022;\n\013environment\030" - + "\004 \001(\0162&.google.cloud.functions.v2.Enviro" - + "nment\"\177\n\014RuntimeStage\022\035\n\031RUNTIME_STAGE_U" - + "NSPECIFIED\020\000\022\017\n\013DEVELOPMENT\020\001\022\t\n\005ALPHA\020\002" - + "\022\010\n\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPRECATED\020\005\022\022\n\016DE" - + "COMMISSIONED\020\006\"\270\002\n\021OperationMetadata\022/\n\013" - + "create_time\030\001 \001(\0132\032.google.protobuf.Time" - + "stamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobu" - + "f.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(" - + "\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_reque" - + "sted\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\022.\n\020reque" - + "st_resource\030\010 \001(\0132\024.google.protobuf.Any\022" - + "0\n\006stages\030\t \003(\0132 .google.cloud.functions" - + ".v2.Stage\"\304\003\n\005Stage\0223\n\004name\030\001 \001(\0162%.goog" - + "le.cloud.functions.v2.Stage.Name\022\017\n\007mess" - + "age\030\002 \001(\t\0225\n\005state\030\003 \001(\0162&.google.cloud." - + "functions.v2.Stage.State\022\020\n\010resource\030\004 \001" - + "(\t\022\024\n\014resource_uri\030\005 \001(\t\022?\n\016state_messag" - + "es\030\006 \003(\0132\'.google.cloud.functions.v2.Sta" - + "teMessage\"\204\001\n\004Name\022\024\n\020NAME_UNSPECIFIED\020\000" - + "\022\025\n\021ARTIFACT_REGISTRY\020\001\022\t\n\005BUILD\020\002\022\013\n\007SE" - + "RVICE\020\003\022\013\n\007TRIGGER\020\004\022\024\n\020SERVICE_ROLLBACK" - + "\020\005\022\024\n\020TRIGGER_ROLLBACK\020\006\"N\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\017\n\013IN_" - + "PROGRESS\020\002\022\014\n\010COMPLETE\020\003*@\n\013Environment\022" - + "\033\n\027ENVIRONMENT_UNSPECIFIED\020\000\022\t\n\005GEN_1\020\001\022" - + "\t\n\005GEN_2\020\0022\252\016\n\017FunctionService\022\237\001\n\013GetFu" - + "nction\022-.google.cloud.functions.v2.GetFu" - + "nctionRequest\032#.google.cloud.functions.v" - + "2.Function\"<\202\323\344\223\002/\022-/v2/{name=projects/*" - + "/locations/*/functions/*}\332A\004name\022\262\001\n\rLis" - + "tFunctions\022/.google.cloud.functions.v2.L" - + "istFunctionsRequest\0320.google.cloud.funct" - + "ions.v2.ListFunctionsResponse\">\202\323\344\223\002/\022-/" - + "v2/{parent=projects/*/locations/*}/funct" - + "ions\332A\006parent\022\225\002\n\016CreateFunction\0220.googl" - + "e.cloud.functions.v2.CreateFunctionReque" - + "st\032\035.google.longrunning.Operation\"\261\001\202\323\344\223" - + "\0029\"-/v2/{parent=projects/*/locations/*}/" - + "functions:\010function\332A\033parent,function,fu" - + "nction_id\312AQ\n\"google.cloud.functions.v2." - + "Function\022+google.cloud.functions.v2.Oper" - + "ationMetadata\022\227\002\n\016UpdateFunction\0220.googl" - + "e.cloud.functions.v2.UpdateFunctionReque" - + "st\032\035.google.longrunning.Operation\"\263\001\202\323\344\223" - + "\002B26/v2/{function.name=projects/*/locati" - + "ons/*/functions/*}:\010function\332A\024function," - + "update_mask\312AQ\n\"google.cloud.functions.v" - + "2.Function\022+google.cloud.functions.v2.Op" - + "erationMetadata\022\347\001\n\016DeleteFunction\0220.goo" - + "gle.cloud.functions.v2.DeleteFunctionReq" - + "uest\032\035.google.longrunning.Operation\"\203\001\202\323" - + "\344\223\002/*-/v2/{name=projects/*/locations/*/f" - + "unctions/*}\332A\004name\312AD\n\025google.protobuf.E" - + "mpty\022+google.cloud.functions.v2.Operatio" - + "nMetadata\022\312\001\n\021GenerateUploadUrl\0223.google" - + ".cloud.functions.v2.GenerateUploadUrlReq" - + "uest\0324.google.cloud.functions.v2.Generat" - + "eUploadUrlResponse\"J\202\323\344\223\002D\"?/v2/{parent=" - + "projects/*/locations/*}/functions:genera" - + "teUploadUrl:\001*\022\322\001\n\023GenerateDownloadUrl\0225" - + ".google.cloud.functions.v2.GenerateDownl" - + "oadUrlRequest\0326.google.cloud.functions.v" - + "2.GenerateDownloadUrlResponse\"L\202\323\344\223\002F\"A/" - + "v2/{name=projects/*/locations/*/function" - + "s/*}:generateDownloadUrl:\001*\022\256\001\n\014ListRunt" - + "imes\022..google.cloud.functions.v2.ListRun" - + "timesRequest\032/.google.cloud.functions.v2" - + ".ListRuntimesResponse\"=\202\323\344\223\002.\022,/v2/{pare" - + "nt=projects/*/locations/*}/runtimes\332A\006pa" - + "rent\032Q\312A\035cloudfunctions.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\356\007\n\035com.google.cloud.functions.v" - + "2B\016FunctionsProtoP\001Z;cloud.google.com/go" - + "/functions/apiv2/functionspb;functionspb" - + "\242\002\003GCF\352Ao\n*artifactregistry.googleapis.c" - + "om/Repository\022Aprojects/{project}/locati" - + "ons/{location}/repositories/{repository}" - + "\352AY\n\037cloudbuild.googleapis.com/Build\0226pr" - + "ojects/{project}/locations/{location}/bu" - + "ilds/{build}\352Ai\n$cloudbuild.googleapis.c" - + "om/WorkerPool\022Aprojects/{project}/locati" - + "ons/{location}/workerPools/{worker_pool}" - + "\352AX\n\032run.googleapis.com/Service\022:project" - + "s/{project}/locations/{location}/service" - + "s/{service}\352Ad\n\"vpcaccess.googleapis.com" - + "/Connector\022>projects/{project}/locations" - + "/{location}/connectors/{connector}\352A]\n\037e" - + "ventarc.googleapis.com/Trigger\022:projects" - + "/{project}/locations/{location}/triggers" - + "/{trigger}\352A]\n\037eventarc.googleapis.com/C" - + "hannel\022:projects/{project}/locations/{lo" - + "cation}/channels/{channel}\352A@\n\033pubsub.go" - + "ogleapis.com/Topic\022!projects/{project}/t" - + "opics/{topic}\352Ax\n!cloudkms.googleapis.co" - + "m/CryptoKey\022Sprojects/{project}/location" - + "s/{location}/keyRings/{key_ring}/cryptoK" - + "eys/{crypto_key}b\006proto3" + + "/protobuf/timestamp.proto\"\213\007\n\010Function\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022<\n\014bui" + + "ld_config\030\003 \001(\0132&.google.cloud.functions" + + ".v2.BuildConfig\022@\n\016service_config\030\004 \001(\0132" + + "(.google.cloud.functions.v2.ServiceConfi" + + "g\022>\n\revent_trigger\030\005 \001(\0132\'.google.cloud." + + "functions.v2.EventTrigger\022>\n\005state\030\006 \001(\016" + + "2).google.cloud.functions.v2.Function.St" + + "ateB\004\342A\001\003\0225\n\013update_time\030\007 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\022?\n\006labels\030\010 \003(\013" + + "2/.google.cloud.functions.v2.Function.La" + + "belsEntry\022E\n\016state_messages\030\t \003(\0132\'.goog" + + "le.cloud.functions.v2.StateMessageB\004\342A\001\003" + + "\022;\n\013environment\030\n \001(\0162&.google.cloud.fun" + + "ctions.v2.Environment\022\021\n\003url\030\016 \001(\tB\004\342A\001\003" + + "\022<\n\014kms_key_name\030\031 \001(\tB&\372A#\n!cloudkms.go" + + "ogleapis.com/CryptoKey\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006FAI" + + "LED\020\002\022\r\n\tDEPLOYING\020\003\022\014\n\010DELETING\020\004\022\013\n\007UN" + + "KNOWN\020\005:~\352A{\n&cloudfunctions.googleapis." + + "com/Function\022\n\013wo" + + "rker_pool\030\005 \001(\tB)\372A&\n$cloudbuild.googlea" + + "pis.com/WorkerPool\022_\n\025environment_variab" + + "les\030\006 \003(\0132@.google.cloud.functions.v2.Bu" + + "ildConfig.EnvironmentVariablesEntry\022N\n\017d" + + "ocker_registry\030\n \001(\01625.google.cloud.func" + + "tions.v2.BuildConfig.DockerRegistry\022J\n\021d" + + "ocker_repository\030\007 \001(\tB/\372A,\n*artifactreg" + + "istry.googleapis.com/Repository\032;\n\031Envir" + + "onmentVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"`\n\016DockerRegistry\022\037\n\033DOCKER" + + "_REGISTRY_UNSPECIFIED\020\000\022\026\n\022CONTAINER_REG" + + "ISTRY\020\001\022\025\n\021ARTIFACT_REGISTRY\020\002\"\255\n\n\rServi" + + "ceConfig\0224\n\007service\030\001 \001(\tB#\342A\001\003\372A\034\n\032run." + + "googleapis.com/Service\022\027\n\017timeout_second" + + "s\030\002 \001(\005\022\030\n\020available_memory\030\r \001(\t\022\025\n\rava" + + "ilable_cpu\030\026 \001(\t\022a\n\025environment_variable" + + "s\030\004 \003(\0132B.google.cloud.functions.v2.Serv" + + "iceConfig.EnvironmentVariablesEntry\022\032\n\022m" + + "ax_instance_count\030\005 \001(\005\022\032\n\022min_instance_" + + "count\030\014 \001(\005\022>\n\rvpc_connector\030\006 \001(\tB\'\372A$\n" + + "\"vpcaccess.googleapis.com/Connector\022j\n\035v" + + "pc_connector_egress_settings\030\007 \001(\0162C.goo" + + "gle.cloud.functions.v2.ServiceConfig.Vpc" + + "ConnectorEgressSettings\022R\n\020ingress_setti" + + "ngs\030\010 \001(\01628.google.cloud.functions.v2.Se" + + "rviceConfig.IngressSettings\022\021\n\003uri\030\t \001(\t" + + "B\004\342A\001\003\022\035\n\025service_account_email\030\n \001(\t\022&\n" + + "\036all_traffic_on_latest_revision\030\020 \001(\010\022M\n" + + "\034secret_environment_variables\030\021 \003(\0132\'.go" + + "ogle.cloud.functions.v2.SecretEnvVar\022?\n\016" + + "secret_volumes\030\023 \003(\0132\'.google.cloud.func" + + "tions.v2.SecretVolume\022\026\n\010revision\030\022 \001(\tB" + + "\004\342A\001\003\022(\n max_instance_request_concurrenc" + + "y\030\024 \001(\005\022N\n\016security_level\030\025 \001(\01626.google" + + ".cloud.functions.v2.ServiceConfig.Securi" + + "tyLevel\032;\n\031EnvironmentVariablesEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConne" + + "ctorEgressSettings\022-\n)VPC_CONNECTOR_EGRE" + + "SS_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RAN" + + "GES_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSe" + + "ttings\022 \n\034INGRESS_SETTINGS_UNSPECIFIED\020\000" + + "\022\r\n\tALLOW_ALL\020\001\022\027\n\023ALLOW_INTERNAL_ONLY\020\002" + + "\022\033\n\027ALLOW_INTERNAL_AND_GCLB\020\003\"W\n\rSecurit" + + "yLevel\022\036\n\032SECURITY_LEVEL_UNSPECIFIED\020\000\022\021" + + "\n\rSECURE_ALWAYS\020\001\022\023\n\017SECURE_OPTIONAL\020\002\"P" + + "\n\014SecretEnvVar\022\013\n\003key\030\001 \001(\t\022\022\n\nproject_i" + + "d\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022\017\n\007version\030\004 \001(\t" + + "\"\277\001\n\014SecretVolume\022\022\n\nmount_path\030\001 \001(\t\022\022\n" + + "\nproject_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022G\n\010ver" + + "sions\030\004 \003(\01325.google.cloud.functions.v2." + + "SecretVolume.SecretVersion\032.\n\rSecretVers" + + "ion\022\017\n\007version\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\213\004\n\014E" + + "ventTrigger\0229\n\007trigger\030\001 \001(\tB(\342A\001\003\372A!\n\037e" + + "ventarc.googleapis.com/Trigger\022\026\n\016trigge" + + "r_region\030\002 \001(\t\022\030\n\nevent_type\030\003 \001(\tB\004\342A\001\002" + + "\022=\n\revent_filters\030\004 \003(\0132&.google.cloud.f" + + "unctions.v2.EventFilter\022:\n\014pubsub_topic\030" + + "\005 \001(\tB$\342A\001\001\372A\035\n\033pubsub.googleapis.com/To" + + "pic\022#\n\025service_account_email\030\006 \001(\tB\004\342A\001\001" + + "\022O\n\014retry_policy\030\007 \001(\01623.google.cloud.fu" + + "nctions.v2.EventTrigger.RetryPolicyB\004\342A\001" + + "\001\0229\n\007channel\030\010 \001(\tB(\342A\001\001\372A!\n\037eventarc.go" + + "ogleapis.com/Channel\"b\n\013RetryPolicy\022\034\n\030R" + + "ETRY_POLICY_UNSPECIFIED\020\000\022\035\n\031RETRY_POLIC" + + "Y_DO_NOT_RETRY\020\001\022\026\n\022RETRY_POLICY_RETRY\020\002" + + "\"S\n\013EventFilter\022\027\n\tattribute\030\001 \001(\tB\004\342A\001\002" + + "\022\023\n\005value\030\002 \001(\tB\004\342A\001\002\022\026\n\010operator\030\003 \001(\tB" + + "\004\342A\001\001\"S\n\022GetFunctionRequest\022=\n\004name\030\001 \001(" + + "\tB/\342A\001\002\372A(\n&cloudfunctions.googleapis.co" + + "m/Function\"\240\001\n\024ListFunctionsRequest\022?\n\006p" + + "arent\030\001 \001(\tB/\342A\001\002\372A(\022&cloudfunctions.goo" + + "gleapis.com/Function\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + + "rder_by\030\005 \001(\t\"}\n\025ListFunctionsResponse\0226" + + "\n\tfunctions\030\001 \003(\0132#.google.cloud.functio" + + "ns.v2.Function\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"\245\001\n\025CreateFunctionR" + + "equest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locatio" + + "ns.googleapis.com/Location\022;\n\010function\030\002" + + " \001(\0132#.google.cloud.functions.v2.Functio" + + "nB\004\342A\001\002\022\023\n\013function_id\030\003 \001(\t\"\205\001\n\025UpdateF" + + "unctionRequest\022;\n\010function\030\001 \001(\0132#.googl" + + "e.cloud.functions.v2.FunctionB\004\342A\001\002\022/\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "Mask\"V\n\025DeleteFunctionRequest\022=\n\004name\030\001 " + + "\001(\tB/\342A\001\002\372A(\n&cloudfunctions.googleapis." + + "com/Function\"\224\001\n\030GenerateUploadUrlReques" + + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.go" + + "ogleapis.com/Location\022<\n\014kms_key_name\030\002 " + + "\001(\tB&\372A#\n!cloudkms.googleapis.com/Crypto" + + "Key\"q\n\031GenerateUploadUrlResponse\022\022\n\nuplo" + + "ad_url\030\001 \001(\t\022@\n\016storage_source\030\002 \001(\0132(.g" + + "oogle.cloud.functions.v2.StorageSource\"[" + + "\n\032GenerateDownloadUrlRequest\022=\n\004name\030\001 \001" + + "(\tB/\342A\001\002\372A(\n&cloudfunctions.googleapis.c" + + "om/Function\"3\n\033GenerateDownloadUrlRespon" + + "se\022\024\n\014download_url\030\001 \001(\t\"a\n\023ListRuntimes" + + "Request\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locati" + + "ons.googleapis.com/Location\022\016\n\006filter\030\002 " + + "\001(\t\"\256\003\n\024ListRuntimesResponse\022I\n\010runtimes" + + "\030\001 \003(\01327.google.cloud.functions.v2.ListR" + + "untimesResponse.Runtime\032\311\001\n\007Runtime\022\014\n\004n" + + "ame\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\t\022K\n\005stage" + + "\030\002 \001(\0162<.google.cloud.functions.v2.ListR" + + "untimesResponse.RuntimeStage\022\020\n\010warnings" + + "\030\003 \003(\t\022;\n\013environment\030\004 \001(\0162&.google.clo" + + "ud.functions.v2.Environment\"\177\n\014RuntimeSt" + + "age\022\035\n\031RUNTIME_STAGE_UNSPECIFIED\020\000\022\017\n\013DE" + + "VELOPMENT\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA\020\003\022\006\n\002GA\020\004" + + "\022\016\n\nDEPRECATED\020\005\022\022\n\016DECOMMISSIONED\020\006\"\270\002\n" + + "\021OperationMetadata\022/\n\013create_time\030\001 \001(\0132" + + "\032.google.protobuf.Timestamp\022,\n\010end_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\022\016\n\006tar" + + "get\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detail" + + "\030\005 \001(\t\022\030\n\020cancel_requested\030\006 \001(\010\022\023\n\013api_" + + "version\030\007 \001(\t\022.\n\020request_resource\030\010 \001(\0132" + + "\024.google.protobuf.Any\0220\n\006stages\030\t \003(\0132 ." + + "google.cloud.functions.v2.Stage\"P\n\020Locat" + + "ionMetadata\022<\n\014environments\030\001 \003(\0162&.goog" + + "le.cloud.functions.v2.Environment\"\304\003\n\005St" + + "age\0223\n\004name\030\001 \001(\0162%.google.cloud.functio" + + "ns.v2.Stage.Name\022\017\n\007message\030\002 \001(\t\0225\n\005sta" + + "te\030\003 \001(\0162&.google.cloud.functions.v2.Sta" + + "ge.State\022\020\n\010resource\030\004 \001(\t\022\024\n\014resource_u" + + "ri\030\005 \001(\t\022?\n\016state_messages\030\006 \003(\0132\'.googl" + + "e.cloud.functions.v2.StateMessage\"\204\001\n\004Na" + + "me\022\024\n\020NAME_UNSPECIFIED\020\000\022\025\n\021ARTIFACT_REG" + + "ISTRY\020\001\022\t\n\005BUILD\020\002\022\013\n\007SERVICE\020\003\022\013\n\007TRIGG" + + "ER\020\004\022\024\n\020SERVICE_ROLLBACK\020\005\022\024\n\020TRIGGER_RO" + + "LLBACK\020\006\"N\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\017\n\013NOT_STARTED\020\001\022\017\n\013IN_PROGRESS\020\002\022\014\n\010CO" + + "MPLETE\020\003*@\n\013Environment\022\033\n\027ENVIRONMENT_U" + + "NSPECIFIED\020\000\022\t\n\005GEN_1\020\001\022\t\n\005GEN_2\020\0022\252\016\n\017F" + + "unctionService\022\237\001\n\013GetFunction\022-.google." + + "cloud.functions.v2.GetFunctionRequest\032#." + + "google.cloud.functions.v2.Function\"<\332A\004n" + + "ame\202\323\344\223\002/\022-/v2/{name=projects/*/location" + + "s/*/functions/*}\022\262\001\n\rListFunctions\022/.goo" + + "gle.cloud.functions.v2.ListFunctionsRequ" + + "est\0320.google.cloud.functions.v2.ListFunc" + + "tionsResponse\">\332A\006parent\202\323\344\223\002/\022-/v2/{par" + + "ent=projects/*/locations/*}/functions\022\225\002" + + "\n\016CreateFunction\0220.google.cloud.function" + + "s.v2.CreateFunctionRequest\032\035.google.long" + + "running.Operation\"\261\001\312AQ\n\"google.cloud.fu" + + "nctions.v2.Function\022+google.cloud.functi" + + "ons.v2.OperationMetadata\332A\033parent,functi" + + "on,function_id\202\323\344\223\0029\"-/v2/{parent=projec" + + "ts/*/locations/*}/functions:\010function\022\227\002" + + "\n\016UpdateFunction\0220.google.cloud.function" + + "s.v2.UpdateFunctionRequest\032\035.google.long" + + "running.Operation\"\263\001\312AQ\n\"google.cloud.fu" + + "nctions.v2.Function\022+google.cloud.functi" + + "ons.v2.OperationMetadata\332A\024function,upda" + + "te_mask\202\323\344\223\002B26/v2/{function.name=projec" + + "ts/*/locations/*/functions/*}:\010function\022" + + "\347\001\n\016DeleteFunction\0220.google.cloud.functi" + + "ons.v2.DeleteFunctionRequest\032\035.google.lo" + + "ngrunning.Operation\"\203\001\312AD\n\025google.protob" + + "uf.Empty\022+google.cloud.functions.v2.Oper" + + "ationMetadata\332A\004name\202\323\344\223\002/*-/v2/{name=pr" + + "ojects/*/locations/*/functions/*}\022\312\001\n\021Ge" + + "nerateUploadUrl\0223.google.cloud.functions" + + ".v2.GenerateUploadUrlRequest\0324.google.cl" + + "oud.functions.v2.GenerateUploadUrlRespon" + + "se\"J\202\323\344\223\002D\"?/v2/{parent=projects/*/locat" + + "ions/*}/functions:generateUploadUrl:\001*\022\322" + + "\001\n\023GenerateDownloadUrl\0225.google.cloud.fu" + + "nctions.v2.GenerateDownloadUrlRequest\0326." + + "google.cloud.functions.v2.GenerateDownlo" + + "adUrlResponse\"L\202\323\344\223\002F\"A/v2/{name=project" + + "s/*/locations/*/functions/*}:generateDow" + + "nloadUrl:\001*\022\256\001\n\014ListRuntimes\022..google.cl" + + "oud.functions.v2.ListRuntimesRequest\032/.g" + + "oogle.cloud.functions.v2.ListRuntimesRes" + + "ponse\"=\332A\006parent\202\323\344\223\002.\022,/v2/{parent=proj" + + "ects/*/locations/*}/runtimes\032Q\312A\035cloudfu" + + "nctions.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\356\007\n\035com." + + "google.cloud.functions.v2B\016FunctionsProt" + + "oP\001Z;cloud.google.com/go/functions/apiv2" + + "/functionspb;functionspb\242\002\003GCF\352Ao\n*artif" + + "actregistry.googleapis.com/Repository\022Ap" + + "rojects/{project}/locations/{location}/r" + + "epositories/{repository}\352AY\n\037cloudbuild." + + "googleapis.com/Build\0226projects/{project}" + + "/locations/{location}/builds/{build}\352Ai\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Ap" + + "rojects/{project}/locations/{location}/w" + + "orkerPools/{worker_pool}\352AX\n\032run.googlea" + + "pis.com/Service\022:projects/{project}/loca" + + "tions/{location}/services/{service}\352Ad\n\"" + + "vpcaccess.googleapis.com/Connector\022>proj" + + "ects/{project}/locations/{location}/conn" + + "ectors/{connector}\352A]\n\037eventarc.googleap" + + "is.com/Trigger\022:projects/{project}/locat" + + "ions/{location}/triggers/{trigger}\352A]\n\037e" + + "ventarc.googleapis.com/Channel\022:projects" + + "/{project}/locations/{location}/channels" + + "/{channel}\352A@\n\033pubsub.googleapis.com/Top" + + "ic\022!projects/{project}/topics/{topic}\352Ax" + + "\n!cloudkms.googleapis.com/CryptoKey\022Spro" + + "jects/{project}/locations/{location}/key" + + "Rings/{key_ring}/cryptoKeys/{crypto_key}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -440,7 +447,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_functions_v2_Function_descriptor, new java.lang.String[] { "Name", - "Environment", "Description", "BuildConfig", "ServiceConfig", @@ -449,8 +455,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Labels", "StateMessages", - "KmsKeyName", + "Environment", "Url", + "KmsKeyName", }); internal_static_google_cloud_functions_v2_Function_LabelsEntry_descriptor = internal_static_google_cloud_functions_v2_Function_descriptor.getNestedTypes().get(0); @@ -733,8 +740,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestResource", "Stages", }); - internal_static_google_cloud_functions_v2_Stage_descriptor = + internal_static_google_cloud_functions_v2_LocationMetadata_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2_LocationMetadata_descriptor, + new java.lang.String[] { + "Environments", + }); + internal_static_google_cloud_functions_v2_Stage_descriptor = + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_functions_v2_Stage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_functions_v2_Stage_descriptor, diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java index 97ad32cbf1f7..1c2fc80944fc 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_GenerateDownloadUrlRequest_descriptor; @@ -365,39 +360,6 @@ private void buildPartial0(com.google.cloud.functions.v2.GenerateDownloadUrlRequ } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.GenerateDownloadUrlRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java index b9a852f0b8e3..2e132725369e 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateDownloadUrlResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_GenerateDownloadUrlResponse_descriptor; @@ -361,39 +356,6 @@ private void buildPartial0(com.google.cloud.functions.v2.GenerateDownloadUrlResp } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.GenerateDownloadUrlResponse) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java index 4859616dfa84..ab7338e101fa 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_GenerateUploadUrlRequest_descriptor; @@ -133,14 +128,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Resource name of a KMS crypto key (managed by the user) used to
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function source code objects in intermediate Cloud Storage
    * buckets. When you generate an upload url and upload your source code, it
    * gets copied to an intermediate Cloud Storage bucket. The source code is
    * then copied to a versioned directory in the sources bucket in the consumer
    * project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -168,14 +165,16 @@ public java.lang.String getKmsKeyName() {
    *
    *
    * 
-   * Resource name of a KMS crypto key (managed by the user) used to
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function source code objects in intermediate Cloud Storage
    * buckets. When you generate an upload url and upload your source code, it
    * gets copied to an intermediate Cloud Storage bucket. The source code is
    * then copied to a versioned directory in the sources bucket in the consumer
    * project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -454,39 +453,6 @@ private void buildPartial0(com.google.cloud.functions.v2.GenerateUploadUrlReques
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2.GenerateUploadUrlRequest) {
@@ -693,14 +659,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Resource name of a KMS crypto key (managed by the user) used to
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function source code objects in intermediate Cloud Storage
      * buckets. When you generate an upload url and upload your source code, it
      * gets copied to an intermediate Cloud Storage bucket. The source code is
      * then copied to a versioned directory in the sources bucket in the consumer
      * project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -727,14 +695,16 @@ public java.lang.String getKmsKeyName() {
      *
      *
      * 
-     * Resource name of a KMS crypto key (managed by the user) used to
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function source code objects in intermediate Cloud Storage
      * buckets. When you generate an upload url and upload your source code, it
      * gets copied to an intermediate Cloud Storage bucket. The source code is
      * then copied to a versioned directory in the sources bucket in the consumer
      * project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -761,14 +731,16 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      *
      *
      * 
-     * Resource name of a KMS crypto key (managed by the user) used to
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function source code objects in intermediate Cloud Storage
      * buckets. When you generate an upload url and upload your source code, it
      * gets copied to an intermediate Cloud Storage bucket. The source code is
      * then copied to a versioned directory in the sources bucket in the consumer
      * project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -794,14 +766,16 @@ public Builder setKmsKeyName(java.lang.String value) {
      *
      *
      * 
-     * Resource name of a KMS crypto key (managed by the user) used to
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function source code objects in intermediate Cloud Storage
      * buckets. When you generate an upload url and upload your source code, it
      * gets copied to an intermediate Cloud Storage bucket. The source code is
      * then copied to a versioned directory in the sources bucket in the consumer
      * project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -823,14 +797,16 @@ public Builder clearKmsKeyName() {
      *
      *
      * 
-     * Resource name of a KMS crypto key (managed by the user) used to
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
      * encrypt/decrypt function source code objects in intermediate Cloud Storage
      * buckets. When you generate an upload url and upload your source code, it
      * gets copied to an intermediate Cloud Storage bucket. The source code is
      * then copied to a versioned directory in the sources bucket in the consumer
      * project during the function deployment.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
      * The Google Cloud Functions service account
      * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
      * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java
index 7f2ccf0f8701..b16aeabc36d7 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlRequestOrBuilder.java
@@ -58,14 +58,16 @@ public interface GenerateUploadUrlRequestOrBuilder
    *
    *
    * 
-   * Resource name of a KMS crypto key (managed by the user) used to
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function source code objects in intermediate Cloud Storage
    * buckets. When you generate an upload url and upload your source code, it
    * gets copied to an intermediate Cloud Storage bucket. The source code is
    * then copied to a versioned directory in the sources bucket in the consumer
    * project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
@@ -82,14 +84,16 @@ public interface GenerateUploadUrlRequestOrBuilder
    *
    *
    * 
-   * Resource name of a KMS crypto key (managed by the user) used to
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
    * encrypt/decrypt function source code objects in intermediate Cloud Storage
    * buckets. When you generate an upload url and upload your source code, it
    * gets copied to an intermediate Cloud Storage bucket. The source code is
    * then copied to a versioned directory in the sources bucket in the consumer
    * project during the function deployment.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
    * The Google Cloud Functions service account
    * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
    * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java
index 2477627ab0ab..334e89e8ae2e 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponse.java
@@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateUploadUrlResponse();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2.FunctionsProto
         .internal_static_google_cloud_functions_v2_GenerateUploadUrlResponse_descriptor;
@@ -129,9 +124,11 @@ public com.google.protobuf.ByteString getUploadUrlBytes() {
    *
    * 
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -149,9 +146,11 @@ public boolean hasStorageSource() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -171,9 +170,11 @@ public com.google.cloud.functions.v2.StorageSource getStorageSource() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -451,39 +452,6 @@ private void buildPartial0(com.google.cloud.functions.v2.GenerateUploadUrlRespon } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.GenerateUploadUrlResponse) { @@ -689,9 +657,11 @@ public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -708,9 +678,11 @@ public boolean hasStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -733,9 +705,11 @@ public com.google.cloud.functions.v2.StorageSource getStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -760,9 +734,11 @@ public Builder setStorageSource(com.google.cloud.functions.v2.StorageSource valu * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -785,9 +761,11 @@ public Builder setStorageSource( * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -815,9 +793,11 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2.StorageSource va * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -839,9 +819,11 @@ public Builder clearStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -858,9 +840,11 @@ public com.google.cloud.functions.v2.StorageSource.Builder getStorageSourceBuild * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -881,9 +865,11 @@ public com.google.cloud.functions.v2.StorageSourceOrBuilder getStorageSourceOrBu * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java index 13799a858f0f..52d0bac3cb76 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GenerateUploadUrlResponseOrBuilder.java @@ -57,9 +57,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -74,9 +76,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -91,9 +95,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java index 61ae1c9d32b7..dcf23a511a0a 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/GetFunctionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_GetFunctionRequest_descriptor; @@ -362,39 +357,6 @@ private void buildPartial0(com.google.cloud.functions.v2.GetFunctionRequest resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.GetFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java index a088473f6c46..9325dc639f0d 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsRequest.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListFunctionsRequest_descriptor; @@ -613,39 +608,6 @@ private void buildPartial0(com.google.cloud.functions.v2.ListFunctionsRequest re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.ListFunctionsRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java index 1c82074f4599..4209866ff78d 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListFunctionsResponse.java @@ -40,7 +40,7 @@ private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListFunctionsResponse_descriptor; @@ -196,7 +191,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList unreachable_; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -493,8 +489,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -541,11 +536,6 @@ private void buildPartialRepeatedFields( } else { result.functions_ = functionsBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; } private void buildPartial0(com.google.cloud.functions.v2.ListFunctionsResponse result) { @@ -553,39 +543,10 @@ private void buildPartial0(com.google.cloud.functions.v2.ListFunctionsResponse r if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } } @java.lang.Override @@ -636,7 +597,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2.ListFunctionsResponse oth if (!other.unreachable_.isEmpty()) { if (unreachable_.isEmpty()) { unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureUnreachableIsMutable(); unreachable_.addAll(other.unreachable_); @@ -1174,14 +1135,14 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** * @@ -1196,7 +1157,8 @@ private void ensureUnreachableIsMutable() { * @return A list containing the unreachable. */ public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); + unreachable_.makeImmutable(); + return unreachable_; } /** * @@ -1265,6 +1227,7 @@ public Builder setUnreachable(int index, java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1287,6 +1250,7 @@ public Builder addUnreachable(java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1306,6 +1270,7 @@ public Builder addUnreachable(java.lang.String value) { public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1322,8 +1287,9 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } @@ -1347,6 +1313,7 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java index acde40edb909..7d656efaa0df 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesRequest_descriptor; @@ -431,39 +426,6 @@ private void buildPartial0(com.google.cloud.functions.v2.ListRuntimesRequest res } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.ListRuntimesRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java index 256c513f3680..9787722dbec4 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ListRuntimesResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; @@ -494,7 +489,7 @@ private Runtime() { name_ = ""; displayName_ = ""; stage_ = 0; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; } @@ -504,11 +499,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Runtime(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor; @@ -666,7 +656,8 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage( public static final int WARNINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList warnings_; + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -1017,8 +1008,7 @@ public Builder clear() { name_ = ""; displayName_ = ""; stage_ = 0; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; return this; } @@ -1048,7 +1038,6 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime build() { public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime buildPartial() { com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result = new com.google.cloud.functions.v2.ListRuntimesResponse.Runtime(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1056,15 +1045,6 @@ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime buildPartial() return result; } - private void buildPartialRepeatedFields( - com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result) { - if (((bitField0_ & 0x00000008) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.warnings_ = warnings_; - } - private void buildPartial0( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result) { int from_bitField0_ = bitField0_; @@ -1077,46 +1057,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.stage_ = stage_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + warnings_.makeImmutable(); + result.warnings_ = warnings_; + } if (((from_bitField0_ & 0x00000010) != 0)) { result.environment_ = environment_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) { @@ -1147,7 +1096,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse.Runt if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureWarningsIsMutable(); warnings_.addAll(other.warnings_); @@ -1538,14 +1487,14 @@ public Builder clearStage() { return this; } - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!warnings_.isModifiable()) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); - bitField0_ |= 0x00000008; } + bitField0_ |= 0x00000008; } /** * @@ -1559,7 +1508,8 @@ private void ensureWarningsIsMutable() { * @return A list containing the warnings. */ public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_.getUnmodifiableView(); + warnings_.makeImmutable(); + return warnings_; } /** * @@ -1624,6 +1574,7 @@ public Builder setWarnings(int index, java.lang.String value) { } ensureWarningsIsMutable(); warnings_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1645,6 +1596,7 @@ public Builder addWarnings(java.lang.String value) { } ensureWarningsIsMutable(); warnings_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1663,6 +1615,7 @@ public Builder addWarnings(java.lang.String value) { public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1678,8 +1631,9 @@ public Builder addAllWarnings(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearWarnings() { - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -1702,6 +1656,7 @@ public Builder addWarningsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2194,39 +2149,6 @@ private void buildPartial0(com.google.cloud.functions.v2.ListRuntimesResponse re int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.ListRuntimesResponse) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadata.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadata.java new file mode 100644 index 000000000000..128406c4c559 --- /dev/null +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadata.java @@ -0,0 +1,796 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +/** + * + * + *
+ * Extra GCF specific location information.
+ * 
+ * + * Protobuf type {@code google.cloud.functions.v2.LocationMetadata} + */ +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.LocationMetadata) + LocationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationMetadata() { + environments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LocationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.LocationMetadata.class, + com.google.cloud.functions.v2.LocationMetadata.Builder.class); + } + + public static final int ENVIRONMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List environments_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.functions.v2.Environment> + environments_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.functions.v2.Environment>() { + public com.google.cloud.functions.v2.Environment convert(java.lang.Integer from) { + com.google.cloud.functions.v2.Environment result = + com.google.cloud.functions.v2.Environment.forNumber(from); + return result == null + ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return A list containing the environments. + */ + @java.lang.Override + public java.util.List getEnvironmentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.functions.v2.Environment>( + environments_, environments_converter_); + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return The count of environments. + */ + @java.lang.Override + public int getEnvironmentsCount() { + return environments_.size(); + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index of the element to return. + * @return The environments at the given index. + */ + @java.lang.Override + public com.google.cloud.functions.v2.Environment getEnvironments(int index) { + return environments_converter_.convert(environments_.get(index)); + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return A list containing the enum numeric values on the wire for environments. + */ + @java.lang.Override + public java.util.List getEnvironmentsValueList() { + return environments_; + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of environments at the given index. + */ + @java.lang.Override + public int getEnvironmentsValue(int index) { + return environments_.get(index); + } + + private int environmentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEnvironmentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(environmentsMemoizedSerializedSize); + } + for (int i = 0; i < environments_.size(); i++) { + output.writeEnumNoTag(environments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < environments_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(environments_.get(i)); + } + size += dataSize; + if (!getEnvironmentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + environmentsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.functions.v2.LocationMetadata)) { + return super.equals(obj); + } + com.google.cloud.functions.v2.LocationMetadata other = + (com.google.cloud.functions.v2.LocationMetadata) obj; + + if (!environments_.equals(other.environments_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnvironmentsCount() > 0) { + hash = (37 * hash) + ENVIRONMENTS_FIELD_NUMBER; + hash = (53 * hash) + environments_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.functions.v2.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.functions.v2.LocationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Extra GCF specific location information.
+   * 
+ * + * Protobuf type {@code google.cloud.functions.v2.LocationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.LocationMetadata) + com.google.cloud.functions.v2.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2.LocationMetadata.class, + com.google.cloud.functions.v2.LocationMetadata.Builder.class); + } + + // Construct using com.google.cloud.functions.v2.LocationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2.FunctionsProto + .internal_static_google_cloud_functions_v2_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2.LocationMetadata getDefaultInstanceForType() { + return com.google.cloud.functions.v2.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2.LocationMetadata build() { + com.google.cloud.functions.v2.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2.LocationMetadata buildPartial() { + com.google.cloud.functions.v2.LocationMetadata result = + new com.google.cloud.functions.v2.LocationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.functions.v2.LocationMetadata result) { + if (((bitField0_ & 0x00000001) != 0)) { + environments_ = java.util.Collections.unmodifiableList(environments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.environments_ = environments_; + } + + private void buildPartial0(com.google.cloud.functions.v2.LocationMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.functions.v2.LocationMetadata) { + return mergeFrom((com.google.cloud.functions.v2.LocationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2.LocationMetadata other) { + if (other == com.google.cloud.functions.v2.LocationMetadata.getDefaultInstance()) return this; + if (!other.environments_.isEmpty()) { + if (environments_.isEmpty()) { + environments_ = other.environments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnvironmentsIsMutable(); + environments_.addAll(other.environments_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int tmpRaw = input.readEnum(); + ensureEnvironmentsIsMutable(); + environments_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnvironmentsIsMutable(); + environments_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List environments_ = java.util.Collections.emptyList(); + + private void ensureEnvironmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + environments_ = new java.util.ArrayList(environments_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return A list containing the environments. + */ + public java.util.List getEnvironmentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.functions.v2.Environment>( + environments_, environments_converter_); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return The count of environments. + */ + public int getEnvironmentsCount() { + return environments_.size(); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index of the element to return. + * @return The environments at the given index. + */ + public com.google.cloud.functions.v2.Environment getEnvironments(int index) { + return environments_converter_.convert(environments_.get(index)); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index to set the value at. + * @param value The environments to set. + * @return This builder for chaining. + */ + public Builder setEnvironments(int index, com.google.cloud.functions.v2.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentsIsMutable(); + environments_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param value The environments to add. + * @return This builder for chaining. + */ + public Builder addEnvironments(com.google.cloud.functions.v2.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentsIsMutable(); + environments_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param values The environments to add. + * @return This builder for chaining. + */ + public Builder addAllEnvironments( + java.lang.Iterable values) { + ensureEnvironmentsIsMutable(); + for (com.google.cloud.functions.v2.Environment value : values) { + environments_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnvironments() { + environments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return A list containing the enum numeric values on the wire for environments. + */ + public java.util.List getEnvironmentsValueList() { + return java.util.Collections.unmodifiableList(environments_); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of environments at the given index. + */ + public int getEnvironmentsValue(int index) { + return environments_.get(index); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for environments to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentsValue(int index, int value) { + ensureEnvironmentsIsMutable(); + environments_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param value The enum numeric value on the wire for environments to add. + * @return This builder for chaining. + */ + public Builder addEnvironmentsValue(int value) { + ensureEnvironmentsIsMutable(); + environments_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param values The enum numeric values on the wire for environments to add. + * @return This builder for chaining. + */ + public Builder addAllEnvironmentsValue(java.lang.Iterable values) { + ensureEnvironmentsIsMutable(); + for (int value : values) { + environments_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.LocationMetadata) + private static final com.google.cloud.functions.v2.LocationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2.LocationMetadata(); + } + + public static com.google.cloud.functions.v2.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.functions.v2.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadataOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadataOrBuilder.java new file mode 100644 index 000000000000..cafa7fee2624 --- /dev/null +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationMetadataOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2/functions.proto + +package com.google.cloud.functions.v2; + +public interface LocationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return A list containing the environments. + */ + java.util.List getEnvironmentsList(); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return The count of environments. + */ + int getEnvironmentsCount(); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index of the element to return. + * @return The environments at the given index. + */ + com.google.cloud.functions.v2.Environment getEnvironments(int index); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @return A list containing the enum numeric values on the wire for environments. + */ + java.util.List getEnvironmentsValueList(); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2.Environment environments = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of environments at the given index. + */ + int getEnvironmentsValue(int index); +} diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java index 0af0c8d646e1..b75a05c6a607 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/OperationMetadata.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_OperationMetadata_descriptor; @@ -901,39 +896,6 @@ private void buildPartial0(com.google.cloud.functions.v2.OperationMetadata resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.OperationMetadata) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java index 01f9ccf0f92e..a658f09844a7 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSource.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepoSource(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_RepoSource_descriptor; @@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int revisionCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object revision_; public enum RevisionCase @@ -125,6 +122,7 @@ public RevisionCase getRevisionCase() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -141,6 +139,7 @@ public boolean hasBranchName() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -170,6 +169,7 @@ public java.lang.String getBranchName() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -201,6 +201,7 @@ public com.google.protobuf.ByteString getBranchNameBytes() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -217,6 +218,7 @@ public boolean hasTagName() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -246,6 +248,7 @@ public java.lang.String getTagName() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -454,6 +457,7 @@ public com.google.protobuf.ByteString getRepoNameBytes() { * *
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -480,6 +484,7 @@ public java.lang.String getDir() {
    *
    * 
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -855,39 +860,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v2.RepoSource result)
       result.revision_ = this.revision_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2.RepoSource) {
@@ -1054,6 +1026,7 @@ public Builder clearRevision() {
      *
      * 
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1071,6 +1044,7 @@ public boolean hasBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1101,6 +1075,7 @@ public java.lang.String getBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1131,6 +1106,7 @@ public com.google.protobuf.ByteString getBranchNameBytes() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1154,6 +1130,7 @@ public Builder setBranchName(java.lang.String value) { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1175,6 +1152,7 @@ public Builder clearBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1200,6 +1178,7 @@ public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1217,6 +1196,7 @@ public boolean hasTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1247,6 +1227,7 @@ public java.lang.String getTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1277,6 +1258,7 @@ public com.google.protobuf.ByteString getTagNameBytes() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1300,6 +1282,7 @@ public Builder setTagName(java.lang.String value) { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1321,6 +1304,7 @@ public Builder clearTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1698,6 +1682,7 @@ public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { * *
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1723,6 +1708,7 @@ public java.lang.String getDir() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1748,6 +1734,7 @@ public com.google.protobuf.ByteString getDirBytes() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1772,6 +1759,7 @@ public Builder setDir(java.lang.String value) {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1792,6 +1780,7 @@ public Builder clearDir() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java
index efda836b1d57..07ffa1824258 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/RepoSourceOrBuilder.java
@@ -28,6 +28,7 @@ public interface RepoSourceOrBuilder
    *
    * 
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -42,6 +43,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -56,6 +58,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -71,6 +74,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -85,6 +89,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -99,6 +104,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -203,6 +209,7 @@ public interface RepoSourceOrBuilder * *
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -218,6 +225,7 @@ public interface RepoSourceOrBuilder
    *
    * 
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -243,5 +251,5 @@ public interface RepoSourceOrBuilder
    */
   boolean getInvertRegex();
 
-  public com.google.cloud.functions.v2.RepoSource.RevisionCase getRevisionCase();
+  com.google.cloud.functions.v2.RepoSource.RevisionCase getRevisionCase();
 }
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java
index e7f1c48eb817..c45aef6f90e5 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretEnvVar.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretEnvVar();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2.FunctionsProto
         .internal_static_google_cloud_functions_v2_SecretEnvVar_descriptor;
@@ -567,39 +562,6 @@ private void buildPartial0(com.google.cloud.functions.v2.SecretEnvVar result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2.SecretEnvVar) {
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java
index 630b723cb3e4..61055e4b0882 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SecretVolume.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretVolume();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2.FunctionsProto
         .internal_static_google_cloud_functions_v2_SecretVolume_descriptor;
@@ -167,11 +162,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SecretVersion();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.cloud.functions.v2.FunctionsProto
           .internal_static_google_cloud_functions_v2_SecretVolume_SecretVersion_descriptor;
@@ -555,41 +545,6 @@ private void buildPartial0(com.google.cloud.functions.v2.SecretVolume.SecretVers
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.functions.v2.SecretVolume.SecretVersion) {
@@ -1518,39 +1473,6 @@ private void buildPartial0(com.google.cloud.functions.v2.SecretVolume result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2.SecretVolume) {
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
index 211158b43716..bcd3a3ab1bdc 100644
--- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
+++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfig.java
@@ -24,7 +24,6 @@
  * 
  * Describes the Service being deployed.
  * Currently Supported : Cloud Run (fully managed).
- * Next tag: 23
  * 
* * Protobuf type {@code google.cloud.functions.v2.ServiceConfig} @@ -60,11 +59,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServiceConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ServiceConfig_descriptor; @@ -96,6 +90,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * Available egress settings.
+   *
    * This controls what traffic is diverted through the VPC Access Connector
    * resource. By default PRIVATE_RANGES_ONLY will be used.
    * 
@@ -260,7 +255,9 @@ private VpcConnectorEgressSettings(int value) { * *
    * Available ingress settings.
+   *
    * This controls what traffic can reach the function.
+   *
    * If unspecified, ALLOW_ALL will be used.
    * 
* @@ -443,8 +440,10 @@ private IngressSettings(int value) { * *
    * Available security level settings.
+   *
    * This enforces security protocol on function URL.
-   * Security level is only ocnfigurable for 1st Gen functions, If unspecified,
+   *
+   * Security level is only configurable for 1st Gen functions, If unspecified,
    * SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY.
    * 
* @@ -754,7 +753,7 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() { * * *
-   * The number of CPUs used in a single container instance.
+   * [Preview] The number of CPUs used in a single container instance.
    * Default value is calculated from available memory.
    * Supports the same values as Cloud Run, see
    * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -781,7 +780,7 @@ public java.lang.String getAvailableCpu() {
    *
    *
    * 
-   * The number of CPUs used in a single container instance.
+   * [Preview] The number of CPUs used in a single container instance.
    * Default value is calculated from available memory.
    * Supports the same values as Cloud Run, see
    * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -919,11 +918,13 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) {
    * 
    * The limit on the maximum number of function instances that may coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions may, for a
    * short period of time, create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you may want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -946,6 +947,7 @@ public int getMaxInstanceCount() {
    * 
    * The limit on the minimum number of function instances that may coexist at a
    * given time.
+   *
    * Function instances are kept in idle state for a short period after they
    * finished executing the request to reduce cold start time for subsequent
    * requests. Setting a minimum instance count will ensure that the given
@@ -1432,8 +1434,8 @@ public com.google.protobuf.ByteString getRevisionBytes() {
    *
    *
    * 
-   * Sets the maximum number of concurrent requests that each instance can
-   * receive. Defaults to 1.
+   * [Preview] Sets the maximum number of concurrent requests that each instance
+   * can receive. Defaults to 1.
    * 
* * int32 max_instance_request_concurrency = 20; @@ -1843,7 +1845,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Describes the Service being deployed.
    * Currently Supported : Cloud Run (fully managed).
-   * Next tag: 23
    * 
* * Protobuf type {@code google.cloud.functions.v2.ServiceConfig} @@ -2038,39 +2039,6 @@ private void buildPartial0(com.google.cloud.functions.v2.ServiceConfig result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.ServiceConfig) { @@ -2693,7 +2661,7 @@ public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { * * *
-     * The number of CPUs used in a single container instance.
+     * [Preview] The number of CPUs used in a single container instance.
      * Default value is calculated from available memory.
      * Supports the same values as Cloud Run, see
      * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -2719,7 +2687,7 @@ public java.lang.String getAvailableCpu() {
      *
      *
      * 
-     * The number of CPUs used in a single container instance.
+     * [Preview] The number of CPUs used in a single container instance.
      * Default value is calculated from available memory.
      * Supports the same values as Cloud Run, see
      * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -2745,7 +2713,7 @@ public com.google.protobuf.ByteString getAvailableCpuBytes() {
      *
      *
      * 
-     * The number of CPUs used in a single container instance.
+     * [Preview] The number of CPUs used in a single container instance.
      * Default value is calculated from available memory.
      * Supports the same values as Cloud Run, see
      * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -2770,7 +2738,7 @@ public Builder setAvailableCpu(java.lang.String value) {
      *
      *
      * 
-     * The number of CPUs used in a single container instance.
+     * [Preview] The number of CPUs used in a single container instance.
      * Default value is calculated from available memory.
      * Supports the same values as Cloud Run, see
      * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -2791,7 +2759,7 @@ public Builder clearAvailableCpu() {
      *
      *
      * 
-     * The number of CPUs used in a single container instance.
+     * [Preview] The number of CPUs used in a single container instance.
      * Default value is calculated from available memory.
      * Supports the same values as Cloud Run, see
      * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -2991,11 +2959,13 @@ public Builder putAllEnvironmentVariables(
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -3015,11 +2985,13 @@ public int getMaxInstanceCount() {
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -3043,11 +3015,13 @@ public Builder setMaxInstanceCount(int value) {
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -3071,6 +3045,7 @@ public Builder clearMaxInstanceCount() {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -3093,6 +3068,7 @@ public int getMinInstanceCount() {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -3119,6 +3095,7 @@ public Builder setMinInstanceCount(int value) {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -4585,8 +4562,8 @@ public Builder setRevisionBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Sets the maximum number of concurrent requests that each instance can
-     * receive. Defaults to 1.
+     * [Preview] Sets the maximum number of concurrent requests that each instance
+     * can receive. Defaults to 1.
      * 
* * int32 max_instance_request_concurrency = 20; @@ -4601,8 +4578,8 @@ public int getMaxInstanceRequestConcurrency() { * * *
-     * Sets the maximum number of concurrent requests that each instance can
-     * receive. Defaults to 1.
+     * [Preview] Sets the maximum number of concurrent requests that each instance
+     * can receive. Defaults to 1.
      * 
* * int32 max_instance_request_concurrency = 20; @@ -4621,8 +4598,8 @@ public Builder setMaxInstanceRequestConcurrency(int value) { * * *
-     * Sets the maximum number of concurrent requests that each instance can
-     * receive. Defaults to 1.
+     * [Preview] Sets the maximum number of concurrent requests that each instance
+     * can receive. Defaults to 1.
      * 
* * int32 max_instance_request_concurrency = 20; diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java index e24e553429aa..959dd06f5678 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/ServiceConfigOrBuilder.java @@ -110,7 +110,7 @@ public interface ServiceConfigOrBuilder * * *
-   * The number of CPUs used in a single container instance.
+   * [Preview] The number of CPUs used in a single container instance.
    * Default value is calculated from available memory.
    * Supports the same values as Cloud Run, see
    * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -126,7 +126,7 @@ public interface ServiceConfigOrBuilder
    *
    *
    * 
-   * The number of CPUs used in a single container instance.
+   * [Preview] The number of CPUs used in a single container instance.
    * Default value is calculated from available memory.
    * Supports the same values as Cloud Run, see
    * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
@@ -203,11 +203,13 @@ java.lang.String getEnvironmentVariablesOrDefault(
    * 
    * The limit on the maximum number of function instances that may coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions may, for a
    * short period of time, create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you may want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -225,6 +227,7 @@ java.lang.String getEnvironmentVariablesOrDefault(
    * 
    * The limit on the minimum number of function instances that may coexist at a
    * given time.
+   *
    * Function instances are kept in idle state for a short period after they
    * finished executing the request to reduce cold start time for subsequent
    * requests. Setting a minimum instance count will ensure that the given
@@ -533,8 +536,8 @@ com.google.cloud.functions.v2.SecretEnvVarOrBuilder getSecretEnvironmentVariable
    *
    *
    * 
-   * Sets the maximum number of concurrent requests that each instance can
-   * receive. Defaults to 1.
+   * [Preview] Sets the maximum number of concurrent requests that each instance
+   * can receive. Defaults to 1.
    * 
* * int32 max_instance_request_concurrency = 20; diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java index 314ea5b3153b..3b788579a547 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Source.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Source(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_Source_descriptor; @@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int sourceCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object source_; public enum SourceCase @@ -500,39 +497,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v2.Source result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.Source) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java index c379183cff80..56d59e5749e6 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceOrBuilder.java @@ -96,5 +96,5 @@ public interface SourceOrBuilder */ com.google.cloud.functions.v2.RepoSourceOrBuilder getRepoSourceOrBuilder(); - public com.google.cloud.functions.v2.Source.SourceCase getSourceCase(); + com.google.cloud.functions.v2.Source.SourceCase getSourceCase(); } diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java index c060b21921aa..d902d1cac83a 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/SourceProvenance.java @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceProvenance(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_SourceProvenance_descriptor; @@ -451,39 +446,6 @@ private void buildPartial0(com.google.cloud.functions.v2.SourceProvenance result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.SourceProvenance) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java index 5b2d3c77038e..c1a9c2895d38 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/Stage.java @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_Stage_descriptor; @@ -1110,39 +1105,6 @@ private void buildPartial0(com.google.cloud.functions.v2.Stage result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.Stage) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java index 30411d5883ed..f90e688854b8 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StateMessage.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateMessage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_StateMessage_descriptor; @@ -655,39 +650,6 @@ private void buildPartial0(com.google.cloud.functions.v2.StateMessage result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.StateMessage) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java index a3fbd24c734a..c17ec867f9bd 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSource.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StorageSource(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_StorageSource_descriptor; @@ -132,6 +127,7 @@ public com.google.protobuf.ByteString getBucketBytes() { * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -157,6 +153,7 @@ public java.lang.String getObject() { * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -463,39 +460,6 @@ private void buildPartial0(com.google.cloud.functions.v2.StorageSource result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.StorageSource) { @@ -706,6 +670,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -730,6 +695,7 @@ public java.lang.String getObject() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -754,6 +720,7 @@ public com.google.protobuf.ByteString getObjectBytes() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -777,6 +744,7 @@ public Builder setObject(java.lang.String value) { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -796,6 +764,7 @@ public Builder clearObject() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java index f917b451f4a0..da4de72a8946 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/StorageSourceOrBuilder.java @@ -57,6 +57,7 @@ public interface StorageSourceOrBuilder * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -71,6 +72,7 @@ public interface StorageSourceOrBuilder * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java index eb8171ab3884..371abdddb54e 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/UpdateFunctionRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_UpdateFunctionRequest_descriptor; @@ -444,39 +439,6 @@ private void buildPartial0(com.google.cloud.functions.v2.UpdateFunctionRequest r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2.UpdateFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto b/java-functions/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto index 8b29cd4976be..ae0cdc1ef22f 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto +++ b/java-functions/proto-google-cloud-functions-v2/src/main/proto/google/cloud/functions/v2/functions.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -241,9 +241,6 @@ message Function { // globally and match pattern `projects/*/locations/*/functions/*` string name = 1; - // Describe whether the function is 1st Gen or 2nd Gen. - Environment environment = 10; - // User-provided description of a function. string description = 2; @@ -273,7 +270,13 @@ message Function { repeated StateMessage state_messages = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Resource name of a KMS crypto key (managed by the user) used to + // Describe whether the function is 1st Gen or 2nd Gen. + Environment environment = 10; + + // Output only. The deployed url for the function. + string url = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // [Preview] Resource name of a KMS crypto key (managed by the user) used to // encrypt/decrypt function resources. // // It must match the pattern @@ -281,9 +284,6 @@ message Function { string kms_key_name = 25 [(google.api.resource_reference) = { type: "cloudkms.googleapis.com/CryptoKey" }]; - - // Output only. The deployed url for the function. - string url = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Informational messages about the state of the Cloud Function or Operation. @@ -467,18 +467,18 @@ message BuildConfig { // User-provided build-time environment variables for the function map environment_variables = 6; - // Optional. Docker Registry to use for this deployment. This configuration is - // only applicable to 1st Gen functions, 2nd Gen functions can only use - // Artifact Registry. + // Docker Registry to use for this deployment. This configuration is only + // applicable to 1st Gen functions, 2nd Gen functions can only use Artifact + // Registry. // // If `docker_repository` field is specified, this field will be automatically // set as `ARTIFACT_REGISTRY`. // If unspecified, it currently defaults to `CONTAINER_REGISTRY`. // This field may be overridden by the backend for eligible deployments. - DockerRegistry docker_registry = 10 [(google.api.field_behavior) = OPTIONAL]; + DockerRegistry docker_registry = 10; - // User managed repository created in Artifact Registry optionally with a - // customer managed encryption key. This is the repository to which the + // User managed repository created in Artifact Registry optionally + // with a customer managed encryption key. This is the repository to which the // function docker image will be pushed after it is built by Cloud Build. // If unspecified, GCF will create and use a repository named 'gcf-artifacts' // for every deployed region. @@ -496,7 +496,6 @@ message BuildConfig { // Describes the Service being deployed. // Currently Supported : Cloud Run (fully managed). -// Next tag: 23 message ServiceConfig { // Available egress settings. // @@ -537,7 +536,7 @@ message ServiceConfig { // // This enforces security protocol on function URL. // - // Security level is only ocnfigurable for 1st Gen functions, If unspecified, + // Security level is only configurable for 1st Gen functions, If unspecified, // SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY. enum SecurityLevel { // Unspecified. @@ -575,7 +574,7 @@ message ServiceConfig { // a full description. string available_memory = 13; - // The number of CPUs used in a single container instance. + // [Preview] The number of CPUs used in a single container instance. // Default value is calculated from available memory. // Supports the same values as Cloud Run, see // https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements @@ -647,8 +646,8 @@ message ServiceConfig { // Output only. The name of service revision. string revision = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Sets the maximum number of concurrent requests that each instance can - // receive. Defaults to 1. + // [Preview] Sets the maximum number of concurrent requests that each instance + // can receive. Defaults to 1. int32 max_instance_request_concurrency = 20; // Security level configure whether the function only accepts https. @@ -925,7 +924,7 @@ message GenerateUploadUrlRequest { } ]; - // Resource name of a KMS crypto key (managed by the user) used to + // [Preview] Resource name of a KMS crypto key (managed by the user) used to // encrypt/decrypt function source code objects in intermediate Cloud Storage // buckets. When you generate an upload url and upload your source code, it // gets copied to an intermediate Cloud Storage bucket. The source code is @@ -1081,6 +1080,12 @@ message OperationMetadata { repeated Stage stages = 9; } +// Extra GCF specific location information. +message LocationMetadata { + // The Cloud Function environments this location supports. + repeated Environment environments = 1; +} + // Each Stage of the deployment process message Stage { // Possible names for a Stage diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java index a9e6ff9af5fe..d1a74b9d34d6 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfig.java @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BuildConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_BuildConfig_descriptor; @@ -381,6 +376,7 @@ public com.google.cloud.functions.v2alpha.SourceProvenance getSourceProvenance() * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -414,6 +410,7 @@ public java.lang.String getWorkerPool() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -557,8 +554,10 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. @@ -591,8 +590,10 @@ public java.lang.String getDockerRepository() { * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. @@ -1001,39 +1002,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.BuildConfig result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.BuildConfig) { @@ -1958,6 +1926,7 @@ public Builder clearSourceProvenance() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -1990,6 +1959,7 @@ public java.lang.String getWorkerPool() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2022,6 +1992,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2053,6 +2024,7 @@ public Builder setWorkerPool(java.lang.String value) { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2080,6 +2052,7 @@ public Builder clearWorkerPool() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2283,8 +2256,10 @@ public Builder putAllEnvironmentVariables( * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. @@ -2316,8 +2291,10 @@ public java.lang.String getDockerRepository() { * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. @@ -2349,8 +2326,10 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() { * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. @@ -2381,8 +2360,10 @@ public Builder setDockerRepository(java.lang.String value) { * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. @@ -2409,8 +2390,10 @@ public Builder clearDockerRepository() { * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java index bc51cbe784ae..ad7fd4fc9773 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/BuildConfigOrBuilder.java @@ -208,6 +208,7 @@ public interface BuildConfigOrBuilder * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -230,6 +231,7 @@ public interface BuildConfigOrBuilder * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -310,8 +312,10 @@ java.lang.String getEnvironmentVariablesOrDefault( * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. @@ -333,8 +337,10 @@ java.lang.String getEnvironmentVariablesOrDefault( * function docker image will be pushed after it is built by Cloud Build. * If unspecified, GCF will create and use a repository named 'gcf-artifacts' * for every deployed region. + * * It must match the pattern * `projects/{project}/locations/{location}/repositories/{repository}`. + * * Cross-project repositories are not supported. * Cross-location repositories are not supported. * Repository format must be 'DOCKER'. diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java index a6a1f8c9fb39..683926d284d7 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_CreateFunctionRequest_descriptor; @@ -191,6 +186,7 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -217,6 +213,7 @@ public java.lang.String getFunctionId() { *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -514,39 +511,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.CreateFunctionRequ } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.CreateFunctionRequest) { @@ -966,6 +930,7 @@ public com.google.cloud.functions.v2alpha.FunctionOrBuilder getFunctionOrBuilder *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -991,6 +956,7 @@ public java.lang.String getFunctionId() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1016,6 +982,7 @@ public com.google.protobuf.ByteString getFunctionIdBytes() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1040,6 +1007,7 @@ public Builder setFunctionId(java.lang.String value) { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1060,6 +1028,7 @@ public Builder clearFunctionId() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java index 44bd88c492d8..78dd118fa750 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CreateFunctionRequestOrBuilder.java @@ -101,6 +101,7 @@ public interface CreateFunctionRequestOrBuilder *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -116,6 +117,7 @@ public interface CreateFunctionRequestOrBuilder *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java index aac2c9c774af..7332556eb355 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/DeleteFunctionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_DeleteFunctionRequest_descriptor; @@ -363,39 +358,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.DeleteFunctionRequ } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.DeleteFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java index ceea02643543..a7f6d7ae4ec2 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventFilter.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventFilter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_EventFilter_descriptor; @@ -494,39 +489,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.EventFilter result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.EventFilter) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java index 783d8e26c43b..7a968242e410 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTrigger.java @@ -55,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventTrigger(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_EventTrigger_descriptor; @@ -487,6 +482,7 @@ public com.google.cloud.functions.v2alpha.EventFilterOrBuilder getEventFiltersOr * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -517,6 +513,7 @@ public java.lang.String getPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -1055,39 +1052,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.EventTrigger resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.EventTrigger) { @@ -1983,6 +1947,7 @@ public com.google.cloud.functions.v2alpha.EventFilter.Builder addEventFiltersBui * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2012,6 +1977,7 @@ public java.lang.String getPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2041,6 +2007,7 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2069,6 +2036,7 @@ public Builder setPubsubTopic(java.lang.String value) { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2093,6 +2061,7 @@ public Builder clearPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java index b716b4ef5461..7d97337737a5 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/EventTriggerOrBuilder.java @@ -173,6 +173,7 @@ public interface EventTriggerOrBuilder * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -192,6 +193,7 @@ public interface EventTriggerOrBuilder * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java index 5c37f4ab1be4..d0fa553f2194 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Function.java @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Function(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_Function_descriptor; @@ -1324,39 +1319,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.Function result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.Function) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java index 2b77c46d19bd..bf7d8e2d90df 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionsProto.java @@ -168,7 +168,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/longrunning/operations.proto\032\031google" + "/protobuf/any.proto\032 google/protobuf/fie" + "ld_mask.proto\032\037google/protobuf/timestamp" - + ".proto\"\332\006\n\010Function\022\014\n\004name\030\001 \001(\t\022@\n\013env" + + ".proto\"\335\006\n\010Function\022\014\n\004name\030\001 \001(\t\022@\n\013env" + "ironment\030\n \001(\0162+.google.cloud.functions." + "v2alpha.Environment\022\023\n\013description\030\002 \001(\t" + "\022A\n\014build_config\030\003 \001(\0132+.google.cloud.fu" @@ -176,238 +176,239 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onfig\030\004 \001(\0132-.google.cloud.functions.v2a" + "lpha.ServiceConfig\022C\n\revent_trigger\030\005 \001(" + "\0132,.google.cloud.functions.v2alpha.Event" - + "Trigger\022B\n\005state\030\006 \001(\0162..google.cloud.fu" - + "nctions.v2alpha.Function.StateB\003\340A\003\0224\n\013u" - + "pdate_time\030\007 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022D\n\006labels\030\010 \003(\01324.google.cloud" - + ".functions.v2alpha.Function.LabelsEntry\022" - + "I\n\016state_messages\030\t \003(\0132,.google.cloud.f" - + "unctions.v2alpha.StateMessageB\003\340A\003\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\n\n\006FAILED\020\002\022\r\n\tDEPLOYING\020\003\022\014\n\010DELE" - + "TING\020\004\022\013\n\007UNKNOWN\020\005:~\352A{\n&cloudfunctions" - + ".googleapis.com/Function\022\n\013worker_pool\030\005 \001(\tB)\372A&\n$cloudbuild.go" - + "ogleapis.com/WorkerPool\022d\n\025environment_v" - + "ariables\030\006 \003(\0132E.google.cloud.functions." - + "v2alpha.BuildConfig.EnvironmentVariables" - + "Entry\022M\n\021docker_repository\030\007 \001(\tB2\340A\001\372A," - + "\n*artifactregistry.googleapis.com/Reposi" - + "tory\032;\n\031EnvironmentVariablesEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\331\010\n\rServiceCon" - + "fig\0223\n\007service\030\001 \001(\tB\"\340A\003\372A\034\n\032run.google" - + "apis.com/Service\022\027\n\017timeout_seconds\030\002 \001(" - + "\005\022\030\n\020available_memory\030\r \001(\t\022f\n\025environme" - + "nt_variables\030\004 \003(\0132G.google.cloud.functi" - + "ons.v2alpha.ServiceConfig.EnvironmentVar" - + "iablesEntry\022\032\n\022max_instance_count\030\005 \001(\005\022" - + "\032\n\022min_instance_count\030\014 \001(\005\022>\n\rvpc_conne" - + "ctor\030\006 \001(\tB\'\372A$\n\"vpcaccess.googleapis.co" - + "m/Connector\022o\n\035vpc_connector_egress_sett" - + "ings\030\007 \001(\0162H.google.cloud.functions.v2al" - + "pha.ServiceConfig.VpcConnectorEgressSett" - + "ings\022W\n\020ingress_settings\030\010 \001(\0162=.google." - + "cloud.functions.v2alpha.ServiceConfig.In" - + "gressSettings\022\020\n\003uri\030\t \001(\tB\003\340A\003\022\035\n\025servi" - + "ce_account_email\030\n \001(\t\022&\n\036all_traffic_on" - + "_latest_revision\030\020 \001(\010\022R\n\034secret_environ" - + "ment_variables\030\021 \003(\0132,.google.cloud.func" - + "tions.v2alpha.SecretEnvVar\022D\n\016secret_vol" - + "umes\030\023 \003(\0132,.google.cloud.functions.v2al" - + "pha.SecretVolume\022\025\n\010revision\030\022 \001(\tB\003\340A\003\032" - + ";\n\031EnvironmentVariablesEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConnectorEgre" - + "ssSettings\022-\n)VPC_CONNECTOR_EGRESS_SETTI" - + "NGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RANGES_ONLY" - + "\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressSettings\022 " - + "\n\034INGRESS_SETTINGS_UNSPECIFIED\020\000\022\r\n\tALLO" - + "W_ALL\020\001\022\027\n\023ALLOW_INTERNAL_ONLY\020\002\022\033\n\027ALLO" - + "W_INTERNAL_AND_GCLB\020\003\"P\n\014SecretEnvVar\022\013\n" - + "\003key\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\016\n\006secret" - + "\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\"\304\001\n\014SecretVolume" - + "\022\022\n\nmount_path\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t" - + "\022\016\n\006secret\030\003 \001(\t\022L\n\010versions\030\004 \003(\0132:.goo" - + "gle.cloud.functions.v2alpha.SecretVolume" - + ".SecretVersion\032.\n\rSecretVersion\022\017\n\007versi" - + "on\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\217\004\n\014EventTrigger\022" - + "8\n\007trigger\030\001 \001(\tB\'\340A\003\372A!\n\037eventarc.googl" - + "eapis.com/Trigger\022\026\n\016trigger_region\030\002 \001(" - + "\t\022\027\n\nevent_type\030\003 \001(\tB\003\340A\002\022B\n\revent_filt" - + "ers\030\004 \003(\0132+.google.cloud.functions.v2alp" - + "ha.EventFilter\0229\n\014pubsub_topic\030\005 \001(\tB#\340A" - + "\001\372A\035\n\033pubsub.googleapis.com/Topic\022\"\n\025ser" - + "vice_account_email\030\006 \001(\tB\003\340A\001\022S\n\014retry_p" - + "olicy\030\007 \001(\01628.google.cloud.functions.v2a" - + "lpha.EventTrigger.RetryPolicyB\003\340A\001\0228\n\007ch" - + "annel\030\010 \001(\tB\'\340A\001\372A!\n\037eventarc.googleapis" - + ".com/Channel\"b\n\013RetryPolicy\022\034\n\030RETRY_POL" - + "ICY_UNSPECIFIED\020\000\022\035\n\031RETRY_POLICY_DO_NOT" - + "_RETRY\020\001\022\026\n\022RETRY_POLICY_RETRY\020\002\"P\n\013Even" - + "tFilter\022\026\n\tattribute\030\001 \001(\tB\003\340A\002\022\022\n\005value" - + "\030\002 \001(\tB\003\340A\002\022\025\n\010operator\030\003 \001(\tB\003\340A\001\"R\n\022Ge" - + "tFunctionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&" - + "cloudfunctions.googleapis.com/Function\"\237" - + "\001\n\024ListFunctionsRequest\022>\n\006parent\030\001 \001(\tB" - + ".\340A\002\372A(\022&cloudfunctions.googleapis.com/F" - + "unction\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t" - + "\"\202\001\n\025ListFunctionsResponse\022;\n\tfunctions\030" - + "\001 \003(\0132(.google.cloud.functions.v2alpha.F" - + "unction\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"\250\001\n\025CreateFunctionRequest\022" - + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" - + "eapis.com/Location\022?\n\010function\030\002 \001(\0132(.g" - + "oogle.cloud.functions.v2alpha.FunctionB\003" - + "\340A\002\022\023\n\013function_id\030\003 \001(\t\"\211\001\n\025UpdateFunct" - + "ionRequest\022?\n\010function\030\001 \001(\0132(.google.cl" - + "oud.functions.v2alpha.FunctionB\003\340A\002\022/\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "Mask\"U\n\025DeleteFunctionRequest\022<\n\004name\030\001 " - + "\001(\tB.\340A\002\372A(\n&cloudfunctions.googleapis.c" - + "om/Function\"U\n\030GenerateUploadUrlRequest\022" - + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" - + "eapis.com/Location\"v\n\031GenerateUploadUrlR" - + "esponse\022\022\n\nupload_url\030\001 \001(\t\022E\n\016storage_s" - + "ource\030\002 \001(\0132-.google.cloud.functions.v2a" - + "lpha.StorageSource\"Z\n\032GenerateDownloadUr" - + "lRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloudfun" - + "ctions.googleapis.com/Function\"3\n\033Genera" - + "teDownloadUrlResponse\022\024\n\014download_url\030\001 " - + "\001(\t\"`\n\023ListRuntimesRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022\016\n\006filter\030\002 \001(\t\"\275\003\n\024ListRuntimesRe" - + "sponse\022N\n\010runtimes\030\001 \003(\0132<.google.cloud." - + "functions.v2alpha.ListRuntimesResponse.R" - + "untime\032\323\001\n\007Runtime\022\014\n\004name\030\001 \001(\t\022\024\n\014disp" - + "lay_name\030\005 \001(\t\022P\n\005stage\030\002 \001(\0162A.google.c" - + "loud.functions.v2alpha.ListRuntimesRespo" - + "nse.RuntimeStage\022\020\n\010warnings\030\003 \003(\t\022@\n\013en" - + "vironment\030\004 \001(\0162+.google.cloud.functions" - + ".v2alpha.Environment\"\177\n\014RuntimeStage\022\035\n\031" - + "RUNTIME_STAGE_UNSPECIFIED\020\000\022\017\n\013DEVELOPME" - + "NT\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEP" - + "RECATED\020\005\022\022\n\016DECOMMISSIONED\020\006\"\275\002\n\021Operat" - + "ionMetadata\022/\n\013create_time\030\001 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032" - + ".google.protobuf.Timestamp\022\016\n\006target\030\003 \001" - + "(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022" - + "\030\n\020cancel_requested\030\006 \001(\010\022\023\n\013api_version" - + "\030\007 \001(\t\022.\n\020request_resource\030\010 \001(\0132\024.googl" - + "e.protobuf.Any\0225\n\006stages\030\t \003(\0132%.google." - + "cloud.functions.v2alpha.Stage\"\323\003\n\005Stage\022" - + "8\n\004name\030\001 \001(\0162*.google.cloud.functions.v" - + "2alpha.Stage.Name\022\017\n\007message\030\002 \001(\t\022:\n\005st" - + "ate\030\003 \001(\0162+.google.cloud.functions.v2alp" - + "ha.Stage.State\022\020\n\010resource\030\004 \001(\t\022\024\n\014reso" - + "urce_uri\030\005 \001(\t\022D\n\016state_messages\030\006 \003(\0132," - + ".google.cloud.functions.v2alpha.StateMes" - + "sage\"\204\001\n\004Name\022\024\n\020NAME_UNSPECIFIED\020\000\022\025\n\021A" - + "RTIFACT_REGISTRY\020\001\022\t\n\005BUILD\020\002\022\013\n\007SERVICE" - + "\020\003\022\013\n\007TRIGGER\020\004\022\024\n\020SERVICE_ROLLBACK\020\005\022\024\n" - + "\020TRIGGER_ROLLBACK\020\006\"N\n\005State\022\025\n\021STATE_UN" - + "SPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\017\n\013IN_PROGR" - + "ESS\020\002\022\014\n\010COMPLETE\020\003*@\n\013Environment\022\033\n\027EN" - + "VIRONMENT_UNSPECIFIED\020\000\022\t\n\005GEN_1\020\001\022\t\n\005GE" - + "N_2\020\0022\254\017\n\017FunctionService\022\256\001\n\013GetFunctio" - + "n\0222.google.cloud.functions.v2alpha.GetFu" - + "nctionRequest\032(.google.cloud.functions.v" - + "2alpha.Function\"A\202\323\344\223\0024\0222/v2alpha/{name=" - + "projects/*/locations/*/functions/*}\332A\004na" - + "me\022\301\001\n\rListFunctions\0224.google.cloud.func" - + "tions.v2alpha.ListFunctionsRequest\0325.goo" - + "gle.cloud.functions.v2alpha.ListFunction" - + "sResponse\"C\202\323\344\223\0024\0222/v2alpha/{parent=proj" - + "ects/*/locations/*}/functions\332A\006parent\022\251" - + "\002\n\016CreateFunction\0225.google.cloud.functio" - + "ns.v2alpha.CreateFunctionRequest\032\035.googl" - + "e.longrunning.Operation\"\300\001\202\323\344\223\002>\"2/v2alp" - + "ha/{parent=projects/*/locations/*}/funct" - + "ions:\010function\332A\033parent,function,functio" - + "n_id\312A[\n\'google.cloud.functions.v2alpha." - + "Function\0220google.cloud.functions.v2alpha" - + ".OperationMetadata\022\253\002\n\016UpdateFunction\0225." - + "google.cloud.functions.v2alpha.UpdateFun" - + "ctionRequest\032\035.google.longrunning.Operat" - + "ion\"\302\001\202\323\344\223\002G2;/v2alpha/{function.name=pr" - + "ojects/*/locations/*/functions/*}:\010funct" - + "ion\332A\024function,update_mask\312A[\n\'google.cl" - + "oud.functions.v2alpha.Function\0220google.c" - + "loud.functions.v2alpha.OperationMetadata" - + "\022\366\001\n\016DeleteFunction\0225.google.cloud.funct" - + "ions.v2alpha.DeleteFunctionRequest\032\035.goo" - + "gle.longrunning.Operation\"\215\001\202\323\344\223\0024*2/v2a" - + "lpha/{name=projects/*/locations/*/functi" - + "ons/*}\332A\004name\312AI\n\025google.protobuf.Empty\022" - + "0google.cloud.functions.v2alpha.Operatio" - + "nMetadata\022\331\001\n\021GenerateUploadUrl\0228.google" - + ".cloud.functions.v2alpha.GenerateUploadU" - + "rlRequest\0329.google.cloud.functions.v2alp" - + "ha.GenerateUploadUrlResponse\"O\202\323\344\223\002I\"D/v" - + "2alpha/{parent=projects/*/locations/*}/f" - + "unctions:generateUploadUrl:\001*\022\341\001\n\023Genera" - + "teDownloadUrl\022:.google.cloud.functions.v" - + "2alpha.GenerateDownloadUrlRequest\032;.goog" - + "le.cloud.functions.v2alpha.GenerateDownl" - + "oadUrlResponse\"Q\202\323\344\223\002K\"F/v2alpha/{name=p" - + "rojects/*/locations/*/functions/*}:gener" - + "ateDownloadUrl:\001*\022\275\001\n\014ListRuntimes\0223.goo" + + "Trigger\022C\n\005state\030\006 \001(\0162..google.cloud.fu" + + "nctions.v2alpha.Function.StateB\004\342A\001\003\0225\n\013" + + "update_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\022D\n\006labels\030\010 \003(\01324.google.clo" + + "ud.functions.v2alpha.Function.LabelsEntr" + + "y\022J\n\016state_messages\030\t \003(\0132,.google.cloud" + + ".functions.v2alpha.StateMessageB\004\342A\001\003\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006" + + "ACTIVE\020\001\022\n\n\006FAILED\020\002\022\r\n\tDEPLOYING\020\003\022\014\n\010D" + + "ELETING\020\004\022\013\n\007UNKNOWN\020\005:~\352A{\n&cloudfuncti" + + "ons.googleapis.com/Function\022\n\013worker_pool\030\005 \001(\tB)\372A&\n$cloudbui" + + "ld.googleapis.com/WorkerPool\022d\n\025environm" + + "ent_variables\030\006 \003(\0132E.google.cloud.funct" + + "ions.v2alpha.BuildConfig.EnvironmentVari" + + "ablesEntry\022N\n\021docker_repository\030\007 \001(\tB3\342" + + "A\001\001\372A,\n*artifactregistry.googleapis.com/" + + "Repository\032;\n\031EnvironmentVariablesEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\334\010\n\rServ" + + "iceConfig\0224\n\007service\030\001 \001(\tB#\342A\001\003\372A\034\n\032run" + + ".googleapis.com/Service\022\027\n\017timeout_secon" + + "ds\030\002 \001(\005\022\030\n\020available_memory\030\r \001(\t\022f\n\025en" + + "vironment_variables\030\004 \003(\0132G.google.cloud" + + ".functions.v2alpha.ServiceConfig.Environ" + + "mentVariablesEntry\022\032\n\022max_instance_count" + + "\030\005 \001(\005\022\032\n\022min_instance_count\030\014 \001(\005\022>\n\rvp" + + "c_connector\030\006 \001(\tB\'\372A$\n\"vpcaccess.google" + + "apis.com/Connector\022o\n\035vpc_connector_egre" + + "ss_settings\030\007 \001(\0162H.google.cloud.functio" + + "ns.v2alpha.ServiceConfig.VpcConnectorEgr" + + "essSettings\022W\n\020ingress_settings\030\010 \001(\0162=." + + "google.cloud.functions.v2alpha.ServiceCo" + + "nfig.IngressSettings\022\021\n\003uri\030\t \001(\tB\004\342A\001\003\022" + + "\035\n\025service_account_email\030\n \001(\t\022&\n\036all_tr" + + "affic_on_latest_revision\030\020 \001(\010\022R\n\034secret" + + "_environment_variables\030\021 \003(\0132,.google.cl" + + "oud.functions.v2alpha.SecretEnvVar\022D\n\016se" + + "cret_volumes\030\023 \003(\0132,.google.cloud.functi" + + "ons.v2alpha.SecretVolume\022\026\n\010revision\030\022 \001" + + "(\tB\004\342A\001\003\032;\n\031EnvironmentVariablesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\032VpcConn" + + "ectorEgressSettings\022-\n)VPC_CONNECTOR_EGR" + + "ESS_SETTINGS_UNSPECIFIED\020\000\022\027\n\023PRIVATE_RA" + + "NGES_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n\017IngressS" + + "ettings\022 \n\034INGRESS_SETTINGS_UNSPECIFIED\020" + + "\000\022\r\n\tALLOW_ALL\020\001\022\027\n\023ALLOW_INTERNAL_ONLY\020" + + "\002\022\033\n\027ALLOW_INTERNAL_AND_GCLB\020\003\"P\n\014Secret" + + "EnvVar\022\013\n\003key\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022" + + "\016\n\006secret\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\"\304\001\n\014Sec" + + "retVolume\022\022\n\nmount_path\030\001 \001(\t\022\022\n\nproject" + + "_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022L\n\010versions\030\004 " + + "\003(\0132:.google.cloud.functions.v2alpha.Sec" + + "retVolume.SecretVersion\032.\n\rSecretVersion" + + "\022\017\n\007version\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\225\004\n\014Even" + + "tTrigger\0229\n\007trigger\030\001 \001(\tB(\342A\001\003\372A!\n\037even" + + "tarc.googleapis.com/Trigger\022\026\n\016trigger_r" + + "egion\030\002 \001(\t\022\030\n\nevent_type\030\003 \001(\tB\004\342A\001\002\022B\n" + + "\revent_filters\030\004 \003(\0132+.google.cloud.func" + + "tions.v2alpha.EventFilter\022:\n\014pubsub_topi" + + "c\030\005 \001(\tB$\342A\001\001\372A\035\n\033pubsub.googleapis.com/" + + "Topic\022#\n\025service_account_email\030\006 \001(\tB\004\342A" + + "\001\001\022T\n\014retry_policy\030\007 \001(\01628.google.cloud." + + "functions.v2alpha.EventTrigger.RetryPoli" + + "cyB\004\342A\001\001\0229\n\007channel\030\010 \001(\tB(\342A\001\001\372A!\n\037even" + + "tarc.googleapis.com/Channel\"b\n\013RetryPoli" + + "cy\022\034\n\030RETRY_POLICY_UNSPECIFIED\020\000\022\035\n\031RETR" + + "Y_POLICY_DO_NOT_RETRY\020\001\022\026\n\022RETRY_POLICY_" + + "RETRY\020\002\"S\n\013EventFilter\022\027\n\tattribute\030\001 \001(" + + "\tB\004\342A\001\002\022\023\n\005value\030\002 \001(\tB\004\342A\001\002\022\026\n\010operator" + + "\030\003 \001(\tB\004\342A\001\001\"S\n\022GetFunctionRequest\022=\n\004na" + + "me\030\001 \001(\tB/\342A\001\002\372A(\n&cloudfunctions.google" + + "apis.com/Function\"\240\001\n\024ListFunctionsReque" + + "st\022?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\022&cloudfuncti" + + "ons.googleapis.com/Function\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"\202\001\n\025ListFunctionsRe" + + "sponse\022;\n\tfunctions\030\001 \003(\0132(.google.cloud" + + ".functions.v2alpha.Function\022\027\n\017next_page" + + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\252\001\n\025Cr" + + "eateFunctionRequest\022:\n\006parent\030\001 \001(\tB*\342A\001" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "@\n\010function\030\002 \001(\0132(.google.cloud.functio" + + "ns.v2alpha.FunctionB\004\342A\001\002\022\023\n\013function_id" + + "\030\003 \001(\t\"\212\001\n\025UpdateFunctionRequest\022@\n\010func" + + "tion\030\001 \001(\0132(.google.cloud.functions.v2al" + + "pha.FunctionB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"V\n\025DeleteFun" + + "ctionRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&clo" + + "udfunctions.googleapis.com/Function\"V\n\030G" + + "enerateUploadUrlRequest\022:\n\006parent\030\001 \001(\tB" + + "*\342A\001\002\372A#\n!locations.googleapis.com/Locat" + + "ion\"v\n\031GenerateUploadUrlResponse\022\022\n\nuplo" + + "ad_url\030\001 \001(\t\022E\n\016storage_source\030\002 \001(\0132-.g" + + "oogle.cloud.functions.v2alpha.StorageSou" + + "rce\"[\n\032GenerateDownloadUrlRequest\022=\n\004nam" + + "e\030\001 \001(\tB/\342A\001\002\372A(\n&cloudfunctions.googlea" + + "pis.com/Function\"3\n\033GenerateDownloadUrlR" + + "esponse\022\024\n\014download_url\030\001 \001(\t\"a\n\023ListRun" + + "timesRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\016\n\006filt" + + "er\030\002 \001(\t\"\275\003\n\024ListRuntimesResponse\022N\n\010run" + + "times\030\001 \003(\0132<.google.cloud.functions.v2a" + + "lpha.ListRuntimesResponse.Runtime\032\323\001\n\007Ru" + + "ntime\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\005 \001(" + + "\t\022P\n\005stage\030\002 \001(\0162A.google.cloud.function" + + "s.v2alpha.ListRuntimesResponse.RuntimeSt" + + "age\022\020\n\010warnings\030\003 \003(\t\022@\n\013environment\030\004 \001" + + "(\0162+.google.cloud.functions.v2alpha.Envi" + + "ronment\"\177\n\014RuntimeStage\022\035\n\031RUNTIME_STAGE" + + "_UNSPECIFIED\020\000\022\017\n\013DEVELOPMENT\020\001\022\t\n\005ALPHA" + + "\020\002\022\010\n\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPRECATED\020\005\022\022\n\016" + + "DECOMMISSIONED\020\006\"\275\002\n\021OperationMetadata\022/" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022,\n\010end_time\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 " + + "\001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_req" + + "uested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\022.\n\020req" + + "uest_resource\030\010 \001(\0132\024.google.protobuf.An" + + "y\0225\n\006stages\030\t \003(\0132%.google.cloud.functio" + + "ns.v2alpha.Stage\"\323\003\n\005Stage\0228\n\004name\030\001 \001(\016" + + "2*.google.cloud.functions.v2alpha.Stage." + + "Name\022\017\n\007message\030\002 \001(\t\022:\n\005state\030\003 \001(\0162+.g" + + "oogle.cloud.functions.v2alpha.Stage.Stat" + + "e\022\020\n\010resource\030\004 \001(\t\022\024\n\014resource_uri\030\005 \001(" + + "\t\022D\n\016state_messages\030\006 \003(\0132,.google.cloud" + + ".functions.v2alpha.StateMessage\"\204\001\n\004Name" + + "\022\024\n\020NAME_UNSPECIFIED\020\000\022\025\n\021ARTIFACT_REGIS" + + "TRY\020\001\022\t\n\005BUILD\020\002\022\013\n\007SERVICE\020\003\022\013\n\007TRIGGER" + + "\020\004\022\024\n\020SERVICE_ROLLBACK\020\005\022\024\n\020TRIGGER_ROLL" + + "BACK\020\006\"N\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017" + + "\n\013NOT_STARTED\020\001\022\017\n\013IN_PROGRESS\020\002\022\014\n\010COMP" + + "LETE\020\003*@\n\013Environment\022\033\n\027ENVIRONMENT_UNS" + + "PECIFIED\020\000\022\t\n\005GEN_1\020\001\022\t\n\005GEN_2\020\0022\254\017\n\017Fun" + + "ctionService\022\256\001\n\013GetFunction\0222.google.cl" + + "oud.functions.v2alpha.GetFunctionRequest" + + "\032(.google.cloud.functions.v2alpha.Functi" + + "on\"A\332A\004name\202\323\344\223\0024\0222/v2alpha/{name=projec" + + "ts/*/locations/*/functions/*}\022\301\001\n\rListFu" + + "nctions\0224.google.cloud.functions.v2alpha" + + ".ListFunctionsRequest\0325.google.cloud.fun" + + "ctions.v2alpha.ListFunctionsResponse\"C\332A" + + "\006parent\202\323\344\223\0024\0222/v2alpha/{parent=projects" + + "/*/locations/*}/functions\022\251\002\n\016CreateFunc" + + "tion\0225.google.cloud.functions.v2alpha.Cr" + + "eateFunctionRequest\032\035.google.longrunning" + + ".Operation\"\300\001\312A[\n\'google.cloud.functions" + + ".v2alpha.Function\0220google.cloud.function" + + "s.v2alpha.OperationMetadata\332A\033parent,fun" + + "ction,function_id\202\323\344\223\002>\"2/v2alpha/{paren" + + "t=projects/*/locations/*}/functions:\010fun" + + "ction\022\253\002\n\016UpdateFunction\0225.google.cloud." + + "functions.v2alpha.UpdateFunctionRequest\032" + + "\035.google.longrunning.Operation\"\302\001\312A[\n\'go" + + "ogle.cloud.functions.v2alpha.Function\0220g" + + "oogle.cloud.functions.v2alpha.OperationM" + + "etadata\332A\024function,update_mask\202\323\344\223\002G2;/v" + + "2alpha/{function.name=projects/*/locatio" + + "ns/*/functions/*}:\010function\022\366\001\n\016DeleteFu" + + "nction\0225.google.cloud.functions.v2alpha." + + "DeleteFunctionRequest\032\035.google.longrunni" + + "ng.Operation\"\215\001\312AI\n\025google.protobuf.Empt" + + "y\0220google.cloud.functions.v2alpha.Operat" + + "ionMetadata\332A\004name\202\323\344\223\0024*2/v2alpha/{name" + + "=projects/*/locations/*/functions/*}\022\331\001\n" + + "\021GenerateUploadUrl\0228.google.cloud.functi" + + "ons.v2alpha.GenerateUploadUrlRequest\0329.g" + + "oogle.cloud.functions.v2alpha.GenerateUp" + + "loadUrlResponse\"O\202\323\344\223\002I\"D/v2alpha/{paren" + + "t=projects/*/locations/*}/functions:gene" + + "rateUploadUrl:\001*\022\341\001\n\023GenerateDownloadUrl" + + "\022:.google.cloud.functions.v2alpha.Genera" + + "teDownloadUrlRequest\032;.google.cloud.func" + + "tions.v2alpha.GenerateDownloadUrlRespons" + + "e\"Q\202\323\344\223\002K\"F/v2alpha/{name=projects/*/loc" + + "ations/*/functions/*}:generateDownloadUr" + + "l:\001*\022\275\001\n\014ListRuntimes\0223.google.cloud.fun" + + "ctions.v2alpha.ListRuntimesRequest\0324.goo" + "gle.cloud.functions.v2alpha.ListRuntimes" - + "Request\0324.google.cloud.functions.v2alpha" - + ".ListRuntimesResponse\"B\202\323\344\223\0023\0221/v2alpha/" - + "{parent=projects/*/locations/*}/runtimes" - + "\332A\006parent\032Q\312A\035cloudfunctions.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\375\006\n\"com.google.cloud.functi" - + "ons.v2alphaB\016FunctionsProtoP\001Z@cloud.goo" - + "gle.com/go/functions/apiv2alpha/function" - + "spb;functionspb\242\002\003GCF\352Ao\n*artifactregist" - + "ry.googleapis.com/Repository\022Aprojects/{" - + "project}/locations/{location}/repositori" - + "es/{repository}\352AY\n\037cloudbuild.googleapi" - + "s.com/Build\0226projects/{project}/location" - + "s/{location}/builds/{build}\352Ai\n$cloudbui" - + "ld.googleapis.com/WorkerPool\022Aprojects/{" - + "project}/locations/{location}/workerPool" - + "s/{worker_pool}\352AX\n\032run.googleapis.com/S" - + "ervice\022:projects/{project}/locations/{lo" - + "cation}/services/{service}\352Ad\n\"vpcaccess" - + ".googleapis.com/Connector\022>projects/{pro" - + "ject}/locations/{location}/connectors/{c" - + "onnector}\352A]\n\037eventarc.googleapis.com/Tr" - + "igger\022:projects/{project}/locations/{loc" - + "ation}/triggers/{trigger}\352A]\n\037eventarc.g" - + "oogleapis.com/Channel\022:projects/{project" - + "}/locations/{location}/channels/{channel" - + "}\352A@\n\033pubsub.googleapis.com/Topic\022!proje" - + "cts/{project}/topics/{topic}b\006proto3" + + "Response\"B\332A\006parent\202\323\344\223\0023\0221/v2alpha/{par" + + "ent=projects/*/locations/*}/runtimes\032Q\312A" + + "\035cloudfunctions.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\375\006\n\"com.google.cloud.functions.v2alphaB\016" + + "FunctionsProtoP\001Z@cloud.google.com/go/fu" + + "nctions/apiv2alpha/functionspb;functions" + + "pb\242\002\003GCF\352Ao\n*artifactregistry.googleapis" + + ".com/Repository\022Aprojects/{project}/loca" + + "tions/{location}/repositories/{repositor" + + "y}\352AY\n\037cloudbuild.googleapis.com/Build\0226" + + "projects/{project}/locations/{location}/" + + "builds/{build}\352Ai\n$cloudbuild.googleapis" + + ".com/WorkerPool\022Aprojects/{project}/loca" + + "tions/{location}/workerPools/{worker_poo" + + "l}\352AX\n\032run.googleapis.com/Service\022:proje" + + "cts/{project}/locations/{location}/servi" + + "ces/{service}\352Ad\n\"vpcaccess.googleapis.c" + + "om/Connector\022>projects/{project}/locatio" + + "ns/{location}/connectors/{connector}\352A]\n" + + "\037eventarc.googleapis.com/Trigger\022:projec" + + "ts/{project}/locations/{location}/trigge" + + "rs/{trigger}\352A]\n\037eventarc.googleapis.com" + + "/Channel\022:projects/{project}/locations/{" + + "location}/channels/{channel}\352A@\n\033pubsub." + + "googleapis.com/Topic\022!projects/{project}" + + "/topics/{topic}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java index a0a28c02cbe6..ca2abc7ccb0b 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlRequest_descriptor; @@ -367,39 +362,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.GenerateDownloadUrlRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java index 28401f87310b..6588560c28fc 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateDownloadUrlResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_GenerateDownloadUrlResponse_descriptor; @@ -363,39 +358,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.GenerateDownloadUrlResponse) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java index f952b1844f24..02b521b18a57 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlRequest_descriptor; @@ -365,39 +360,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.GenerateUploadUrlR } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.GenerateUploadUrlRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java index 754db2aebc54..b51d5a7d05cc 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_GenerateUploadUrlResponse_descriptor; @@ -129,9 +124,11 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -149,9 +146,11 @@ public boolean hasStorageSource() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -171,9 +170,11 @@ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -453,39 +454,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.GenerateUploadUrlResponse) { @@ -692,9 +660,11 @@ public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -711,9 +681,11 @@ public boolean hasStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -736,9 +708,11 @@ public com.google.cloud.functions.v2alpha.StorageSource getStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -763,9 +737,11 @@ public Builder setStorageSource(com.google.cloud.functions.v2alpha.StorageSource * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -788,9 +764,11 @@ public Builder setStorageSource( * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -819,9 +797,11 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2alpha.StorageSour * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -843,9 +823,11 @@ public Builder clearStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -862,9 +844,11 @@ public com.google.cloud.functions.v2alpha.StorageSource.Builder getStorageSource * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -885,9 +869,11 @@ public com.google.cloud.functions.v2alpha.StorageSourceOrBuilder getStorageSourc * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java index 4c8c39f1446b..1d945b5ea8b9 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GenerateUploadUrlResponseOrBuilder.java @@ -57,9 +57,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -74,9 +76,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -91,9 +95,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java index 039721635c1d..85d51f0cd1fe 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/GetFunctionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_GetFunctionRequest_descriptor; @@ -363,39 +358,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.GetFunctionRequest } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.GetFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java index a0a94d7044d3..2cae8d519c1b 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsRequest.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_ListFunctionsRequest_descriptor; @@ -611,39 +606,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.ListFunctionsReque } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.ListFunctionsRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java index 7b439f9eaa1b..35c34bf5e53f 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListFunctionsResponse.java @@ -40,7 +40,7 @@ private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_ListFunctionsResponse_descriptor; @@ -196,7 +191,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList unreachable_; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -494,8 +490,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -542,11 +537,6 @@ private void buildPartialRepeatedFields( } else { result.functions_ = functionsBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; } private void buildPartial0(com.google.cloud.functions.v2alpha.ListFunctionsResponse result) { @@ -554,39 +544,10 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.ListFunctionsRespo if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } } @java.lang.Override @@ -637,7 +598,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2alpha.ListFunctionsRespons if (!other.unreachable_.isEmpty()) { if (unreachable_.isEmpty()) { unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureUnreachableIsMutable(); unreachable_.addAll(other.unreachable_); @@ -1177,14 +1138,14 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** * @@ -1199,7 +1160,8 @@ private void ensureUnreachableIsMutable() { * @return A list containing the unreachable. */ public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); + unreachable_.makeImmutable(); + return unreachable_; } /** * @@ -1268,6 +1230,7 @@ public Builder setUnreachable(int index, java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1290,6 +1253,7 @@ public Builder addUnreachable(java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1309,6 +1273,7 @@ public Builder addUnreachable(java.lang.String value) { public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1325,8 +1290,9 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } @@ -1350,6 +1316,7 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java index ea8573390b62..622e20b331a9 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_ListRuntimesRequest_descriptor; @@ -432,39 +427,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.ListRuntimesReques } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.ListRuntimesRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java index b5b903e06c41..a04af7522e4f 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ListRuntimesResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_descriptor; @@ -494,7 +489,7 @@ private Runtime() { name_ = ""; displayName_ = ""; stage_ = 0; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; } @@ -504,11 +499,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Runtime(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_ListRuntimesResponse_Runtime_descriptor; @@ -666,7 +656,8 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.RuntimeStage getS public static final int WARNINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList warnings_; + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -1019,8 +1010,7 @@ public Builder clear() { name_ = ""; displayName_ = ""; stage_ = 0; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; return this; } @@ -1050,7 +1040,6 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime build() { public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime buildPartial() { com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime result = new com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1058,15 +1047,6 @@ public com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime buildPart return result; } - private void buildPartialRepeatedFields( - com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime result) { - if (((bitField0_ & 0x00000008) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.warnings_ = warnings_; - } - private void buildPartial0( com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime result) { int from_bitField0_ = bitField0_; @@ -1079,46 +1059,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.stage_ = stage_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + warnings_.makeImmutable(); + result.warnings_ = warnings_; + } if (((from_bitField0_ & 0x00000010) != 0)) { result.environment_ = environment_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.ListRuntimesResponse.Runtime) { @@ -1150,7 +1099,7 @@ public Builder mergeFrom( if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureWarningsIsMutable(); warnings_.addAll(other.warnings_); @@ -1541,14 +1490,14 @@ public Builder clearStage() { return this; } - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!warnings_.isModifiable()) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); - bitField0_ |= 0x00000008; } + bitField0_ |= 0x00000008; } /** * @@ -1562,7 +1511,8 @@ private void ensureWarningsIsMutable() { * @return A list containing the warnings. */ public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_.getUnmodifiableView(); + warnings_.makeImmutable(); + return warnings_; } /** * @@ -1627,6 +1577,7 @@ public Builder setWarnings(int index, java.lang.String value) { } ensureWarningsIsMutable(); warnings_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1648,6 +1599,7 @@ public Builder addWarnings(java.lang.String value) { } ensureWarningsIsMutable(); warnings_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1666,6 +1618,7 @@ public Builder addWarnings(java.lang.String value) { public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1681,8 +1634,9 @@ public Builder addAllWarnings(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearWarnings() { - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -1705,6 +1659,7 @@ public Builder addWarningsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2207,39 +2162,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.ListRuntimesRespon int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.ListRuntimesResponse) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java index aad228621095..b54654815007 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/OperationMetadata.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_OperationMetadata_descriptor; @@ -900,39 +895,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.OperationMetadata } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.OperationMetadata) { diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java index a975be89f6ce..7145b51e2a79 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSource.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepoSource(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_RepoSource_descriptor; @@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int revisionCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object revision_; public enum RevisionCase @@ -125,6 +122,7 @@ public RevisionCase getRevisionCase() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -141,6 +139,7 @@ public boolean hasBranchName() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -170,6 +169,7 @@ public java.lang.String getBranchName() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -201,6 +201,7 @@ public com.google.protobuf.ByteString getBranchNameBytes() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -217,6 +218,7 @@ public boolean hasTagName() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -246,6 +248,7 @@ public java.lang.String getTagName() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -454,6 +457,7 @@ public com.google.protobuf.ByteString getRepoNameBytes() { * *
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -480,6 +484,7 @@ public java.lang.String getDir() {
    *
    * 
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -856,39 +861,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v2alpha.RepoSource re
       result.revision_ = this.revision_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.RepoSource) {
@@ -1055,6 +1027,7 @@ public Builder clearRevision() {
      *
      * 
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1072,6 +1045,7 @@ public boolean hasBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1102,6 +1076,7 @@ public java.lang.String getBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1132,6 +1107,7 @@ public com.google.protobuf.ByteString getBranchNameBytes() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1155,6 +1131,7 @@ public Builder setBranchName(java.lang.String value) { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1176,6 +1153,7 @@ public Builder clearBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1201,6 +1179,7 @@ public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1218,6 +1197,7 @@ public boolean hasTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1248,6 +1228,7 @@ public java.lang.String getTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1278,6 +1259,7 @@ public com.google.protobuf.ByteString getTagNameBytes() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1301,6 +1283,7 @@ public Builder setTagName(java.lang.String value) { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1322,6 +1305,7 @@ public Builder clearTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1699,6 +1683,7 @@ public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { * *
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1724,6 +1709,7 @@ public java.lang.String getDir() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1749,6 +1735,7 @@ public com.google.protobuf.ByteString getDirBytes() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1773,6 +1760,7 @@ public Builder setDir(java.lang.String value) {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1793,6 +1781,7 @@ public Builder clearDir() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java
index 3c91711f2a3a..ed4af02a6d92 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/RepoSourceOrBuilder.java
@@ -28,6 +28,7 @@ public interface RepoSourceOrBuilder
    *
    * 
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -42,6 +43,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -56,6 +58,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -71,6 +74,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -85,6 +89,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -99,6 +104,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -203,6 +209,7 @@ public interface RepoSourceOrBuilder * *
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -218,6 +225,7 @@ public interface RepoSourceOrBuilder
    *
    * 
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -243,5 +251,5 @@ public interface RepoSourceOrBuilder
    */
   boolean getInvertRegex();
 
-  public com.google.cloud.functions.v2alpha.RepoSource.RevisionCase getRevisionCase();
+  com.google.cloud.functions.v2alpha.RepoSource.RevisionCase getRevisionCase();
 }
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java
index 3121614b9d9c..ebeadd9577db 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretEnvVar.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretEnvVar();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_SecretEnvVar_descriptor;
@@ -567,39 +562,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.SecretEnvVar resul
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.SecretEnvVar) {
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java
index 5eb9bbcf02a9..c103f83ebaa0 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SecretVolume.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretVolume();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_SecretVolume_descriptor;
@@ -167,11 +162,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SecretVersion();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.cloud.functions.v2alpha.FunctionsProto
           .internal_static_google_cloud_functions_v2alpha_SecretVolume_SecretVersion_descriptor;
@@ -557,41 +547,6 @@ private void buildPartial0(
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.functions.v2alpha.SecretVolume.SecretVersion) {
@@ -1527,39 +1482,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.SecretVolume resul
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.SecretVolume) {
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
index 4f9081f12f53..eb95e2e9112d 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfig.java
@@ -57,11 +57,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ServiceConfig();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_ServiceConfig_descriptor;
@@ -93,6 +88,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * 
    * Available egress settings.
+   *
    * This controls what traffic is diverted through the VPC Access Connector
    * resource. By default PRIVATE_RANGES_ONLY will be used.
    * 
@@ -257,7 +253,9 @@ private VpcConnectorEgressSettings(int value) { * *
    * Available ingress settings.
+   *
    * This controls what traffic can reach the function.
+   *
    * If unspecified, ALLOW_ALL will be used.
    * 
* @@ -689,11 +687,13 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { *
    * The limit on the maximum number of function instances that may coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions may, for a
    * short period of time, create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you may want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -716,6 +716,7 @@ public int getMaxInstanceCount() {
    * 
    * The limit on the minimum number of function instances that may coexist at a
    * given time.
+   *
    * Function instances are kept in idle state for a short period after they
    * finished executing the request to reduce cold start time for subsequent
    * requests. Setting a minimum instance count will ensure that the given
@@ -1707,39 +1708,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.ServiceConfig resu
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.ServiceConfig) {
@@ -2508,11 +2476,13 @@ public Builder putAllEnvironmentVariables(
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -2532,11 +2502,13 @@ public int getMaxInstanceCount() {
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -2560,11 +2532,13 @@ public Builder setMaxInstanceCount(int value) {
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -2588,6 +2562,7 @@ public Builder clearMaxInstanceCount() {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -2610,6 +2585,7 @@ public int getMinInstanceCount() {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -2636,6 +2612,7 @@ public Builder setMinInstanceCount(int value) {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java
index df6452a500d4..6d3f1002ac25 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/ServiceConfigOrBuilder.java
@@ -170,11 +170,13 @@ java.lang.String getEnvironmentVariablesOrDefault(
    * 
    * The limit on the maximum number of function instances that may coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions may, for a
    * short period of time, create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you may want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -192,6 +194,7 @@ java.lang.String getEnvironmentVariablesOrDefault(
    * 
    * The limit on the minimum number of function instances that may coexist at a
    * given time.
+   *
    * Function instances are kept in idle state for a short period after they
    * finished executing the request to reduce cold start time for subsequent
    * requests. Setting a minimum instance count will ensure that the given
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java
index c748c9e9efcb..ed30cf27392d 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Source.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Source();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_Source_descriptor;
@@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   private int sourceCase_ = 0;
+
+  @SuppressWarnings("serial")
   private java.lang.Object source_;
 
   public enum SourceCase
@@ -503,39 +500,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v2alpha.Source result
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.Source) {
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
index 0c2ca814487b..a3ee9cac18d3 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceOrBuilder.java
@@ -96,5 +96,5 @@ public interface SourceOrBuilder
    */
   com.google.cloud.functions.v2alpha.RepoSourceOrBuilder getRepoSourceOrBuilder();
 
-  public com.google.cloud.functions.v2alpha.Source.SourceCase getSourceCase();
+  com.google.cloud.functions.v2alpha.Source.SourceCase getSourceCase();
 }
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
index 54e827384eaf..ab0e4c0956be 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/SourceProvenance.java
@@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SourceProvenance();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_SourceProvenance_descriptor;
@@ -452,39 +447,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.SourceProvenance r
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.SourceProvenance) {
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
index d9ff11383f03..de571df6380b 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/Stage.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Stage();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_Stage_descriptor;
@@ -1113,39 +1108,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.Stage result) {
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.Stage) {
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java
index 2f0ecb0667a5..44e61cbc4a7c 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StateMessage.java
@@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StateMessage();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_StateMessage_descriptor;
@@ -657,39 +652,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.StateMessage resul
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2alpha.StateMessage) {
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java
index d81ce428f68a..7ba9da640933 100644
--- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java
+++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSource.java
@@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StorageSource();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2alpha.FunctionsProto
         .internal_static_google_cloud_functions_v2alpha_StorageSource_descriptor;
@@ -132,6 +127,7 @@ public com.google.protobuf.ByteString getBucketBytes() {
    *
    * 
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -157,6 +153,7 @@ public java.lang.String getObject() { * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -463,39 +460,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.StorageSource resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.StorageSource) { @@ -707,6 +671,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -731,6 +696,7 @@ public java.lang.String getObject() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -755,6 +721,7 @@ public com.google.protobuf.ByteString getObjectBytes() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -778,6 +745,7 @@ public Builder setObject(java.lang.String value) { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -797,6 +765,7 @@ public Builder clearObject() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java index 78dcde7a4568..1f422cfcf4c5 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/StorageSourceOrBuilder.java @@ -57,6 +57,7 @@ public interface StorageSourceOrBuilder * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -71,6 +72,7 @@ public interface StorageSourceOrBuilder * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java index ebe3b57434f6..6559e6dadea0 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/UpdateFunctionRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2alpha.FunctionsProto .internal_static_google_cloud_functions_v2alpha_UpdateFunctionRequest_descriptor; @@ -445,39 +440,6 @@ private void buildPartial0(com.google.cloud.functions.v2alpha.UpdateFunctionRequ } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2alpha.UpdateFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java index 17c9fb7f94f4..c27e97a4af57 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfig.java @@ -43,6 +43,7 @@ private BuildConfig() { runtime_ = ""; entryPoint_ = ""; workerPool_ = ""; + dockerRegistry_ = 0; dockerRepository_ = ""; } @@ -52,11 +53,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BuildConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_BuildConfig_descriptor; @@ -83,6 +79,173 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.functions.v2beta.BuildConfig.Builder.class); } + /** + * + * + *
+   * Docker Registry to use for storing function Docker images.
+   * 
+ * + * Protobuf enum {@code google.cloud.functions.v2beta.BuildConfig.DockerRegistry} + */ + public enum DockerRegistry implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * DOCKER_REGISTRY_UNSPECIFIED = 0; + */ + DOCKER_REGISTRY_UNSPECIFIED(0), + /** + * + * + *
+     * Docker images will be stored in multi-regional Container Registry
+     * repositories named `gcf`.
+     * 
+ * + * CONTAINER_REGISTRY = 1; + */ + CONTAINER_REGISTRY(1), + /** + * + * + *
+     * Docker images will be stored in regional Artifact Registry repositories.
+     * By default, GCF will create and use repositories named `gcf-artifacts`
+     * in every region in which a function is deployed. But the repository to
+     * use can also be specified by the user using the `docker_repository`
+     * field.
+     * 
+ * + * ARTIFACT_REGISTRY = 2; + */ + ARTIFACT_REGISTRY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * DOCKER_REGISTRY_UNSPECIFIED = 0; + */ + public static final int DOCKER_REGISTRY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Docker images will be stored in multi-regional Container Registry
+     * repositories named `gcf`.
+     * 
+ * + * CONTAINER_REGISTRY = 1; + */ + public static final int CONTAINER_REGISTRY_VALUE = 1; + /** + * + * + *
+     * Docker images will be stored in regional Artifact Registry repositories.
+     * By default, GCF will create and use repositories named `gcf-artifacts`
+     * in every region in which a function is deployed. But the repository to
+     * use can also be specified by the user using the `docker_repository`
+     * field.
+     * 
+ * + * ARTIFACT_REGISTRY = 2; + */ + public static final int ARTIFACT_REGISTRY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DockerRegistry valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DockerRegistry forNumber(int value) { + switch (value) { + case 0: + return DOCKER_REGISTRY_UNSPECIFIED; + case 1: + return CONTAINER_REGISTRY; + case 2: + return ARTIFACT_REGISTRY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DockerRegistry findValueByNumber(int number) { + return DockerRegistry.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.functions.v2beta.BuildConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final DockerRegistry[] VALUES = values(); + + public static DockerRegistry valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DockerRegistry(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2beta.BuildConfig.DockerRegistry) + } + public static final int BUILD_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -91,8 +254,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * Output only. The Cloud Build name of the latest successful deployment of the
-   * function.
+   * Output only. The Cloud Build name of the latest successful deployment of
+   * the function.
    * 
* * @@ -117,8 +280,8 @@ public java.lang.String getBuild() { * * *
-   * Output only. The Cloud Build name of the latest successful deployment of the
-   * function.
+   * Output only. The Cloud Build name of the latest successful deployment of
+   * the function.
    * 
* * @@ -381,6 +544,7 @@ public com.google.cloud.functions.v2beta.SourceProvenance getSourceProvenance() * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -414,6 +578,7 @@ public java.lang.String getWorkerPool() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -544,6 +709,57 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { return map.get(key); } + public static final int DOCKER_REGISTRY_FIELD_NUMBER = 10; + private int dockerRegistry_ = 0; + /** + * + * + *
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
+   * If `docker_repository` field is specified, this field will be automatically
+   * set as `ARTIFACT_REGISTRY`.
+   * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+   * This field may be overridden by the backend for eligible deployments.
+   * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @return The enum numeric value on the wire for dockerRegistry. + */ + @java.lang.Override + public int getDockerRegistryValue() { + return dockerRegistry_; + } + /** + * + * + *
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
+   * If `docker_repository` field is specified, this field will be automatically
+   * set as `ARTIFACT_REGISTRY`.
+   * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+   * This field may be overridden by the backend for eligible deployments.
+   * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @return The dockerRegistry. + */ + @java.lang.Override + public com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry getDockerRegistry() { + com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry result = + com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry.forNumber(dockerRegistry_); + return result == null + ? com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry.UNRECOGNIZED + : result; + } + public static final int DOCKER_REPOSITORY_FIELD_NUMBER = 7; @SuppressWarnings("serial") @@ -552,21 +768,21 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { * * *
-   * Optional. User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
    * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @return The dockerRepository. */ @@ -586,21 +802,21 @@ public java.lang.String getDockerRepository() { * * *
-   * Optional. User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
    * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @return The bytes for dockerRepository. */ @@ -657,6 +873,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceProvenance_ != null) { output.writeMessage(8, getSourceProvenance()); } + if (dockerRegistry_ + != com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, dockerRegistry_); + } getUnknownFields().writeTo(output); } @@ -697,6 +918,11 @@ public int getSerializedSize() { if (sourceProvenance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceProvenance()); } + if (dockerRegistry_ + != com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry.DOCKER_REGISTRY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, dockerRegistry_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -727,6 +953,7 @@ public boolean equals(final java.lang.Object obj) { if (!getWorkerPool().equals(other.getWorkerPool())) return false; if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) return false; + if (dockerRegistry_ != other.dockerRegistry_) return false; if (!getDockerRepository().equals(other.getDockerRepository())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -759,6 +986,8 @@ public int hashCode() { hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetEnvironmentVariables().hashCode(); } + hash = (37 * hash) + DOCKER_REGISTRY_FIELD_NUMBER; + hash = (53 * hash) + dockerRegistry_; hash = (37 * hash) + DOCKER_REPOSITORY_FIELD_NUMBER; hash = (53 * hash) + getDockerRepository().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -936,6 +1165,7 @@ public Builder clear() { } workerPool_ = ""; internalGetMutableEnvironmentVariables().clear(); + dockerRegistry_ = 0; dockerRepository_ = ""; return this; } @@ -997,43 +1227,13 @@ private void buildPartial0(com.google.cloud.functions.v2beta.BuildConfig result) result.environmentVariables_.makeImmutable(); } if (((from_bitField0_ & 0x00000080) != 0)) { + result.dockerRegistry_ = dockerRegistry_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.dockerRepository_ = dockerRepository_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.BuildConfig) { @@ -1074,9 +1274,12 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.BuildConfig other) { } internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables()); bitField0_ |= 0x00000040; + if (other.dockerRegistry_ != 0) { + setDockerRegistryValue(other.getDockerRegistryValue()); + } if (!other.getDockerRepository().isEmpty()) { dockerRepository_ = other.dockerRepository_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1151,7 +1354,7 @@ public Builder mergeFrom( case 58: { dockerRepository_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 58 case 66: @@ -1161,6 +1364,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 66 + case 80: + { + dockerRegistry_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1185,8 +1394,8 @@ public Builder mergeFrom( * * *
-     * Output only. The Cloud Build name of the latest successful deployment of the
-     * function.
+     * Output only. The Cloud Build name of the latest successful deployment of
+     * the function.
      * 
* * @@ -1210,8 +1419,8 @@ public java.lang.String getBuild() { * * *
-     * Output only. The Cloud Build name of the latest successful deployment of the
-     * function.
+     * Output only. The Cloud Build name of the latest successful deployment of
+     * the function.
      * 
* * @@ -1235,8 +1444,8 @@ public com.google.protobuf.ByteString getBuildBytes() { * * *
-     * Output only. The Cloud Build name of the latest successful deployment of the
-     * function.
+     * Output only. The Cloud Build name of the latest successful deployment of
+     * the function.
      * 
* * @@ -1259,8 +1468,8 @@ public Builder setBuild(java.lang.String value) { * * *
-     * Output only. The Cloud Build name of the latest successful deployment of the
-     * function.
+     * Output only. The Cloud Build name of the latest successful deployment of
+     * the function.
      * 
* * @@ -1279,8 +1488,8 @@ public Builder clearBuild() { * * *
-     * Output only. The Cloud Build name of the latest successful deployment of the
-     * function.
+     * Output only. The Cloud Build name of the latest successful deployment of
+     * the function.
      * 
* * @@ -1956,6 +2165,7 @@ public com.google.cloud.functions.v2beta.SourceProvenance.Builder getSourceProve * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -1988,6 +2198,7 @@ public java.lang.String getWorkerPool() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2020,6 +2231,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2051,6 +2263,7 @@ public Builder setWorkerPool(java.lang.String value) { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2078,6 +2291,7 @@ public Builder clearWorkerPool() { * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -2271,26 +2485,154 @@ public Builder putAllEnvironmentVariables( return this; } + private int dockerRegistry_ = 0; + /** + * + * + *
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
+     * If `docker_repository` field is specified, this field will be automatically
+     * set as `ARTIFACT_REGISTRY`.
+     * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+     * This field may be overridden by the backend for eligible deployments.
+     * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @return The enum numeric value on the wire for dockerRegistry. + */ + @java.lang.Override + public int getDockerRegistryValue() { + return dockerRegistry_; + } + /** + * + * + *
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
+     * If `docker_repository` field is specified, this field will be automatically
+     * set as `ARTIFACT_REGISTRY`.
+     * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+     * This field may be overridden by the backend for eligible deployments.
+     * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @param value The enum numeric value on the wire for dockerRegistry to set. + * @return This builder for chaining. + */ + public Builder setDockerRegistryValue(int value) { + dockerRegistry_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
+     * If `docker_repository` field is specified, this field will be automatically
+     * set as `ARTIFACT_REGISTRY`.
+     * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+     * This field may be overridden by the backend for eligible deployments.
+     * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @return The dockerRegistry. + */ + @java.lang.Override + public com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry getDockerRegistry() { + com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry result = + com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry.forNumber(dockerRegistry_); + return result == null + ? com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
+     * If `docker_repository` field is specified, this field will be automatically
+     * set as `ARTIFACT_REGISTRY`.
+     * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+     * This field may be overridden by the backend for eligible deployments.
+     * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @param value The dockerRegistry to set. + * @return This builder for chaining. + */ + public Builder setDockerRegistry( + com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + dockerRegistry_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Docker Registry to use for this deployment. This configuration is only
+     * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+     * Registry.
+     *
+     * If `docker_repository` field is specified, this field will be automatically
+     * set as `ARTIFACT_REGISTRY`.
+     * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+     * This field may be overridden by the backend for eligible deployments.
+     * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @return This builder for chaining. + */ + public Builder clearDockerRegistry() { + bitField0_ = (bitField0_ & ~0x00000080); + dockerRegistry_ = 0; + onChanged(); + return this; + } + private java.lang.Object dockerRepository_ = ""; /** * * *
-     * Optional. User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
      * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @return The dockerRepository. */ @@ -2309,21 +2651,21 @@ public java.lang.String getDockerRepository() { * * *
-     * Optional. User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
      * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @return The bytes for dockerRepository. */ @@ -2342,21 +2684,21 @@ public com.google.protobuf.ByteString getDockerRepositoryBytes() { * * *
-     * Optional. User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
      * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @param value The dockerRepository to set. * @return This builder for chaining. @@ -2366,7 +2708,7 @@ public Builder setDockerRepository(java.lang.String value) { throw new NullPointerException(); } dockerRepository_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2374,27 +2716,27 @@ public Builder setDockerRepository(java.lang.String value) { * * *
-     * Optional. User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
      * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearDockerRepository() { dockerRepository_ = getDefaultInstance().getDockerRepository(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2402,21 +2744,21 @@ public Builder clearDockerRepository() { * * *
-     * Optional. User managed repository created in Artifact Registry optionally with a
-     * customer managed encryption key. This is the repository to which the
+     * User managed repository created in Artifact Registry optionally
+     * with a customer managed encryption key. This is the repository to which the
      * function docker image will be pushed after it is built by Cloud Build.
      * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
      * for every deployed region.
+     *
      * It must match the pattern
      * `projects/{project}/locations/{location}/repositories/{repository}`.
+     *
      * Cross-project repositories are not supported.
      * Cross-location repositories are not supported.
      * Repository format must be 'DOCKER'.
      * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @param value The bytes for dockerRepository to set. * @return This builder for chaining. @@ -2427,7 +2769,7 @@ public Builder setDockerRepositoryBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); dockerRepository_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java index daaa650f5ac6..0843420cbb82 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/BuildConfigOrBuilder.java @@ -27,8 +27,8 @@ public interface BuildConfigOrBuilder * * *
-   * Output only. The Cloud Build name of the latest successful deployment of the
-   * function.
+   * Output only. The Cloud Build name of the latest successful deployment of
+   * the function.
    * 
* * @@ -42,8 +42,8 @@ public interface BuildConfigOrBuilder * * *
-   * Output only. The Cloud Build name of the latest successful deployment of the
-   * function.
+   * Output only. The Cloud Build name of the latest successful deployment of
+   * the function.
    * 
* * @@ -208,6 +208,7 @@ public interface BuildConfigOrBuilder * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -230,6 +231,7 @@ public interface BuildConfigOrBuilder * {project} and {region} are the project id and region respectively where the * worker pool is defined and {workerPool} is the short name of the worker * pool. + * * If the project id is not the same as the function, then the Cloud * Functions Service Agent * (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be @@ -305,21 +307,60 @@ java.lang.String getEnvironmentVariablesOrDefault( * * *
-   * Optional. User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
+   * If `docker_repository` field is specified, this field will be automatically
+   * set as `ARTIFACT_REGISTRY`.
+   * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+   * This field may be overridden by the backend for eligible deployments.
+   * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @return The enum numeric value on the wire for dockerRegistry. + */ + int getDockerRegistryValue(); + /** + * + * + *
+   * Docker Registry to use for this deployment. This configuration is only
+   * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
+   * Registry.
+   *
+   * If `docker_repository` field is specified, this field will be automatically
+   * set as `ARTIFACT_REGISTRY`.
+   * If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
+   * This field may be overridden by the backend for eligible deployments.
+   * 
+ * + * .google.cloud.functions.v2beta.BuildConfig.DockerRegistry docker_registry = 10; + * + * @return The dockerRegistry. + */ + com.google.cloud.functions.v2beta.BuildConfig.DockerRegistry getDockerRegistry(); + + /** + * + * + *
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
    * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @return The dockerRepository. */ @@ -328,21 +369,21 @@ java.lang.String getEnvironmentVariablesOrDefault( * * *
-   * Optional. User managed repository created in Artifact Registry optionally with a
-   * customer managed encryption key. This is the repository to which the
+   * User managed repository created in Artifact Registry optionally
+   * with a customer managed encryption key. This is the repository to which the
    * function docker image will be pushed after it is built by Cloud Build.
    * If unspecified, GCF will create and use a repository named 'gcf-artifacts'
    * for every deployed region.
+   *
    * It must match the pattern
    * `projects/{project}/locations/{location}/repositories/{repository}`.
+   *
    * Cross-project repositories are not supported.
    * Cross-location repositories are not supported.
    * Repository format must be 'DOCKER'.
    * 
* - * - * string docker_repository = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string docker_repository = 7 [(.google.api.resource_reference) = { ... } * * @return The bytes for dockerRepository. */ diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java index 2df347debde5..59bcecef1af4 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_CreateFunctionRequest_descriptor; @@ -76,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location in which the function should be created, specified
-   * in the format `projects/*/locations/*`
+   * Required. The project and location in which the function should be created,
+   * specified in the format `projects/*/locations/*`
    * 
* * @@ -102,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location in which the function should be created, specified
-   * in the format `projects/*/locations/*`
+   * Required. The project and location in which the function should be created,
+   * specified in the format `projects/*/locations/*`
    * 
* * @@ -191,6 +186,7 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -217,6 +213,7 @@ public java.lang.String getFunctionId() { *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -514,39 +511,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.CreateFunctionReque } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.CreateFunctionRequest) { @@ -641,8 +605,8 @@ public Builder mergeFrom( * * *
-     * Required. The project and location in which the function should be created, specified
-     * in the format `projects/*/locations/*`
+     * Required. The project and location in which the function should be created,
+     * specified in the format `projects/*/locations/*`
      * 
* * @@ -666,8 +630,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location in which the function should be created, specified
-     * in the format `projects/*/locations/*`
+     * Required. The project and location in which the function should be created,
+     * specified in the format `projects/*/locations/*`
      * 
* * @@ -691,8 +655,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location in which the function should be created, specified
-     * in the format `projects/*/locations/*`
+     * Required. The project and location in which the function should be created,
+     * specified in the format `projects/*/locations/*`
      * 
* * @@ -715,8 +679,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location in which the function should be created, specified
-     * in the format `projects/*/locations/*`
+     * Required. The project and location in which the function should be created,
+     * specified in the format `projects/*/locations/*`
      * 
* * @@ -735,8 +699,8 @@ public Builder clearParent() { * * *
-     * Required. The project and location in which the function should be created, specified
-     * in the format `projects/*/locations/*`
+     * Required. The project and location in which the function should be created,
+     * specified in the format `projects/*/locations/*`
      * 
* * @@ -965,6 +929,7 @@ public com.google.cloud.functions.v2beta.FunctionOrBuilder getFunctionOrBuilder( *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -990,6 +955,7 @@ public java.lang.String getFunctionId() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1015,6 +981,7 @@ public com.google.protobuf.ByteString getFunctionIdBytes() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1039,6 +1006,7 @@ public Builder setFunctionId(java.lang.String value) { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
@@ -1059,6 +1027,7 @@ public Builder clearFunctionId() { *
      * The ID to use for the function, which will become the final component of
      * the function's resource name.
+     *
      * This value should be 4-63 characters, and valid characters
      * are /[a-z][0-9]-/.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java index 165baa6b9328..c49aa4079582 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CreateFunctionRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CreateFunctionRequestOrBuilder * * *
-   * Required. The project and location in which the function should be created, specified
-   * in the format `projects/*/locations/*`
+   * Required. The project and location in which the function should be created,
+   * specified in the format `projects/*/locations/*`
    * 
* * @@ -42,8 +42,8 @@ public interface CreateFunctionRequestOrBuilder * * *
-   * Required. The project and location in which the function should be created, specified
-   * in the format `projects/*/locations/*`
+   * Required. The project and location in which the function should be created,
+   * specified in the format `projects/*/locations/*`
    * 
* * @@ -101,6 +101,7 @@ public interface CreateFunctionRequestOrBuilder *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
@@ -116,6 +117,7 @@ public interface CreateFunctionRequestOrBuilder *
    * The ID to use for the function, which will become the final component of
    * the function's resource name.
+   *
    * This value should be 4-63 characters, and valid characters
    * are /[a-z][0-9]-/.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java new file mode 100644 index 000000000000..a0bac0453268 --- /dev/null +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java @@ -0,0 +1,261 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.functions.v2beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CryptoKeyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String keyRing; + private final String cryptoKey; + + @Deprecated + protected CryptoKeyName() { + project = null; + location = null; + keyRing = null; + cryptoKey = null; + } + + private CryptoKeyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + keyRing = Preconditions.checkNotNull(builder.getKeyRing()); + cryptoKey = Preconditions.checkNotNull(builder.getCryptoKey()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CryptoKeyName of( + String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build(); + } + + public static String format(String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build() + .toString(); + } + + public static CryptoKeyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.validatedMatch( + formattedString, "CryptoKeyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("key_ring"), + matchMap.get("crypto_key")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CryptoKeyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (keyRing != null) { + fieldMapBuilder.put("key_ring", keyRing); + } + if (cryptoKey != null) { + fieldMapBuilder.put("crypto_key", cryptoKey); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.instantiate( + "project", project, "location", location, "key_ring", keyRing, "crypto_key", cryptoKey); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + CryptoKeyName that = ((CryptoKeyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.keyRing, that.keyRing) + && Objects.equals(this.cryptoKey, that.cryptoKey); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(keyRing); + h *= 1000003; + h ^= Objects.hashCode(cryptoKey); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + */ + public static class Builder { + private String project; + private String location; + private String keyRing; + private String cryptoKey; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setKeyRing(String keyRing) { + this.keyRing = keyRing; + return this; + } + + public Builder setCryptoKey(String cryptoKey) { + this.cryptoKey = cryptoKey; + return this; + } + + private Builder(CryptoKeyName cryptoKeyName) { + this.project = cryptoKeyName.project; + this.location = cryptoKeyName.location; + this.keyRing = cryptoKeyName.keyRing; + this.cryptoKey = cryptoKeyName.cryptoKey; + } + + public CryptoKeyName build() { + return new CryptoKeyName(this); + } + } +} diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java index 59956556b858..ee4ee767f030 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/DeleteFunctionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_DeleteFunctionRequest_descriptor; @@ -363,39 +358,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.DeleteFunctionReque } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.DeleteFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java index 28627e770fa3..8a222f096ba5 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventFilter.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventFilter(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_EventFilter_descriptor; @@ -494,39 +489,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.EventFilter result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.EventFilter) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java index 84f2f44828d0..c0d95bdd75eb 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTrigger.java @@ -55,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventTrigger(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_EventTrigger_descriptor; @@ -243,8 +238,8 @@ private RetryPolicy(int value) { * * *
-   * Output only. The resource name of the Eventarc trigger. The format of this field is
-   * `projects/{project}/locations/{region}/triggers/{trigger}`.
+   * Output only. The resource name of the Eventarc trigger. The format of this
+   * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
    * 
* * @@ -269,8 +264,8 @@ public java.lang.String getTrigger() { * * *
-   * Output only. The resource name of the Eventarc trigger. The format of this field is
-   * `projects/{project}/locations/{region}/triggers/{trigger}`.
+   * Output only. The resource name of the Eventarc trigger. The format of this
+   * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
    * 
* * @@ -487,6 +482,7 @@ public com.google.cloud.functions.v2beta.EventFilterOrBuilder getEventFiltersOrB * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -517,6 +513,7 @@ public java.lang.String getPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -549,8 +546,8 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * * *
-   * Optional. The email of the trigger's service account. The service account must have
-   * permission to invoke Cloud Run services, the permission is
+   * Optional. The email of the trigger's service account. The service account
+   * must have permission to invoke Cloud Run services, the permission is
    * `run.routes.invoke`.
    * If empty, defaults to the Compute Engine default service account:
    * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -576,8 +573,8 @@ public java.lang.String getServiceAccountEmail() {
    *
    *
    * 
-   * Optional. The email of the trigger's service account. The service account must have
-   * permission to invoke Cloud Run services, the permission is
+   * Optional. The email of the trigger's service account. The service account
+   * must have permission to invoke Cloud Run services, the permission is
    * `run.routes.invoke`.
    * If empty, defaults to the Compute Engine default service account:
    * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -606,7 +603,8 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
    *
    *
    * 
-   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+   * them).
    * 
* * @@ -623,7 +621,8 @@ public int getRetryPolicyValue() { * * *
-   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+   * them).
    * 
* * @@ -1054,39 +1053,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.EventTrigger result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.EventTrigger) { @@ -1264,8 +1230,8 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the Eventarc trigger. The format of this field is
-     * `projects/{project}/locations/{region}/triggers/{trigger}`.
+     * Output only. The resource name of the Eventarc trigger. The format of this
+     * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
      * 
* * @@ -1289,8 +1255,8 @@ public java.lang.String getTrigger() { * * *
-     * Output only. The resource name of the Eventarc trigger. The format of this field is
-     * `projects/{project}/locations/{region}/triggers/{trigger}`.
+     * Output only. The resource name of the Eventarc trigger. The format of this
+     * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
      * 
* * @@ -1314,8 +1280,8 @@ public com.google.protobuf.ByteString getTriggerBytes() { * * *
-     * Output only. The resource name of the Eventarc trigger. The format of this field is
-     * `projects/{project}/locations/{region}/triggers/{trigger}`.
+     * Output only. The resource name of the Eventarc trigger. The format of this
+     * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
      * 
* * @@ -1338,8 +1304,8 @@ public Builder setTrigger(java.lang.String value) { * * *
-     * Output only. The resource name of the Eventarc trigger. The format of this field is
-     * `projects/{project}/locations/{region}/triggers/{trigger}`.
+     * Output only. The resource name of the Eventarc trigger. The format of this
+     * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
      * 
* * @@ -1358,8 +1324,8 @@ public Builder clearTrigger() { * * *
-     * Output only. The resource name of the Eventarc trigger. The format of this field is
-     * `projects/{project}/locations/{region}/triggers/{trigger}`.
+     * Output only. The resource name of the Eventarc trigger. The format of this
+     * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
      * 
* * @@ -1977,6 +1943,7 @@ public com.google.cloud.functions.v2beta.EventFilter.Builder addEventFiltersBuil * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2006,6 +1973,7 @@ public java.lang.String getPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2035,6 +2003,7 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2063,6 +2032,7 @@ public Builder setPubsubTopic(java.lang.String value) { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2087,6 +2057,7 @@ public Builder clearPubsubTopic() { * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -2115,8 +2086,8 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The email of the trigger's service account. The service account must have
-     * permission to invoke Cloud Run services, the permission is
+     * Optional. The email of the trigger's service account. The service account
+     * must have permission to invoke Cloud Run services, the permission is
      * `run.routes.invoke`.
      * If empty, defaults to the Compute Engine default service account:
      * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -2141,8 +2112,8 @@ public java.lang.String getServiceAccountEmail() {
      *
      *
      * 
-     * Optional. The email of the trigger's service account. The service account must have
-     * permission to invoke Cloud Run services, the permission is
+     * Optional. The email of the trigger's service account. The service account
+     * must have permission to invoke Cloud Run services, the permission is
      * `run.routes.invoke`.
      * If empty, defaults to the Compute Engine default service account:
      * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -2167,8 +2138,8 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
      *
      *
      * 
-     * Optional. The email of the trigger's service account. The service account must have
-     * permission to invoke Cloud Run services, the permission is
+     * Optional. The email of the trigger's service account. The service account
+     * must have permission to invoke Cloud Run services, the permission is
      * `run.routes.invoke`.
      * If empty, defaults to the Compute Engine default service account:
      * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -2192,8 +2163,8 @@ public Builder setServiceAccountEmail(java.lang.String value) {
      *
      *
      * 
-     * Optional. The email of the trigger's service account. The service account must have
-     * permission to invoke Cloud Run services, the permission is
+     * Optional. The email of the trigger's service account. The service account
+     * must have permission to invoke Cloud Run services, the permission is
      * `run.routes.invoke`.
      * If empty, defaults to the Compute Engine default service account:
      * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -2213,8 +2184,8 @@ public Builder clearServiceAccountEmail() {
      *
      *
      * 
-     * Optional. The email of the trigger's service account. The service account must have
-     * permission to invoke Cloud Run services, the permission is
+     * Optional. The email of the trigger's service account. The service account
+     * must have permission to invoke Cloud Run services, the permission is
      * `run.routes.invoke`.
      * If empty, defaults to the Compute Engine default service account:
      * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -2241,7 +2212,8 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
      *
      *
      * 
-     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+     * them).
      * 
* * @@ -2258,7 +2230,8 @@ public int getRetryPolicyValue() { * * *
-     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+     * them).
      * 
* * @@ -2278,7 +2251,8 @@ public Builder setRetryPolicyValue(int value) { * * *
-     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+     * them).
      * 
* * @@ -2299,7 +2273,8 @@ public com.google.cloud.functions.v2beta.EventTrigger.RetryPolicy getRetryPolicy * * *
-     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+     * them).
      * 
* * @@ -2323,7 +2298,8 @@ public Builder setRetryPolicy( * * *
-     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+     * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+     * them).
      * 
* * diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java index 93c9551beb02..16389bf9dcce 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/EventTriggerOrBuilder.java @@ -27,8 +27,8 @@ public interface EventTriggerOrBuilder * * *
-   * Output only. The resource name of the Eventarc trigger. The format of this field is
-   * `projects/{project}/locations/{region}/triggers/{trigger}`.
+   * Output only. The resource name of the Eventarc trigger. The format of this
+   * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
    * 
* * @@ -42,8 +42,8 @@ public interface EventTriggerOrBuilder * * *
-   * Output only. The resource name of the Eventarc trigger. The format of this field is
-   * `projects/{project}/locations/{region}/triggers/{trigger}`.
+   * Output only. The resource name of the Eventarc trigger. The format of this
+   * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
    * 
* * @@ -173,6 +173,7 @@ public interface EventTriggerOrBuilder * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -192,6 +193,7 @@ public interface EventTriggerOrBuilder * Optional. The name of a Pub/Sub topic in the same project that will be used * as the transport topic for the event delivery. Format: * `projects/{project}/topics/{topic}`. + * * This is only valid for events of type * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here * will not be deleted at function deletion. @@ -209,8 +211,8 @@ public interface EventTriggerOrBuilder * * *
-   * Optional. The email of the trigger's service account. The service account must have
-   * permission to invoke Cloud Run services, the permission is
+   * Optional. The email of the trigger's service account. The service account
+   * must have permission to invoke Cloud Run services, the permission is
    * `run.routes.invoke`.
    * If empty, defaults to the Compute Engine default service account:
    * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -225,8 +227,8 @@ public interface EventTriggerOrBuilder
    *
    *
    * 
-   * Optional. The email of the trigger's service account. The service account must have
-   * permission to invoke Cloud Run services, the permission is
+   * Optional. The email of the trigger's service account. The service account
+   * must have permission to invoke Cloud Run services, the permission is
    * `run.routes.invoke`.
    * If empty, defaults to the Compute Engine default service account:
    * `{project_number}-compute@developer.gserviceaccount.com`.
@@ -242,7 +244,8 @@ public interface EventTriggerOrBuilder
    *
    *
    * 
-   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+   * them).
    * 
* * @@ -256,7 +259,8 @@ public interface EventTriggerOrBuilder * * *
-   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
+   * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
+   * them).
    * 
* * diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java index 9ba3ba8524aa..e57dbfe17c82 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Function.java @@ -40,10 +40,12 @@ private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Function() { name_ = ""; - environment_ = 0; description_ = ""; state_ = 0; stateMessages_ = java.util.Collections.emptyList(); + environment_ = 0; + url_ = ""; + kmsKeyName_ = ""; } @java.lang.Override @@ -52,11 +54,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Function(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_Function_descriptor; @@ -361,41 +358,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int ENVIRONMENT_FIELD_NUMBER = 10; - private int environment_ = 0; - /** - * - * - *
-   * Describe whether the function is gen1 or gen2.
-   * 
- * - * .google.cloud.functions.v2beta.Environment environment = 10; - * - * @return The enum numeric value on the wire for environment. - */ - @java.lang.Override - public int getEnvironmentValue() { - return environment_; - } - /** - * - * - *
-   * Describe whether the function is gen1 or gen2.
-   * 
- * - * .google.cloud.functions.v2beta.Environment environment = 10; - * - * @return The environment. - */ - @java.lang.Override - public com.google.cloud.functions.v2beta.Environment getEnvironment() { - com.google.cloud.functions.v2beta.Environment result = - com.google.cloud.functions.v2beta.Environment.forNumber(environment_); - return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; - } - public static final int DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -878,6 +840,151 @@ public com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesO return stateMessages_.get(index); } + public static final int ENVIRONMENT_FIELD_NUMBER = 10; + private int environment_ = 0; + /** + * + * + *
+   * Describe whether the function is 1st Gen or 2nd Gen.
+   * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + /** + * + * + *
+   * Describe whether the function is 1st Gen or 2nd Gen.
+   * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.functions.v2beta.Environment getEnvironment() { + com.google.cloud.functions.v2beta.Environment result = + com.google.cloud.functions.v2beta.Environment.forNumber(environment_); + return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; + } + + public static final int URL_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + * + * + *
+   * Output only. The deployed url for the function.
+   * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The deployed url for the function.
+   * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -922,6 +1029,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(10, environment_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, kmsKeyName_); + } getUnknownFields().writeTo(output); } @@ -969,6 +1082,12 @@ public int getSerializedSize() { != com.google.cloud.functions.v2beta.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, environment_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, kmsKeyName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -986,7 +1105,6 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.functions.v2beta.Function) obj; if (!getName().equals(other.getName())) return false; - if (environment_ != other.environment_) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { @@ -1007,6 +1125,9 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getStateMessagesList().equals(other.getStateMessagesList())) return false; + if (environment_ != other.environment_) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1020,8 +1141,6 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; - hash = (53 * hash) + environment_; hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasBuildConfig()) { @@ -1050,6 +1169,12 @@ public int hashCode() { hash = (37 * hash) + STATE_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getStateMessagesList().hashCode(); } + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + environment_; + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1211,7 +1336,6 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - environment_ = 0; description_ = ""; buildConfig_ = null; if (buildConfigBuilder_ != null) { @@ -1241,7 +1365,10 @@ public Builder clear() { stateMessages_ = null; stateMessagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); + environment_ = 0; + url_ = ""; + kmsKeyName_ = ""; return this; } @@ -1279,9 +1406,9 @@ public com.google.cloud.functions.v2beta.Function buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.functions.v2beta.Function result) { if (stateMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { stateMessages_ = java.util.Collections.unmodifiableList(stateMessages_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); } result.stateMessages_ = stateMessages_; } else { @@ -1295,66 +1422,39 @@ private void buildPartial0(com.google.cloud.functions.v2beta.Function result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.environment_ = environment_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.buildConfig_ = buildConfigBuilder_ == null ? buildConfig_ : buildConfigBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.serviceConfig_ = serviceConfigBuilder_ == null ? serviceConfig_ : serviceConfigBuilder_.build(); } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.eventTrigger_ = eventTriggerBuilder_ == null ? eventTrigger_ : eventTriggerBuilder_.build(); } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000200) != 0)) { + result.environment_ = environment_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } } @java.lang.Override @@ -1374,12 +1474,9 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.environment_ != 0) { - setEnvironmentValue(other.getEnvironmentValue()); - } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasBuildConfig()) { @@ -1398,12 +1495,12 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; if (stateMessagesBuilder_ == null) { if (!other.stateMessages_.isEmpty()) { if (stateMessages_.isEmpty()) { stateMessages_ = other.stateMessages_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureStateMessagesIsMutable(); stateMessages_.addAll(other.stateMessages_); @@ -1416,7 +1513,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) { stateMessagesBuilder_.dispose(); stateMessagesBuilder_ = null; stateMessages_ = other.stateMessages_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); stateMessagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStateMessagesFieldBuilder() @@ -1426,6 +1523,19 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.Function other) { } } } + if (other.environment_ != 0) { + setEnvironmentValue(other.getEnvironmentValue()); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000800; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1461,37 +1571,37 @@ public Builder mergeFrom( case 18: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getBuildConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getServiceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getEventTriggerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; break; } // case 42 case 48: { state_ = input.readEnum(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; break; } // case 58 case 66: @@ -1503,7 +1613,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; break; } // case 66 case 74: @@ -1522,9 +1632,21 @@ public Builder mergeFrom( case 80: { environment_ = input.readEnum(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000200; break; } // case 80 + case 114: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 114 + case 202: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1655,129 +1777,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int environment_ = 0; + private java.lang.Object description_ = ""; /** * * *
-     * Describe whether the function is gen1 or gen2.
+     * User-provided description of a function.
      * 
* - * .google.cloud.functions.v2beta.Environment environment = 10; + * string description = 2; * - * @return The enum numeric value on the wire for environment. + * @return The description. */ - @java.lang.Override - public int getEnvironmentValue() { - return environment_; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Describe whether the function is gen1 or gen2.
+     * User-provided description of a function.
      * 
* - * .google.cloud.functions.v2beta.Environment environment = 10; + * string description = 2; * - * @param value The enum numeric value on the wire for environment to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentValue(int value) { - environment_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Describe whether the function is gen1 or gen2.
-     * 
- * - * .google.cloud.functions.v2beta.Environment environment = 10; - * - * @return The environment. - */ - @java.lang.Override - public com.google.cloud.functions.v2beta.Environment getEnvironment() { - com.google.cloud.functions.v2beta.Environment result = - com.google.cloud.functions.v2beta.Environment.forNumber(environment_); - return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Describe whether the function is gen1 or gen2.
-     * 
- * - * .google.cloud.functions.v2beta.Environment environment = 10; - * - * @param value The environment to set. - * @return This builder for chaining. - */ - public Builder setEnvironment(com.google.cloud.functions.v2beta.Environment value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - environment_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Describe whether the function is gen1 or gen2.
-     * 
- * - * .google.cloud.functions.v2beta.Environment environment = 10; - * - * @return This builder for chaining. - */ - public Builder clearEnvironment() { - bitField0_ = (bitField0_ & ~0x00000002); - environment_ = 0; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * User-provided description of a function.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * User-provided description of a function.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -1807,7 +1839,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1824,7 +1856,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1846,7 +1878,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1870,7 +1902,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1912,7 +1944,7 @@ public Builder setBuildConfig(com.google.cloud.functions.v2beta.BuildConfig valu } else { buildConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1933,7 +1965,7 @@ public Builder setBuildConfig( } else { buildConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1949,7 +1981,7 @@ public Builder setBuildConfig( */ public Builder mergeBuildConfig(com.google.cloud.functions.v2beta.BuildConfig value) { if (buildConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000004) != 0) && buildConfig_ != null && buildConfig_ != com.google.cloud.functions.v2beta.BuildConfig.getDefaultInstance()) { getBuildConfigBuilder().mergeFrom(value); @@ -1959,7 +1991,7 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2beta.BuildConfig va } else { buildConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1974,7 +2006,7 @@ public Builder mergeBuildConfig(com.google.cloud.functions.v2beta.BuildConfig va * .google.cloud.functions.v2beta.BuildConfig build_config = 3; */ public Builder clearBuildConfig() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); buildConfig_ = null; if (buildConfigBuilder_ != null) { buildConfigBuilder_.dispose(); @@ -1994,7 +2026,7 @@ public Builder clearBuildConfig() { * .google.cloud.functions.v2beta.BuildConfig build_config = 3; */ public com.google.cloud.functions.v2beta.BuildConfig.Builder getBuildConfigBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return getBuildConfigFieldBuilder().getBuilder(); } @@ -2063,7 +2095,7 @@ public com.google.cloud.functions.v2beta.BuildConfigOrBuilder getBuildConfigOrBu * @return Whether the serviceConfig field is set. */ public boolean hasServiceConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2105,7 +2137,7 @@ public Builder setServiceConfig(com.google.cloud.functions.v2beta.ServiceConfig } else { serviceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2126,7 +2158,7 @@ public Builder setServiceConfig( } else { serviceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2142,7 +2174,7 @@ public Builder setServiceConfig( */ public Builder mergeServiceConfig(com.google.cloud.functions.v2beta.ServiceConfig value) { if (serviceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000008) != 0) && serviceConfig_ != null && serviceConfig_ != com.google.cloud.functions.v2beta.ServiceConfig.getDefaultInstance()) { @@ -2153,7 +2185,7 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2beta.ServiceConfi } else { serviceConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2168,7 +2200,7 @@ public Builder mergeServiceConfig(com.google.cloud.functions.v2beta.ServiceConfi * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; */ public Builder clearServiceConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); serviceConfig_ = null; if (serviceConfigBuilder_ != null) { serviceConfigBuilder_.dispose(); @@ -2188,7 +2220,7 @@ public Builder clearServiceConfig() { * .google.cloud.functions.v2beta.ServiceConfig service_config = 4; */ public com.google.cloud.functions.v2beta.ServiceConfig.Builder getServiceConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; onChanged(); return getServiceConfigFieldBuilder().getBuilder(); } @@ -2257,7 +2289,7 @@ public com.google.cloud.functions.v2beta.ServiceConfigOrBuilder getServiceConfig * @return Whether the eventTrigger field is set. */ public boolean hasEventTrigger() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2299,7 +2331,7 @@ public Builder setEventTrigger(com.google.cloud.functions.v2beta.EventTrigger va } else { eventTriggerBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2320,7 +2352,7 @@ public Builder setEventTrigger( } else { eventTriggerBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2336,7 +2368,7 @@ public Builder setEventTrigger( */ public Builder mergeEventTrigger(com.google.cloud.functions.v2beta.EventTrigger value) { if (eventTriggerBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000010) != 0) && eventTrigger_ != null && eventTrigger_ != com.google.cloud.functions.v2beta.EventTrigger.getDefaultInstance()) { @@ -2347,7 +2379,7 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2beta.EventTrigger } else { eventTriggerBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2362,7 +2394,7 @@ public Builder mergeEventTrigger(com.google.cloud.functions.v2beta.EventTrigger * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; */ public Builder clearEventTrigger() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); eventTrigger_ = null; if (eventTriggerBuilder_ != null) { eventTriggerBuilder_.dispose(); @@ -2382,7 +2414,7 @@ public Builder clearEventTrigger() { * .google.cloud.functions.v2beta.EventTrigger event_trigger = 5; */ public com.google.cloud.functions.v2beta.EventTrigger.Builder getEventTriggerBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return getEventTriggerFieldBuilder().getBuilder(); } @@ -2466,7 +2498,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2509,7 +2541,7 @@ public Builder setState(com.google.cloud.functions.v2beta.Function.State value) if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -2528,7 +2560,7 @@ public Builder setState(com.google.cloud.functions.v2beta.Function.State value) * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; @@ -2554,7 +2586,7 @@ public Builder clearState() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2598,7 +2630,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2619,7 +2651,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2636,7 +2668,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000040) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2646,7 +2678,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2662,7 +2694,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000040); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2683,7 +2715,7 @@ public Builder clearUpdateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000040; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2752,7 +2784,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; onChanged(); return labels_; } @@ -2837,7 +2869,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2860,7 +2892,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** @@ -2880,7 +2912,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return this; } /** @@ -2894,7 +2926,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000080; return this; } @@ -2902,10 +2934,10 @@ public Builder putAllLabels(java.util.Map va java.util.Collections.emptyList(); private void ensureStateMessagesIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { stateMessages_ = new java.util.ArrayList(stateMessages_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000100; } } @@ -3145,7 +3177,7 @@ public Builder addAllStateMessages( public Builder clearStateMessages() { if (stateMessagesBuilder_ == null) { stateMessages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { stateMessagesBuilder_.clear(); @@ -3285,7 +3317,7 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu com.google.cloud.functions.v2beta.StateMessage.Builder, com.google.cloud.functions.v2beta.StateMessageOrBuilder>( stateMessages_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); stateMessages_ = null; @@ -3293,6 +3325,328 @@ public com.google.cloud.functions.v2beta.StateMessage.Builder addStateMessagesBu return stateMessagesBuilder_; } + private int environment_ = 0; + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @return The enum numeric value on the wire for environment. + */ + @java.lang.Override + public int getEnvironmentValue() { + return environment_; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @param value The enum numeric value on the wire for environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentValue(int value) { + environment_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @return The environment. + */ + @java.lang.Override + public com.google.cloud.functions.v2beta.Environment getEnvironment() { + com.google.cloud.functions.v2beta.Environment result = + com.google.cloud.functions.v2beta.Environment.forNumber(environment_); + return result == null ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @param value The environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironment(com.google.cloud.functions.v2beta.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + environment_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Describe whether the function is 1st Gen or 2nd Gen.
+     * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + bitField0_ = (bitField0_ & ~0x00000200); + environment_ = 0; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + * + * + *
+     * Output only. The deployed url for the function.
+     * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The deployed url for the function.
+     * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The deployed url for the function.
+     * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The deployed url for the function.
+     * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The deployed url for the function.
+     * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function resources.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java index 7f7e191e689f..cc8aa9de0487 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionOrBuilder.java @@ -50,31 +50,6 @@ public interface FunctionOrBuilder */ com.google.protobuf.ByteString getNameBytes(); - /** - * - * - *
-   * Describe whether the function is gen1 or gen2.
-   * 
- * - * .google.cloud.functions.v2beta.Environment environment = 10; - * - * @return The enum numeric value on the wire for environment. - */ - int getEnvironmentValue(); - /** - * - * - *
-   * Describe whether the function is gen1 or gen2.
-   * 
- * - * .google.cloud.functions.v2beta.Environment environment = 10; - * - * @return The environment. - */ - com.google.cloud.functions.v2beta.Environment getEnvironment(); - /** * * @@ -400,4 +375,87 @@ java.lang.String getLabelsOrDefault( * */ com.google.cloud.functions.v2beta.StateMessageOrBuilder getStateMessagesOrBuilder(int index); + + /** + * + * + *
+   * Describe whether the function is 1st Gen or 2nd Gen.
+   * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @return The enum numeric value on the wire for environment. + */ + int getEnvironmentValue(); + /** + * + * + *
+   * Describe whether the function is 1st Gen or 2nd Gen.
+   * 
+ * + * .google.cloud.functions.v2beta.Environment environment = 10; + * + * @return The environment. + */ + com.google.cloud.functions.v2beta.Environment getEnvironment(); + + /** + * + * + *
+   * Output only. The deployed url for the function.
+   * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The url. + */ + java.lang.String getUrl(); + /** + * + * + *
+   * Output only. The deployed url for the function.
+   * 
+ * + * string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function resources.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   * 
+ * + * string kms_key_name = 25 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java index 2ba69452a2bd..3afd23cf865b 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionsProto.java @@ -147,6 +147,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_functions_v2beta_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_functions_v2beta_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_functions_v2beta_LocationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_functions_v2beta_Stage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -166,247 +170,267 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/client.proto\032\037google/api/field_behavior" + ".proto\032\031google/api/resource.proto\032#googl" + "e/longrunning/operations.proto\032\031google/p" - + "rotobuf/any.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\323\006\n\010Function\022\014\n\004name\030\001 \001(\t\022?\n\013envir" - + "onment\030\n \001(\0162*.google.cloud.functions.v2" - + "beta.Environment\022\023\n\013description\030\002 \001(\t\022@\n" - + "\014build_config\030\003 \001(\0132*.google.cloud.funct" - + "ions.v2beta.BuildConfig\022D\n\016service_confi" - + "g\030\004 \001(\0132,.google.cloud.functions.v2beta." - + "ServiceConfig\022B\n\revent_trigger\030\005 \001(\0132+.g" - + "oogle.cloud.functions.v2beta.EventTrigge" - + "r\022A\n\005state\030\006 \001(\0162-.google.cloud.function" - + "s.v2beta.Function.StateB\003\340A\003\0224\n\013update_t" - + "ime\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022C\n\006labels\030\010 \003(\01323.google.cloud.functi" - + "ons.v2beta.Function.LabelsEntry\022H\n\016state" - + "_messages\030\t \003(\0132+.google.cloud.functions" - + ".v2beta.StateMessageB\003\340A\003\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006" - + "FAILED\020\002\022\r\n\tDEPLOYING\020\003\022\014\n\010DELETING\020\004\022\013\n" - + "\007UNKNOWN\020\005:~\352A{\n&cloudfunctions.googleap" - + "is.com/Function\022\n\013worker_pool\030\005" - + " \001(\tB)\372A&\n$cloudbuild.googleapis.com/Wor" - + "kerPool\022c\n\025environment_variables\030\006 \003(\0132D" - + ".google.cloud.functions.v2beta.BuildConf" - + "ig.EnvironmentVariablesEntry\022M\n\021docker_r" - + "epository\030\007 \001(\tB2\340A\001\372A,\n*artifactregistr" - + "y.googleapis.com/Repository\032;\n\031Environme" - + "ntVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\324\010\n\rServiceConfig\0223\n\007service\030\001 " - + "\001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Service\022" - + "\027\n\017timeout_seconds\030\002 \001(\005\022\030\n\020available_me" - + "mory\030\r \001(\t\022e\n\025environment_variables\030\004 \003(" - + "\0132F.google.cloud.functions.v2beta.Servic" - + "eConfig.EnvironmentVariablesEntry\022\032\n\022max" - + "_instance_count\030\005 \001(\005\022\032\n\022min_instance_co" - + "unt\030\014 \001(\005\022>\n\rvpc_connector\030\006 \001(\tB\'\372A$\n\"v" - + "pcaccess.googleapis.com/Connector\022n\n\035vpc" - + "_connector_egress_settings\030\007 \001(\0162G.googl" - + "e.cloud.functions.v2beta.ServiceConfig.V" - + "pcConnectorEgressSettings\022V\n\020ingress_set" - + "tings\030\010 \001(\0162<.google.cloud.functions.v2b" - + "eta.ServiceConfig.IngressSettings\022\020\n\003uri" - + "\030\t \001(\tB\003\340A\003\022\035\n\025service_account_email\030\n \001" - + "(\t\022&\n\036all_traffic_on_latest_revision\030\020 \001" - + "(\010\022Q\n\034secret_environment_variables\030\021 \003(\013" - + "2+.google.cloud.functions.v2beta.SecretE" - + "nvVar\022C\n\016secret_volumes\030\023 \003(\0132+.google.c" - + "loud.functions.v2beta.SecretVolume\022\025\n\010re" - + "vision\030\022 \001(\tB\003\340A\003\032;\n\031EnvironmentVariable" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u" - + "\n\032VpcConnectorEgressSettings\022-\n)VPC_CONN" - + "ECTOR_EGRESS_SETTINGS_UNSPECIFIED\020\000\022\027\n\023P" - + "RIVATE_RANGES_ONLY\020\001\022\017\n\013ALL_TRAFFIC\020\002\"x\n" - + "\017IngressSettings\022 \n\034INGRESS_SETTINGS_UNS" - + "PECIFIED\020\000\022\r\n\tALLOW_ALL\020\001\022\027\n\023ALLOW_INTER" - + "NAL_ONLY\020\002\022\033\n\027ALLOW_INTERNAL_AND_GCLB\020\003\"" - + "P\n\014SecretEnvVar\022\013\n\003key\030\001 \001(\t\022\022\n\nproject_" - + "id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022\017\n\007version\030\004 \001(" - + "\t\"\303\001\n\014SecretVolume\022\022\n\nmount_path\030\001 \001(\t\022\022" - + "\n\nproject_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022K\n\010ve" - + "rsions\030\004 \003(\01329.google.cloud.functions.v2" - + "beta.SecretVolume.SecretVersion\032.\n\rSecre" - + "tVersion\022\017\n\007version\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"" - + "\215\004\n\014EventTrigger\0228\n\007trigger\030\001 \001(\tB\'\340A\003\372A" - + "!\n\037eventarc.googleapis.com/Trigger\022\026\n\016tr" - + "igger_region\030\002 \001(\t\022\027\n\nevent_type\030\003 \001(\tB\003" - + "\340A\002\022A\n\revent_filters\030\004 \003(\0132*.google.clou" - + "d.functions.v2beta.EventFilter\0229\n\014pubsub" - + "_topic\030\005 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis." - + "com/Topic\022\"\n\025service_account_email\030\006 \001(\t" - + "B\003\340A\001\022R\n\014retry_policy\030\007 \001(\01627.google.clo" - + "ud.functions.v2beta.EventTrigger.RetryPo" - + "licyB\003\340A\001\0228\n\007channel\030\010 \001(\tB\'\340A\001\372A!\n\037even" - + "tarc.googleapis.com/Channel\"b\n\013RetryPoli" - + "cy\022\034\n\030RETRY_POLICY_UNSPECIFIED\020\000\022\035\n\031RETR" - + "Y_POLICY_DO_NOT_RETRY\020\001\022\026\n\022RETRY_POLICY_" - + "RETRY\020\002\"P\n\013EventFilter\022\026\n\tattribute\030\001 \001(" - + "\tB\003\340A\002\022\022\n\005value\030\002 \001(\tB\003\340A\002\022\025\n\010operator\030\003" - + " \001(\tB\003\340A\001\"R\n\022GetFunctionRequest\022<\n\004name\030" - + "\001 \001(\tB.\340A\002\372A(\n&cloudfunctions.googleapis" - + ".com/Function\"\237\001\n\024ListFunctionsRequest\022>" - + "\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&cloudfunctions.g" - + "oogleapis.com/Function\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"\201\001\n\025ListFunctionsRespons" - + "e\022:\n\tfunctions\030\001 \003(\0132\'.google.cloud.func" - + "tions.v2beta.Function\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\247\001\n\025CreateFu" - + "nctionRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\022>\n\010func" - + "tion\030\002 \001(\0132\'.google.cloud.functions.v2be" - + "ta.FunctionB\003\340A\002\022\023\n\013function_id\030\003 \001(\t\"\210\001" - + "\n\025UpdateFunctionRequest\022>\n\010function\030\001 \001(" - + "\0132\'.google.cloud.functions.v2beta.Functi" - + "onB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMask\"U\n\025DeleteFunctionReques" - + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&cloudfunctions." - + "googleapis.com/Function\"U\n\030GenerateUploa" - + "dUrlRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" - + "ations.googleapis.com/Location\"u\n\031Genera" - + "teUploadUrlResponse\022\022\n\nupload_url\030\001 \001(\t\022" - + "D\n\016storage_source\030\002 \001(\0132,.google.cloud.f" - + "unctions.v2beta.StorageSource\"Z\n\032Generat" - + "eDownloadUrlRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A" - + "(\n&cloudfunctions.googleapis.com/Functio" - + "n\"3\n\033GenerateDownloadUrlResponse\022\024\n\014down" - + "load_url\030\001 \001(\t\"`\n\023ListRuntimesRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" - + "pis.com/Location\022\016\n\006filter\030\002 \001(\t\"\272\003\n\024Lis" - + "tRuntimesResponse\022M\n\010runtimes\030\001 \003(\0132;.go" - + "ogle.cloud.functions.v2beta.ListRuntimes" - + "Response.Runtime\032\321\001\n\007Runtime\022\014\n\004name\030\001 \001" - + "(\t\022\024\n\014display_name\030\005 \001(\t\022O\n\005stage\030\002 \001(\0162" - + "@.google.cloud.functions.v2beta.ListRunt" - + "imesResponse.RuntimeStage\022\020\n\010warnings\030\003 " - + "\003(\t\022?\n\013environment\030\004 \001(\0162*.google.cloud." - + "functions.v2beta.Environment\"\177\n\014RuntimeS" - + "tage\022\035\n\031RUNTIME_STAGE_UNSPECIFIED\020\000\022\017\n\013D" - + "EVELOPMENT\020\001\022\t\n\005ALPHA\020\002\022\010\n\004BETA\020\003\022\006\n\002GA\020" - + "\004\022\016\n\nDEPRECATED\020\005\022\022\n\016DECOMMISSIONED\020\006\"\274\002" - + "\n\021OperationMetadata\022/\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp\022,\n\010end_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\016\n\006ta" - + "rget\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detai" - + "l\030\005 \001(\t\022\030\n\020cancel_requested\030\006 \001(\010\022\023\n\013api" - + "_version\030\007 \001(\t\022.\n\020request_resource\030\010 \001(\013" - + "2\024.google.protobuf.Any\0224\n\006stages\030\t \003(\0132$" - + ".google.cloud.functions.v2beta.Stage\"\320\003\n" - + "\005Stage\0227\n\004name\030\001 \001(\0162).google.cloud.func" - + "tions.v2beta.Stage.Name\022\017\n\007message\030\002 \001(\t" - + "\0229\n\005state\030\003 \001(\0162*.google.cloud.functions" - + ".v2beta.Stage.State\022\020\n\010resource\030\004 \001(\t\022\024\n" - + "\014resource_uri\030\005 \001(\t\022C\n\016state_messages\030\006 " - + "\003(\0132+.google.cloud.functions.v2beta.Stat" - + "eMessage\"\204\001\n\004Name\022\024\n\020NAME_UNSPECIFIED\020\000\022" - + "\025\n\021ARTIFACT_REGISTRY\020\001\022\t\n\005BUILD\020\002\022\013\n\007SER" - + "VICE\020\003\022\013\n\007TRIGGER\020\004\022\024\n\020SERVICE_ROLLBACK\020" - + "\005\022\024\n\020TRIGGER_ROLLBACK\020\006\"N\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\017\n\013IN_P" - + "ROGRESS\020\002\022\014\n\010COMPLETE\020\003*@\n\013Environment\022\033" - + "\n\027ENVIRONMENT_UNSPECIFIED\020\000\022\t\n\005GEN_1\020\001\022\t" - + "\n\005GEN_2\020\0022\222\017\n\017FunctionService\022\253\001\n\013GetFun" - + "ction\0221.google.cloud.functions.v2beta.Ge" - + "tFunctionRequest\032\'.google.cloud.function" - + "s.v2beta.Function\"@\202\323\344\223\0023\0221/v2beta/{name" - + "=projects/*/locations/*/functions/*}\332A\004n" - + "ame\022\276\001\n\rListFunctions\0223.google.cloud.fun" - + "ctions.v2beta.ListFunctionsRequest\0324.goo" - + "gle.cloud.functions.v2beta.ListFunctions" - + "Response\"B\202\323\344\223\0023\0221/v2beta/{parent=projec" - + "ts/*/locations/*}/functions\332A\006parent\022\245\002\n" - + "\016CreateFunction\0224.google.cloud.functions" - + ".v2beta.CreateFunctionRequest\032\035.google.l" - + "ongrunning.Operation\"\275\001\202\323\344\223\002=\"1/v2beta/{" - + "parent=projects/*/locations/*}/functions" - + ":\010function\332A\033parent,function,function_id" - + "\312AY\n&google.cloud.functions.v2beta.Funct" - + "ion\022/google.cloud.functions.v2beta.Opera" - + "tionMetadata\022\247\002\n\016UpdateFunction\0224.google" - + ".cloud.functions.v2beta.UpdateFunctionRe" - + "quest\032\035.google.longrunning.Operation\"\277\001\202" - + "\323\344\223\002F2:/v2beta/{function.name=projects/*" - + "/locations/*/functions/*}:\010function\332A\024fu" - + "nction,update_mask\312AY\n&google.cloud.func" - + "tions.v2beta.Function\022/google.cloud.func" - + "tions.v2beta.OperationMetadata\022\363\001\n\016Delet" - + "eFunction\0224.google.cloud.functions.v2bet" - + "a.DeleteFunctionRequest\032\035.google.longrun" - + "ning.Operation\"\213\001\202\323\344\223\0023*1/v2beta/{name=p" - + "rojects/*/locations/*/functions/*}\332A\004nam" - + "e\312AH\n\025google.protobuf.Empty\022/google.clou" - + "d.functions.v2beta.OperationMetadata\022\326\001\n" - + "\021GenerateUploadUrl\0227.google.cloud.functi" - + "ons.v2beta.GenerateUploadUrlRequest\0328.go" - + "ogle.cloud.functions.v2beta.GenerateUplo" - + "adUrlResponse\"N\202\323\344\223\002H\"C/v2beta/{parent=p" - + "rojects/*/locations/*}/functions:generat" - + "eUploadUrl:\001*\022\336\001\n\023GenerateDownloadUrl\0229." - + "google.cloud.functions.v2beta.GenerateDo" - + "wnloadUrlRequest\032:.google.cloud.function" - + "s.v2beta.GenerateDownloadUrlResponse\"P\202\323" - + "\344\223\002J\"E/v2beta/{name=projects/*/locations" - + "/*/functions/*}:generateDownloadUrl:\001*\022\272" - + "\001\n\014ListRuntimes\0222.google.cloud.functions" - + ".v2beta.ListRuntimesRequest\0323.google.clo" - + "ud.functions.v2beta.ListRuntimesResponse" - + "\"A\202\323\344\223\0022\0220/v2beta/{parent=projects/*/loc" - + "ations/*}/runtimes\332A\006parent\032Q\312A\035cloudfun" - + "ctions.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\373\006\n!com.g" - + "oogle.cloud.functions.v2betaB\016FunctionsP" - + "rotoP\001Z?cloud.google.com/go/functions/ap" - + "iv2beta/functionspb;functionspb\242\002\003GCF\352Ao" - + "\n*artifactregistry.googleapis.com/Reposi" - + "tory\022Aprojects/{project}/locations/{loca" - + "tion}/repositories/{repository}\352AY\n\037clou" - + "dbuild.googleapis.com/Build\0226projects/{p" - + "roject}/locations/{location}/builds/{bui" - + "ld}\352Ai\n$cloudbuild.googleapis.com/Worker" - + "Pool\022Aprojects/{project}/locations/{loca" - + "tion}/workerPools/{worker_pool}\352AX\n\032run." - + "googleapis.com/Service\022:projects/{projec" - + "t}/locations/{location}/services/{servic" - + "e}\352Ad\n\"vpcaccess.googleapis.com/Connecto" - + "r\022>projects/{project}/locations/{locatio" - + "n}/connectors/{connector}\352A]\n\037eventarc.g" - + "oogleapis.com/Trigger\022:projects/{project" - + "}/locations/{location}/triggers/{trigger" - + "}\352A]\n\037eventarc.googleapis.com/Channel\022:p" - + "rojects/{project}/locations/{location}/c" - + "hannels/{channel}\352A@\n\033pubsub.googleapis." - + "com/Topic\022!projects/{project}/topics/{to" - + "pic}b\006proto3" + + "rotobuf/any.proto\032\033google/protobuf/empty" + + ".proto\032 google/protobuf/field_mask.proto" + + "\032\037google/protobuf/timestamp.proto\"\247\007\n\010Fu" + + "nction\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(" + + "\t\022@\n\014build_config\030\003 \001(\0132*.google.cloud.f" + + "unctions.v2beta.BuildConfig\022D\n\016service_c" + + "onfig\030\004 \001(\0132,.google.cloud.functions.v2b" + + "eta.ServiceConfig\022B\n\revent_trigger\030\005 \001(\013" + + "2+.google.cloud.functions.v2beta.EventTr" + + "igger\022B\n\005state\030\006 \001(\0162-.google.cloud.func" + + "tions.v2beta.Function.StateB\004\342A\001\003\0225\n\013upd" + + "ate_time\030\007 \001(\0132\032.google.protobuf.Timesta" + + "mpB\004\342A\001\003\022C\n\006labels\030\010 \003(\01323.google.cloud." + + "functions.v2beta.Function.LabelsEntry\022I\n" + + "\016state_messages\030\t \003(\0132+.google.cloud.fun" + + "ctions.v2beta.StateMessageB\004\342A\001\003\022?\n\013envi" + + "ronment\030\n \001(\0162*.google.cloud.functions.v" + + "2beta.Environment\022\021\n\003url\030\016 \001(\tB\004\342A\001\003\022<\n\014" + + "kms_key_name\030\031 \001(\tB&\372A#\n!cloudkms.google" + + "apis.com/CryptoKey\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006FAILED\020" + + "\002\022\r\n\tDEPLOYING\020\003\022\014\n\010DELETING\020\004\022\013\n\007UNKNOW" + + "N\020\005:~\352A{\n&cloudfunctions.googleapis.com/" + + "Function\022\n\013worker_pool\030\005 \001(\tB" + + ")\372A&\n$cloudbuild.googleapis.com/WorkerPo" + + "ol\022c\n\025environment_variables\030\006 \003(\0132D.goog" + + "le.cloud.functions.v2beta.BuildConfig.En" + + "vironmentVariablesEntry\022R\n\017docker_regist" + + "ry\030\n \001(\01629.google.cloud.functions.v2beta" + + ".BuildConfig.DockerRegistry\022J\n\021docker_re" + + "pository\030\007 \001(\tB/\372A,\n*artifactregistry.go" + + "ogleapis.com/Repository\032;\n\031EnvironmentVa" + + "riablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"`\n\016DockerRegistry\022\037\n\033DOCKER_REGISTR" + + "Y_UNSPECIFIED\020\000\022\026\n\022CONTAINER_REGISTRY\020\001\022" + + "\025\n\021ARTIFACT_REGISTRY\020\002\"\305\n\n\rServiceConfig" + + "\0224\n\007service\030\001 \001(\tB#\342A\001\003\372A\034\n\032run.googleap" + + "is.com/Service\022\027\n\017timeout_seconds\030\002 \001(\005\022" + + "\030\n\020available_memory\030\r \001(\t\022\025\n\ravailable_c" + + "pu\030\026 \001(\t\022e\n\025environment_variables\030\004 \003(\0132" + + "F.google.cloud.functions.v2beta.ServiceC" + + "onfig.EnvironmentVariablesEntry\022\032\n\022max_i" + + "nstance_count\030\005 \001(\005\022\032\n\022min_instance_coun" + + "t\030\014 \001(\005\022>\n\rvpc_connector\030\006 \001(\tB\'\372A$\n\"vpc" + + "access.googleapis.com/Connector\022n\n\035vpc_c" + + "onnector_egress_settings\030\007 \001(\0162G.google." + + "cloud.functions.v2beta.ServiceConfig.Vpc" + + "ConnectorEgressSettings\022V\n\020ingress_setti" + + "ngs\030\010 \001(\0162<.google.cloud.functions.v2bet" + + "a.ServiceConfig.IngressSettings\022\021\n\003uri\030\t" + + " \001(\tB\004\342A\001\003\022\035\n\025service_account_email\030\n \001(" + + "\t\022&\n\036all_traffic_on_latest_revision\030\020 \001(" + + "\010\022Q\n\034secret_environment_variables\030\021 \003(\0132" + + "+.google.cloud.functions.v2beta.SecretEn" + + "vVar\022C\n\016secret_volumes\030\023 \003(\0132+.google.cl" + + "oud.functions.v2beta.SecretVolume\022\026\n\010rev" + + "ision\030\022 \001(\tB\004\342A\001\003\022(\n max_instance_reques" + + "t_concurrency\030\024 \001(\005\022R\n\016security_level\030\025 " + + "\001(\0162:.google.cloud.functions.v2beta.Serv" + + "iceConfig.SecurityLevel\032;\n\031EnvironmentVa" + + "riablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"u\n\032VpcConnectorEgressSettings\022-\n)VP" + + "C_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\020" + + "\000\022\027\n\023PRIVATE_RANGES_ONLY\020\001\022\017\n\013ALL_TRAFFI" + + "C\020\002\"x\n\017IngressSettings\022 \n\034INGRESS_SETTIN" + + "GS_UNSPECIFIED\020\000\022\r\n\tALLOW_ALL\020\001\022\027\n\023ALLOW" + + "_INTERNAL_ONLY\020\002\022\033\n\027ALLOW_INTERNAL_AND_G" + + "CLB\020\003\"W\n\rSecurityLevel\022\036\n\032SECURITY_LEVEL" + + "_UNSPECIFIED\020\000\022\021\n\rSECURE_ALWAYS\020\001\022\023\n\017SEC" + + "URE_OPTIONAL\020\002\"P\n\014SecretEnvVar\022\013\n\003key\030\001 " + + "\001(\t\022\022\n\nproject_id\030\002 \001(\t\022\016\n\006secret\030\003 \001(\t\022" + + "\017\n\007version\030\004 \001(\t\"\303\001\n\014SecretVolume\022\022\n\nmou" + + "nt_path\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\016\n\006sec" + + "ret\030\003 \001(\t\022K\n\010versions\030\004 \003(\01329.google.clo" + + "ud.functions.v2beta.SecretVolume.SecretV" + + "ersion\032.\n\rSecretVersion\022\017\n\007version\030\001 \001(\t" + + "\022\014\n\004path\030\002 \001(\t\"\223\004\n\014EventTrigger\0229\n\007trigg" + + "er\030\001 \001(\tB(\342A\001\003\372A!\n\037eventarc.googleapis.c" + + "om/Trigger\022\026\n\016trigger_region\030\002 \001(\t\022\030\n\nev" + + "ent_type\030\003 \001(\tB\004\342A\001\002\022A\n\revent_filters\030\004 " + + "\003(\0132*.google.cloud.functions.v2beta.Even" + + "tFilter\022:\n\014pubsub_topic\030\005 \001(\tB$\342A\001\001\372A\035\n\033" + + "pubsub.googleapis.com/Topic\022#\n\025service_a" + + "ccount_email\030\006 \001(\tB\004\342A\001\001\022S\n\014retry_policy" + + "\030\007 \001(\01627.google.cloud.functions.v2beta.E" + + "ventTrigger.RetryPolicyB\004\342A\001\001\0229\n\007channel" + + "\030\010 \001(\tB(\342A\001\001\372A!\n\037eventarc.googleapis.com" + + "/Channel\"b\n\013RetryPolicy\022\034\n\030RETRY_POLICY_" + + "UNSPECIFIED\020\000\022\035\n\031RETRY_POLICY_DO_NOT_RET" + + "RY\020\001\022\026\n\022RETRY_POLICY_RETRY\020\002\"S\n\013EventFil" + + "ter\022\027\n\tattribute\030\001 \001(\tB\004\342A\001\002\022\023\n\005value\030\002 " + + "\001(\tB\004\342A\001\002\022\026\n\010operator\030\003 \001(\tB\004\342A\001\001\"S\n\022Get" + + "FunctionRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&" + + "cloudfunctions.googleapis.com/Function\"\240" + + "\001\n\024ListFunctionsRequest\022?\n\006parent\030\001 \001(\tB" + + "/\342A\001\002\372A(\022&cloudfunctions.googleapis.com/" + + "Function\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(" + + "\t\"\201\001\n\025ListFunctionsResponse\022:\n\tfunctions" + + "\030\001 \003(\0132\'.google.cloud.functions.v2beta.F" + + "unction\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"\251\001\n\025CreateFunctionRequest\022" + + ":\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goog" + + "leapis.com/Location\022?\n\010function\030\002 \001(\0132\'." + + "google.cloud.functions.v2beta.FunctionB\004" + + "\342A\001\002\022\023\n\013function_id\030\003 \001(\t\"\211\001\n\025UpdateFunc" + + "tionRequest\022?\n\010function\030\001 \001(\0132\'.google.c" + + "loud.functions.v2beta.FunctionB\004\342A\001\002\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"V\n\025DeleteFunctionRequest\022=\n\004name\030\001" + + " \001(\tB/\342A\001\002\372A(\n&cloudfunctions.googleapis" + + ".com/Function\"\224\001\n\030GenerateUploadUrlReque" + + "st\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.g" + + "oogleapis.com/Location\022<\n\014kms_key_name\030\002" + + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" + + "oKey\"u\n\031GenerateUploadUrlResponse\022\022\n\nupl" + + "oad_url\030\001 \001(\t\022D\n\016storage_source\030\002 \001(\0132,." + + "google.cloud.functions.v2beta.StorageSou" + + "rce\"[\n\032GenerateDownloadUrlRequest\022=\n\004nam" + + "e\030\001 \001(\tB/\342A\001\002\372A(\n&cloudfunctions.googlea" + + "pis.com/Function\"3\n\033GenerateDownloadUrlR" + + "esponse\022\024\n\014download_url\030\001 \001(\t\"a\n\023ListRun" + + "timesRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\016\n\006filt" + + "er\030\002 \001(\t\"\272\003\n\024ListRuntimesResponse\022M\n\010run" + + "times\030\001 \003(\0132;.google.cloud.functions.v2b" + + "eta.ListRuntimesResponse.Runtime\032\321\001\n\007Run" + + "time\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\t" + + "\022O\n\005stage\030\002 \001(\0162@.google.cloud.functions" + + ".v2beta.ListRuntimesResponse.RuntimeStag" + + "e\022\020\n\010warnings\030\003 \003(\t\022?\n\013environment\030\004 \001(\016" + + "2*.google.cloud.functions.v2beta.Environ" + + "ment\"\177\n\014RuntimeStage\022\035\n\031RUNTIME_STAGE_UN" + + "SPECIFIED\020\000\022\017\n\013DEVELOPMENT\020\001\022\t\n\005ALPHA\020\002\022" + + "\010\n\004BETA\020\003\022\006\n\002GA\020\004\022\016\n\nDEPRECATED\020\005\022\022\n\016DEC" + + "OMMISSIONED\020\006\"\274\002\n\021OperationMetadata\022/\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t" + + "\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_reques" + + "ted\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\022.\n\020reques" + + "t_resource\030\010 \001(\0132\024.google.protobuf.Any\0224" + + "\n\006stages\030\t \003(\0132$.google.cloud.functions." + + "v2beta.Stage\"T\n\020LocationMetadata\022@\n\014envi" + + "ronments\030\001 \003(\0162*.google.cloud.functions." + + "v2beta.Environment\"\320\003\n\005Stage\0227\n\004name\030\001 \001" + + "(\0162).google.cloud.functions.v2beta.Stage" + + ".Name\022\017\n\007message\030\002 \001(\t\0229\n\005state\030\003 \001(\0162*." + + "google.cloud.functions.v2beta.Stage.Stat" + + "e\022\020\n\010resource\030\004 \001(\t\022\024\n\014resource_uri\030\005 \001(" + + "\t\022C\n\016state_messages\030\006 \003(\0132+.google.cloud" + + ".functions.v2beta.StateMessage\"\204\001\n\004Name\022" + + "\024\n\020NAME_UNSPECIFIED\020\000\022\025\n\021ARTIFACT_REGIST" + + "RY\020\001\022\t\n\005BUILD\020\002\022\013\n\007SERVICE\020\003\022\013\n\007TRIGGER\020" + + "\004\022\024\n\020SERVICE_ROLLBACK\020\005\022\024\n\020TRIGGER_ROLLB" + + "ACK\020\006\"N\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013NOT_STARTED\020\001\022\017\n\013IN_PROGRESS\020\002\022\014\n\010COMPL" + + "ETE\020\003*@\n\013Environment\022\033\n\027ENVIRONMENT_UNSP" + + "ECIFIED\020\000\022\t\n\005GEN_1\020\001\022\t\n\005GEN_2\020\0022\222\017\n\017Func" + + "tionService\022\253\001\n\013GetFunction\0221.google.clo" + + "ud.functions.v2beta.GetFunctionRequest\032\'" + + ".google.cloud.functions.v2beta.Function\"" + + "@\332A\004name\202\323\344\223\0023\0221/v2beta/{name=projects/*" + + "/locations/*/functions/*}\022\276\001\n\rListFuncti" + + "ons\0223.google.cloud.functions.v2beta.List" + + "FunctionsRequest\0324.google.cloud.function" + + "s.v2beta.ListFunctionsResponse\"B\332A\006paren" + + "t\202\323\344\223\0023\0221/v2beta/{parent=projects/*/loca" + + "tions/*}/functions\022\245\002\n\016CreateFunction\0224." + + "google.cloud.functions.v2beta.CreateFunc" + + "tionRequest\032\035.google.longrunning.Operati" + + "on\"\275\001\312AY\n&google.cloud.functions.v2beta." + + "Function\022/google.cloud.functions.v2beta." + + "OperationMetadata\332A\033parent,function,func" + + "tion_id\202\323\344\223\002=\"1/v2beta/{parent=projects/" + + "*/locations/*}/functions:\010function\022\247\002\n\016U" + + "pdateFunction\0224.google.cloud.functions.v" + + "2beta.UpdateFunctionRequest\032\035.google.lon" + + "grunning.Operation\"\277\001\312AY\n&google.cloud.f" + + "unctions.v2beta.Function\022/google.cloud.f" + + "unctions.v2beta.OperationMetadata\332A\024func" + + "tion,update_mask\202\323\344\223\002F2:/v2beta/{functio" + + "n.name=projects/*/locations/*/functions/" + + "*}:\010function\022\363\001\n\016DeleteFunction\0224.google" + + ".cloud.functions.v2beta.DeleteFunctionRe" + + "quest\032\035.google.longrunning.Operation\"\213\001\312" + + "AH\n\025google.protobuf.Empty\022/google.cloud." + + "functions.v2beta.OperationMetadata\332A\004nam" + + "e\202\323\344\223\0023*1/v2beta/{name=projects/*/locati" + + "ons/*/functions/*}\022\326\001\n\021GenerateUploadUrl" + + "\0227.google.cloud.functions.v2beta.Generat" + + "eUploadUrlRequest\0328.google.cloud.functio" + + "ns.v2beta.GenerateUploadUrlResponse\"N\202\323\344" + + "\223\002H\"C/v2beta/{parent=projects/*/location" + + "s/*}/functions:generateUploadUrl:\001*\022\336\001\n\023" + + "GenerateDownloadUrl\0229.google.cloud.funct" + + "ions.v2beta.GenerateDownloadUrlRequest\032:" + + ".google.cloud.functions.v2beta.GenerateD" + + "ownloadUrlResponse\"P\202\323\344\223\002J\"E/v2beta/{nam" + + "e=projects/*/locations/*/functions/*}:ge" + + "nerateDownloadUrl:\001*\022\272\001\n\014ListRuntimes\0222." + + "google.cloud.functions.v2beta.ListRuntim" + + "esRequest\0323.google.cloud.functions.v2bet" + + "a.ListRuntimesResponse\"A\332A\006parent\202\323\344\223\0022\022" + + "0/v2beta/{parent=projects/*/locations/*}" + + "/runtimes\032Q\312A\035cloudfunctions.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformB\366\007\n!com.google.cloud.functi" + + "ons.v2betaB\016FunctionsProtoP\001Z?cloud.goog" + + "le.com/go/functions/apiv2beta/functionsp" + + "b;functionspb\242\002\003GCF\352Ao\n*artifactregistry" + + ".googleapis.com/Repository\022Aprojects/{pr" + + "oject}/locations/{location}/repositories" + + "/{repository}\352AY\n\037cloudbuild.googleapis." + + "com/Build\0226projects/{project}/locations/" + + "{location}/builds/{build}\352Ai\n$cloudbuild" + + ".googleapis.com/WorkerPool\022Aprojects/{pr" + + "oject}/locations/{location}/workerPools/" + + "{worker_pool}\352AX\n\032run.googleapis.com/Ser" + + "vice\022:projects/{project}/locations/{loca" + + "tion}/services/{service}\352Ad\n\"vpcaccess.g" + + "oogleapis.com/Connector\022>projects/{proje" + + "ct}/locations/{location}/connectors/{con" + + "nector}\352A]\n\037eventarc.googleapis.com/Trig" + + "ger\022:projects/{project}/locations/{locat" + + "ion}/triggers/{trigger}\352A]\n\037eventarc.goo" + + "gleapis.com/Channel\022:projects/{project}/" + + "locations/{location}/channels/{channel}\352" + + "A@\n\033pubsub.googleapis.com/Topic\022!project" + + "s/{project}/topics/{topic}\352Ax\n!cloudkms." + + "googleapis.com/CryptoKey\022Sprojects/{proj" + + "ect}/locations/{location}/keyRings/{key_" + + "ring}/cryptoKeys/{crypto_key}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -418,6 +442,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -428,7 +453,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_functions_v2beta_Function_descriptor, new java.lang.String[] { "Name", - "Environment", "Description", "BuildConfig", "ServiceConfig", @@ -437,6 +461,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Labels", "StateMessages", + "Environment", + "Url", + "KmsKeyName", }); internal_static_google_cloud_functions_v2beta_Function_LabelsEntry_descriptor = internal_static_google_cloud_functions_v2beta_Function_descriptor.getNestedTypes().get(0); @@ -506,6 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceProvenance", "WorkerPool", "EnvironmentVariables", + "DockerRegistry", "DockerRepository", }); internal_static_google_cloud_functions_v2beta_BuildConfig_EnvironmentVariablesEntry_descriptor = @@ -527,6 +555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Service", "TimeoutSeconds", "AvailableMemory", + "AvailableCpu", "EnvironmentVariables", "MaxInstanceCount", "MinInstanceCount", @@ -539,6 +568,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecretEnvironmentVariables", "SecretVolumes", "Revision", + "MaxInstanceRequestConcurrency", + "SecurityLevel", }); internal_static_google_cloud_functions_v2beta_ServiceConfig_EnvironmentVariablesEntry_descriptor = internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor @@ -653,7 +684,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor, new java.lang.String[] { - "Parent", + "Parent", "KmsKeyName", }); internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor = getDescriptor().getMessageTypes().get(19); @@ -721,8 +752,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestResource", "Stages", }); - internal_static_google_cloud_functions_v2beta_Stage_descriptor = + internal_static_google_cloud_functions_v2beta_LocationMetadata_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_functions_v2beta_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_functions_v2beta_LocationMetadata_descriptor, + new java.lang.String[] { + "Environments", + }); + internal_static_google_cloud_functions_v2beta_Stage_descriptor = + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_functions_v2beta_Stage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_functions_v2beta_Stage_descriptor, @@ -748,6 +787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java index a1391849d194..909bf09fb625 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlRequest_descriptor; @@ -75,8 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of function for which source code Google Cloud Storage signed
-   * URL should be generated.
+   * Required. The name of function for which source code Google Cloud Storage
+   * signed URL should be generated.
    * 
* * @@ -101,8 +96,8 @@ public java.lang.String getName() { * * *
-   * Required. The name of function for which source code Google Cloud Storage signed
-   * URL should be generated.
+   * Required. The name of function for which source code Google Cloud Storage
+   * signed URL should be generated.
    * 
* * @@ -367,39 +362,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.GenerateDownloadUrlRequest) { @@ -475,8 +437,8 @@ public Builder mergeFrom( * * *
-     * Required. The name of function for which source code Google Cloud Storage signed
-     * URL should be generated.
+     * Required. The name of function for which source code Google Cloud Storage
+     * signed URL should be generated.
      * 
* * @@ -500,8 +462,8 @@ public java.lang.String getName() { * * *
-     * Required. The name of function for which source code Google Cloud Storage signed
-     * URL should be generated.
+     * Required. The name of function for which source code Google Cloud Storage
+     * signed URL should be generated.
      * 
* * @@ -525,8 +487,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of function for which source code Google Cloud Storage signed
-     * URL should be generated.
+     * Required. The name of function for which source code Google Cloud Storage
+     * signed URL should be generated.
      * 
* * @@ -549,8 +511,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of function for which source code Google Cloud Storage signed
-     * URL should be generated.
+     * Required. The name of function for which source code Google Cloud Storage
+     * signed URL should be generated.
      * 
* * @@ -569,8 +531,8 @@ public Builder clearName() { * * *
-     * Required. The name of function for which source code Google Cloud Storage signed
-     * URL should be generated.
+     * Required. The name of function for which source code Google Cloud Storage
+     * signed URL should be generated.
      * 
* * diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java index cc4f6c5c6f76..65a63fa092b5 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface GenerateDownloadUrlRequestOrBuilder * * *
-   * Required. The name of function for which source code Google Cloud Storage signed
-   * URL should be generated.
+   * Required. The name of function for which source code Google Cloud Storage
+   * signed URL should be generated.
    * 
* * @@ -42,8 +42,8 @@ public interface GenerateDownloadUrlRequestOrBuilder * * *
-   * Required. The name of function for which source code Google Cloud Storage signed
-   * URL should be generated.
+   * Required. The name of function for which source code Google Cloud Storage
+   * signed URL should be generated.
    * 
* * diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java index a42867f2b62a..0eb69d34f07e 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateDownloadUrlResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateDownloadUrlResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_GenerateDownloadUrlResponse_descriptor; @@ -363,39 +358,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.GenerateDownloadUrlResponse) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java index 69303f32be3c..ba6d7e595c08 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequest.java @@ -39,6 +39,7 @@ private GenerateUploadUrlRequest(com.google.protobuf.GeneratedMessageV3.Builder< private GenerateUploadUrlRequest() { parent_ = ""; + kmsKeyName_ = ""; } @java.lang.Override @@ -47,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlRequest_descriptor; @@ -75,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location in which the Google Cloud Storage signed URL
-   * should be generated, specified in the format `projects/*/locations/*`.
+   * Required. The project and location in which the Google Cloud Storage signed
+   * URL should be generated, specified in the format `projects/*/locations/*`.
    * 
* * @@ -101,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location in which the Google Cloud Storage signed URL
-   * should be generated, specified in the format `projects/*/locations/*`.
+   * Required. The project and location in which the Google Cloud Storage signed
+   * URL should be generated, specified in the format `projects/*/locations/*`.
    * 
* * @@ -124,6 +120,85 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function source code objects in intermediate Cloud Storage
+   * buckets. When you generate an upload url and upload your source code, it
+   * gets copied to an intermediate Cloud Storage bucket. The source code is
+   * then copied to a versioned directory in the sources bucket in the consumer
+   * project during the function deployment.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
+   * The Google Cloud Functions service account
+   * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+   * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+   * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+   * Key/KeyRing/Project/Organization (least access preferred).
+   * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function source code objects in intermediate Cloud Storage
+   * buckets. When you generate an upload url and upload your source code, it
+   * gets copied to an intermediate Cloud Storage bucket. The source code is
+   * then copied to a versioned directory in the sources bucket in the consumer
+   * project during the function deployment.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
+   * The Google Cloud Functions service account
+   * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+   * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+   * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+   * Key/KeyRing/Project/Organization (least access preferred).
+   * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -141,6 +216,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_); + } getUnknownFields().writeTo(output); } @@ -153,6 +231,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -170,6 +251,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.functions.v2beta.GenerateUploadUrlRequest) obj; if (!getParent().equals(other.getParent())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,6 +265,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -324,6 +408,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; + kmsKeyName_ = ""; return this; } @@ -363,39 +448,9 @@ private void buildPartial0(com.google.cloud.functions.v2beta.GenerateUploadUrlRe if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } } @java.lang.Override @@ -416,6 +471,11 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.GenerateUploadUrlRequ bitField0_ |= 0x00000001; onChanged(); } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -448,6 +508,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -472,8 +538,8 @@ public Builder mergeFrom( * * *
-     * Required. The project and location in which the Google Cloud Storage signed URL
-     * should be generated, specified in the format `projects/*/locations/*`.
+     * Required. The project and location in which the Google Cloud Storage signed
+     * URL should be generated, specified in the format `projects/*/locations/*`.
      * 
* * @@ -497,8 +563,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location in which the Google Cloud Storage signed URL
-     * should be generated, specified in the format `projects/*/locations/*`.
+     * Required. The project and location in which the Google Cloud Storage signed
+     * URL should be generated, specified in the format `projects/*/locations/*`.
      * 
* * @@ -522,8 +588,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location in which the Google Cloud Storage signed URL
-     * should be generated, specified in the format `projects/*/locations/*`.
+     * Required. The project and location in which the Google Cloud Storage signed
+     * URL should be generated, specified in the format `projects/*/locations/*`.
      * 
* * @@ -546,8 +612,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location in which the Google Cloud Storage signed URL
-     * should be generated, specified in the format `projects/*/locations/*`.
+     * Required. The project and location in which the Google Cloud Storage signed
+     * URL should be generated, specified in the format `projects/*/locations/*`.
      * 
* * @@ -566,8 +632,8 @@ public Builder clearParent() { * * *
-     * Required. The project and location in which the Google Cloud Storage signed URL
-     * should be generated, specified in the format `projects/*/locations/*`.
+     * Required. The project and location in which the Google Cloud Storage signed
+     * URL should be generated, specified in the format `projects/*/locations/*`.
      * 
* * @@ -588,6 +654,182 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function source code objects in intermediate Cloud Storage
+     * buckets. When you generate an upload url and upload your source code, it
+     * gets copied to an intermediate Cloud Storage bucket. The source code is
+     * then copied to a versioned directory in the sources bucket in the consumer
+     * project during the function deployment.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
+     * The Google Cloud Functions service account
+     * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+     * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+     * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+     * Key/KeyRing/Project/Organization (least access preferred).
+     * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function source code objects in intermediate Cloud Storage
+     * buckets. When you generate an upload url and upload your source code, it
+     * gets copied to an intermediate Cloud Storage bucket. The source code is
+     * then copied to a versioned directory in the sources bucket in the consumer
+     * project during the function deployment.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
+     * The Google Cloud Functions service account
+     * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+     * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+     * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+     * Key/KeyRing/Project/Organization (least access preferred).
+     * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function source code objects in intermediate Cloud Storage
+     * buckets. When you generate an upload url and upload your source code, it
+     * gets copied to an intermediate Cloud Storage bucket. The source code is
+     * then copied to a versioned directory in the sources bucket in the consumer
+     * project during the function deployment.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
+     * The Google Cloud Functions service account
+     * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+     * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+     * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+     * Key/KeyRing/Project/Organization (least access preferred).
+     * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function source code objects in intermediate Cloud Storage
+     * buckets. When you generate an upload url and upload your source code, it
+     * gets copied to an intermediate Cloud Storage bucket. The source code is
+     * then copied to a versioned directory in the sources bucket in the consumer
+     * project during the function deployment.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
+     * The Google Cloud Functions service account
+     * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+     * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+     * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+     * Key/KeyRing/Project/Organization (least access preferred).
+     * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+     * encrypt/decrypt function source code objects in intermediate Cloud Storage
+     * buckets. When you generate an upload url and upload your source code, it
+     * gets copied to an intermediate Cloud Storage bucket. The source code is
+     * then copied to a versioned directory in the sources bucket in the consumer
+     * project during the function deployment.
+     *
+     * It must match the pattern
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+     *
+     * The Google Cloud Functions service account
+     * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+     * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+     * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+     * Key/KeyRing/Project/Organization (least access preferred).
+     * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java index f113fe3cdc0f..b958066ea5cf 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface GenerateUploadUrlRequestOrBuilder * * *
-   * Required. The project and location in which the Google Cloud Storage signed URL
-   * should be generated, specified in the format `projects/*/locations/*`.
+   * Required. The project and location in which the Google Cloud Storage signed
+   * URL should be generated, specified in the format `projects/*/locations/*`.
    * 
* * @@ -42,8 +42,8 @@ public interface GenerateUploadUrlRequestOrBuilder * * *
-   * Required. The project and location in which the Google Cloud Storage signed URL
-   * should be generated, specified in the format `projects/*/locations/*`.
+   * Required. The project and location in which the Google Cloud Storage signed
+   * URL should be generated, specified in the format `projects/*/locations/*`.
    * 
* * @@ -53,4 +53,57 @@ public interface GenerateUploadUrlRequestOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function source code objects in intermediate Cloud Storage
+   * buckets. When you generate an upload url and upload your source code, it
+   * gets copied to an intermediate Cloud Storage bucket. The source code is
+   * then copied to a versioned directory in the sources bucket in the consumer
+   * project during the function deployment.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
+   * The Google Cloud Functions service account
+   * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+   * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+   * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+   * Key/KeyRing/Project/Organization (least access preferred).
+   * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+   * [Preview] Resource name of a KMS crypto key (managed by the user) used to
+   * encrypt/decrypt function source code objects in intermediate Cloud Storage
+   * buckets. When you generate an upload url and upload your source code, it
+   * gets copied to an intermediate Cloud Storage bucket. The source code is
+   * then copied to a versioned directory in the sources bucket in the consumer
+   * project during the function deployment.
+   *
+   * It must match the pattern
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
+   *
+   * The Google Cloud Functions service account
+   * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
+   * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
+   * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
+   * Key/KeyRing/Project/Organization (least access preferred).
+   * 
+ * + * string kms_key_name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java index 0489394aad40..e2fe65b77a8b 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateUploadUrlResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_GenerateUploadUrlResponse_descriptor; @@ -129,9 +124,11 @@ public com.google.protobuf.ByteString getUploadUrlBytes() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -149,9 +146,11 @@ public boolean hasStorageSource() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -171,9 +170,11 @@ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -451,39 +452,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.GenerateUploadUrlRe } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.GenerateUploadUrlResponse) { @@ -689,9 +657,11 @@ public Builder setUploadUrlBytes(com.google.protobuf.ByteString value) { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -708,9 +678,11 @@ public boolean hasStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -733,9 +705,11 @@ public com.google.cloud.functions.v2beta.StorageSource getStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -760,9 +734,11 @@ public Builder setStorageSource(com.google.cloud.functions.v2beta.StorageSource * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -785,9 +761,11 @@ public Builder setStorageSource( * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -816,9 +794,11 @@ public Builder mergeStorageSource(com.google.cloud.functions.v2beta.StorageSourc * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -840,9 +820,11 @@ public Builder clearStorageSource() { * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -859,9 +841,11 @@ public com.google.cloud.functions.v2beta.StorageSource.Builder getStorageSourceB * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
@@ -882,9 +866,11 @@ public com.google.cloud.functions.v2beta.StorageSourceOrBuilder getStorageSource * *
      * The location of the source code in the upload bucket.
+     *
      * Once the archive is uploaded using the `upload_url` use this field to
      * set the `function.build_config.source.storage_source`
      * during CreateFunction and UpdateFunction.
+     *
      * Generation defaults to 0, as Cloud Storage provides a new generation only
      * upon uploading a new object or version of an object.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java index aa64d6b21831..69a784dcb13c 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GenerateUploadUrlResponseOrBuilder.java @@ -57,9 +57,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -74,9 +76,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
@@ -91,9 +95,11 @@ public interface GenerateUploadUrlResponseOrBuilder * *
    * The location of the source code in the upload bucket.
+   *
    * Once the archive is uploaded using the `upload_url` use this field to
    * set the `function.build_config.source.storage_source`
    * during CreateFunction and UpdateFunction.
+   *
    * Generation defaults to 0, as Cloud Storage provides a new generation only
    * upon uploading a new object or version of an object.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java index 50efd1d1c7f6..e414994b9b13 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/GetFunctionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_GetFunctionRequest_descriptor; @@ -362,39 +357,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.GetFunctionRequest } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.GetFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java index ef8a7772182f..564ef9a7c97b 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequest.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_ListFunctionsRequest_descriptor; @@ -78,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location from which the function should be listed,
-   * specified in the format `projects/*/locations/*`
-   * If you want to list functions in all locations, use "-" in place of a
-   * location. When listing functions in all locations, if one or more
-   * location(s) are unreachable, the response will contain functions from all
-   * reachable locations along with the names of any unreachable locations.
+   * Required. The project and location from which the function should be
+   * listed, specified in the format `projects/*/locations/*` If you want to
+   * list functions in all locations, use "-" in place of a location. When
+   * listing functions in all locations, if one or more location(s) are
+   * unreachable, the response will contain functions from all reachable
+   * locations along with the names of any unreachable locations.
    * 
* * @@ -108,12 +103,12 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location from which the function should be listed,
-   * specified in the format `projects/*/locations/*`
-   * If you want to list functions in all locations, use "-" in place of a
-   * location. When listing functions in all locations, if one or more
-   * location(s) are unreachable, the response will contain functions from all
-   * reachable locations along with the names of any unreachable locations.
+   * Required. The project and location from which the function should be
+   * listed, specified in the format `projects/*/locations/*` If you want to
+   * list functions in all locations, use "-" in place of a location. When
+   * listing functions in all locations, if one or more location(s) are
+   * unreachable, the response will contain functions from all reachable
+   * locations along with the names of any unreachable locations.
    * 
* * @@ -141,7 +136,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Maximum number of functions to return per call.
+   * Maximum number of functions to return per call. The largest allowed
+   * page_size is 1,000, if the page_size is omitted or specified as greater
+   * than 1,000 then it will be replaced as 1,000. The size of the list
+   * response can be less than specified when used with filters.
    * 
* * int32 page_size = 2; @@ -611,39 +609,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.ListFunctionsReques } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.ListFunctionsRequest) { @@ -760,12 +725,12 @@ public Builder mergeFrom( * * *
-     * Required. The project and location from which the function should be listed,
-     * specified in the format `projects/*/locations/*`
-     * If you want to list functions in all locations, use "-" in place of a
-     * location. When listing functions in all locations, if one or more
-     * location(s) are unreachable, the response will contain functions from all
-     * reachable locations along with the names of any unreachable locations.
+     * Required. The project and location from which the function should be
+     * listed, specified in the format `projects/*/locations/*` If you want to
+     * list functions in all locations, use "-" in place of a location. When
+     * listing functions in all locations, if one or more location(s) are
+     * unreachable, the response will contain functions from all reachable
+     * locations along with the names of any unreachable locations.
      * 
* * @@ -789,12 +754,12 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location from which the function should be listed,
-     * specified in the format `projects/*/locations/*`
-     * If you want to list functions in all locations, use "-" in place of a
-     * location. When listing functions in all locations, if one or more
-     * location(s) are unreachable, the response will contain functions from all
-     * reachable locations along with the names of any unreachable locations.
+     * Required. The project and location from which the function should be
+     * listed, specified in the format `projects/*/locations/*` If you want to
+     * list functions in all locations, use "-" in place of a location. When
+     * listing functions in all locations, if one or more location(s) are
+     * unreachable, the response will contain functions from all reachable
+     * locations along with the names of any unreachable locations.
      * 
* * @@ -818,12 +783,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location from which the function should be listed,
-     * specified in the format `projects/*/locations/*`
-     * If you want to list functions in all locations, use "-" in place of a
-     * location. When listing functions in all locations, if one or more
-     * location(s) are unreachable, the response will contain functions from all
-     * reachable locations along with the names of any unreachable locations.
+     * Required. The project and location from which the function should be
+     * listed, specified in the format `projects/*/locations/*` If you want to
+     * list functions in all locations, use "-" in place of a location. When
+     * listing functions in all locations, if one or more location(s) are
+     * unreachable, the response will contain functions from all reachable
+     * locations along with the names of any unreachable locations.
      * 
* * @@ -846,12 +811,12 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location from which the function should be listed,
-     * specified in the format `projects/*/locations/*`
-     * If you want to list functions in all locations, use "-" in place of a
-     * location. When listing functions in all locations, if one or more
-     * location(s) are unreachable, the response will contain functions from all
-     * reachable locations along with the names of any unreachable locations.
+     * Required. The project and location from which the function should be
+     * listed, specified in the format `projects/*/locations/*` If you want to
+     * list functions in all locations, use "-" in place of a location. When
+     * listing functions in all locations, if one or more location(s) are
+     * unreachable, the response will contain functions from all reachable
+     * locations along with the names of any unreachable locations.
      * 
* * @@ -870,12 +835,12 @@ public Builder clearParent() { * * *
-     * Required. The project and location from which the function should be listed,
-     * specified in the format `projects/*/locations/*`
-     * If you want to list functions in all locations, use "-" in place of a
-     * location. When listing functions in all locations, if one or more
-     * location(s) are unreachable, the response will contain functions from all
-     * reachable locations along with the names of any unreachable locations.
+     * Required. The project and location from which the function should be
+     * listed, specified in the format `projects/*/locations/*` If you want to
+     * list functions in all locations, use "-" in place of a location. When
+     * listing functions in all locations, if one or more location(s) are
+     * unreachable, the response will contain functions from all reachable
+     * locations along with the names of any unreachable locations.
      * 
* * @@ -901,7 +866,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Maximum number of functions to return per call.
+     * Maximum number of functions to return per call. The largest allowed
+     * page_size is 1,000, if the page_size is omitted or specified as greater
+     * than 1,000 then it will be replaced as 1,000. The size of the list
+     * response can be less than specified when used with filters.
      * 
* * int32 page_size = 2; @@ -916,7 +884,10 @@ public int getPageSize() { * * *
-     * Maximum number of functions to return per call.
+     * Maximum number of functions to return per call. The largest allowed
+     * page_size is 1,000, if the page_size is omitted or specified as greater
+     * than 1,000 then it will be replaced as 1,000. The size of the list
+     * response can be less than specified when used with filters.
      * 
* * int32 page_size = 2; @@ -935,7 +906,10 @@ public Builder setPageSize(int value) { * * *
-     * Maximum number of functions to return per call.
+     * Maximum number of functions to return per call. The largest allowed
+     * page_size is 1,000, if the page_size is omitted or specified as greater
+     * than 1,000 then it will be replaced as 1,000. The size of the list
+     * response can be less than specified when used with filters.
      * 
* * int32 page_size = 2; diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java index 688096c26485..3339ee3e64bd 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsRequestOrBuilder.java @@ -27,12 +27,12 @@ public interface ListFunctionsRequestOrBuilder * * *
-   * Required. The project and location from which the function should be listed,
-   * specified in the format `projects/*/locations/*`
-   * If you want to list functions in all locations, use "-" in place of a
-   * location. When listing functions in all locations, if one or more
-   * location(s) are unreachable, the response will contain functions from all
-   * reachable locations along with the names of any unreachable locations.
+   * Required. The project and location from which the function should be
+   * listed, specified in the format `projects/*/locations/*` If you want to
+   * list functions in all locations, use "-" in place of a location. When
+   * listing functions in all locations, if one or more location(s) are
+   * unreachable, the response will contain functions from all reachable
+   * locations along with the names of any unreachable locations.
    * 
* * @@ -46,12 +46,12 @@ public interface ListFunctionsRequestOrBuilder * * *
-   * Required. The project and location from which the function should be listed,
-   * specified in the format `projects/*/locations/*`
-   * If you want to list functions in all locations, use "-" in place of a
-   * location. When listing functions in all locations, if one or more
-   * location(s) are unreachable, the response will contain functions from all
-   * reachable locations along with the names of any unreachable locations.
+   * Required. The project and location from which the function should be
+   * listed, specified in the format `projects/*/locations/*` If you want to
+   * list functions in all locations, use "-" in place of a location. When
+   * listing functions in all locations, if one or more location(s) are
+   * unreachable, the response will contain functions from all reachable
+   * locations along with the names of any unreachable locations.
    * 
* * @@ -66,7 +66,10 @@ public interface ListFunctionsRequestOrBuilder * * *
-   * Maximum number of functions to return per call.
+   * Maximum number of functions to return per call. The largest allowed
+   * page_size is 1,000, if the page_size is omitted or specified as greater
+   * than 1,000 then it will be replaced as 1,000. The size of the list
+   * response can be less than specified when used with filters.
    * 
* * int32 page_size = 2; diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java index 087d434987d6..380ae1ebf22e 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListFunctionsResponse.java @@ -40,7 +40,7 @@ private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_ListFunctionsResponse_descriptor; @@ -196,7 +191,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList unreachable_; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -494,8 +490,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -542,11 +537,6 @@ private void buildPartialRepeatedFields( } else { result.functions_ = functionsBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; } private void buildPartial0(com.google.cloud.functions.v2beta.ListFunctionsResponse result) { @@ -554,39 +544,10 @@ private void buildPartial0(com.google.cloud.functions.v2beta.ListFunctionsRespon if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } } @java.lang.Override @@ -637,7 +598,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ListFunctionsResponse if (!other.unreachable_.isEmpty()) { if (unreachable_.isEmpty()) { unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureUnreachableIsMutable(); unreachable_.addAll(other.unreachable_); @@ -1177,14 +1138,14 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** * @@ -1199,7 +1160,8 @@ private void ensureUnreachableIsMutable() { * @return A list containing the unreachable. */ public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_.getUnmodifiableView(); + unreachable_.makeImmutable(); + return unreachable_; } /** * @@ -1268,6 +1230,7 @@ public Builder setUnreachable(int index, java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1290,6 +1253,7 @@ public Builder addUnreachable(java.lang.String value) { } ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1309,6 +1273,7 @@ public Builder addUnreachable(java.lang.String value) { public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1325,8 +1290,9 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } @@ -1350,6 +1316,7 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java index c4df98bec076..4bb98c4d21c1 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_ListRuntimesRequest_descriptor; @@ -76,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project and location from which the runtimes should be listed,
-   * specified in the format `projects/*/locations/*`
+   * Required. The project and location from which the runtimes should be
+   * listed, specified in the format `projects/*/locations/*`
    * 
* * @@ -102,8 +97,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project and location from which the runtimes should be listed,
-   * specified in the format `projects/*/locations/*`
+   * Required. The project and location from which the runtimes should be
+   * listed, specified in the format `projects/*/locations/*`
    * 
* * @@ -432,39 +427,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.ListRuntimesRequest } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.ListRuntimesRequest) { @@ -550,8 +512,8 @@ public Builder mergeFrom( * * *
-     * Required. The project and location from which the runtimes should be listed,
-     * specified in the format `projects/*/locations/*`
+     * Required. The project and location from which the runtimes should be
+     * listed, specified in the format `projects/*/locations/*`
      * 
* * @@ -575,8 +537,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project and location from which the runtimes should be listed,
-     * specified in the format `projects/*/locations/*`
+     * Required. The project and location from which the runtimes should be
+     * listed, specified in the format `projects/*/locations/*`
      * 
* * @@ -600,8 +562,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project and location from which the runtimes should be listed,
-     * specified in the format `projects/*/locations/*`
+     * Required. The project and location from which the runtimes should be
+     * listed, specified in the format `projects/*/locations/*`
      * 
* * @@ -624,8 +586,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project and location from which the runtimes should be listed,
-     * specified in the format `projects/*/locations/*`
+     * Required. The project and location from which the runtimes should be
+     * listed, specified in the format `projects/*/locations/*`
      * 
* * @@ -644,8 +606,8 @@ public Builder clearParent() { * * *
-     * Required. The project and location from which the runtimes should be listed,
-     * specified in the format `projects/*/locations/*`
+     * Required. The project and location from which the runtimes should be
+     * listed, specified in the format `projects/*/locations/*`
      * 
* * diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java index 94d1f4294cc5..a0748ae784a7 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListRuntimesRequestOrBuilder * * *
-   * Required. The project and location from which the runtimes should be listed,
-   * specified in the format `projects/*/locations/*`
+   * Required. The project and location from which the runtimes should be
+   * listed, specified in the format `projects/*/locations/*`
    * 
* * @@ -42,8 +42,8 @@ public interface ListRuntimesRequestOrBuilder * * *
-   * Required. The project and location from which the runtimes should be listed,
-   * specified in the format `projects/*/locations/*`
+   * Required. The project and location from which the runtimes should be
+   * listed, specified in the format `projects/*/locations/*`
    * 
* * diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java index d49852920e44..486bf7f5a5c2 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ListRuntimesResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_descriptor; @@ -494,7 +489,7 @@ private Runtime() { name_ = ""; displayName_ = ""; stage_ = 0; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; } @@ -504,11 +499,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Runtime(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_ListRuntimesResponse_Runtime_descriptor; @@ -666,7 +656,8 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage getSt public static final int WARNINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList warnings_; + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -1017,8 +1008,7 @@ public Builder clear() { name_ = ""; displayName_ = ""; stage_ = 0; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; return this; } @@ -1048,7 +1038,6 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime build() { public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime buildPartial() { com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime result = new com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1056,15 +1045,6 @@ public com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime buildParti return result; } - private void buildPartialRepeatedFields( - com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime result) { - if (((bitField0_ & 0x00000008) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.warnings_ = warnings_; - } - private void buildPartial0( com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime result) { int from_bitField0_ = bitField0_; @@ -1077,46 +1057,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.stage_ = stage_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + warnings_.makeImmutable(); + result.warnings_ = warnings_; + } if (((from_bitField0_ & 0x00000010) != 0)) { result.environment_ = environment_; } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.ListRuntimesResponse.Runtime) { @@ -1148,7 +1097,7 @@ public Builder mergeFrom( if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ |= 0x00000008; } else { ensureWarningsIsMutable(); warnings_.addAll(other.warnings_); @@ -1539,14 +1488,14 @@ public Builder clearStage() { return this; } - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!warnings_.isModifiable()) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); - bitField0_ |= 0x00000008; } + bitField0_ |= 0x00000008; } /** * @@ -1560,7 +1509,8 @@ private void ensureWarningsIsMutable() { * @return A list containing the warnings. */ public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_.getUnmodifiableView(); + warnings_.makeImmutable(); + return warnings_; } /** * @@ -1625,6 +1575,7 @@ public Builder setWarnings(int index, java.lang.String value) { } ensureWarningsIsMutable(); warnings_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1646,6 +1597,7 @@ public Builder addWarnings(java.lang.String value) { } ensureWarningsIsMutable(); warnings_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1664,6 +1616,7 @@ public Builder addWarnings(java.lang.String value) { public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1679,8 +1632,9 @@ public Builder addAllWarnings(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearWarnings() { - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -1703,6 +1657,7 @@ public Builder addWarningsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2198,39 +2153,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.ListRuntimesRespons int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.ListRuntimesResponse) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadata.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadata.java new file mode 100644 index 000000000000..7a738e1d04fa --- /dev/null +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadata.java @@ -0,0 +1,798 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2beta/functions.proto + +package com.google.cloud.functions.v2beta; + +/** + * + * + *
+ * Extra GCF specific location information.
+ * 
+ * + * Protobuf type {@code google.cloud.functions.v2beta.LocationMetadata} + */ +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.functions.v2beta.LocationMetadata) + LocationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationMetadata() { + environments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LocationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2beta.LocationMetadata.class, + com.google.cloud.functions.v2beta.LocationMetadata.Builder.class); + } + + public static final int ENVIRONMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List environments_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.functions.v2beta.Environment> + environments_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.functions.v2beta.Environment>() { + public com.google.cloud.functions.v2beta.Environment convert(java.lang.Integer from) { + com.google.cloud.functions.v2beta.Environment result = + com.google.cloud.functions.v2beta.Environment.forNumber(from); + return result == null + ? com.google.cloud.functions.v2beta.Environment.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return A list containing the environments. + */ + @java.lang.Override + public java.util.List getEnvironmentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.functions.v2beta.Environment>( + environments_, environments_converter_); + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return The count of environments. + */ + @java.lang.Override + public int getEnvironmentsCount() { + return environments_.size(); + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index of the element to return. + * @return The environments at the given index. + */ + @java.lang.Override + public com.google.cloud.functions.v2beta.Environment getEnvironments(int index) { + return environments_converter_.convert(environments_.get(index)); + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return A list containing the enum numeric values on the wire for environments. + */ + @java.lang.Override + public java.util.List getEnvironmentsValueList() { + return environments_; + } + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of environments at the given index. + */ + @java.lang.Override + public int getEnvironmentsValue(int index) { + return environments_.get(index); + } + + private int environmentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEnvironmentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(environmentsMemoizedSerializedSize); + } + for (int i = 0; i < environments_.size(); i++) { + output.writeEnumNoTag(environments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < environments_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(environments_.get(i)); + } + size += dataSize; + if (!getEnvironmentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + environmentsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.functions.v2beta.LocationMetadata)) { + return super.equals(obj); + } + com.google.cloud.functions.v2beta.LocationMetadata other = + (com.google.cloud.functions.v2beta.LocationMetadata) obj; + + if (!environments_.equals(other.environments_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnvironmentsCount() > 0) { + hash = (37 * hash) + ENVIRONMENTS_FIELD_NUMBER; + hash = (53 * hash) + environments_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.functions.v2beta.LocationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Extra GCF specific location information.
+   * 
+ * + * Protobuf type {@code google.cloud.functions.v2beta.LocationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2beta.LocationMetadata) + com.google.cloud.functions.v2beta.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.functions.v2beta.LocationMetadata.class, + com.google.cloud.functions.v2beta.LocationMetadata.Builder.class); + } + + // Construct using com.google.cloud.functions.v2beta.LocationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.functions.v2beta.FunctionsProto + .internal_static_google_cloud_functions_v2beta_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.functions.v2beta.LocationMetadata getDefaultInstanceForType() { + return com.google.cloud.functions.v2beta.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.functions.v2beta.LocationMetadata build() { + com.google.cloud.functions.v2beta.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.functions.v2beta.LocationMetadata buildPartial() { + com.google.cloud.functions.v2beta.LocationMetadata result = + new com.google.cloud.functions.v2beta.LocationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.functions.v2beta.LocationMetadata result) { + if (((bitField0_ & 0x00000001) != 0)) { + environments_ = java.util.Collections.unmodifiableList(environments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.environments_ = environments_; + } + + private void buildPartial0(com.google.cloud.functions.v2beta.LocationMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.functions.v2beta.LocationMetadata) { + return mergeFrom((com.google.cloud.functions.v2beta.LocationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.functions.v2beta.LocationMetadata other) { + if (other == com.google.cloud.functions.v2beta.LocationMetadata.getDefaultInstance()) + return this; + if (!other.environments_.isEmpty()) { + if (environments_.isEmpty()) { + environments_ = other.environments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnvironmentsIsMutable(); + environments_.addAll(other.environments_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int tmpRaw = input.readEnum(); + ensureEnvironmentsIsMutable(); + environments_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnvironmentsIsMutable(); + environments_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List environments_ = java.util.Collections.emptyList(); + + private void ensureEnvironmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + environments_ = new java.util.ArrayList(environments_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return A list containing the environments. + */ + public java.util.List getEnvironmentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.functions.v2beta.Environment>( + environments_, environments_converter_); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return The count of environments. + */ + public int getEnvironmentsCount() { + return environments_.size(); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index of the element to return. + * @return The environments at the given index. + */ + public com.google.cloud.functions.v2beta.Environment getEnvironments(int index) { + return environments_converter_.convert(environments_.get(index)); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index to set the value at. + * @param value The environments to set. + * @return This builder for chaining. + */ + public Builder setEnvironments(int index, com.google.cloud.functions.v2beta.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentsIsMutable(); + environments_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param value The environments to add. + * @return This builder for chaining. + */ + public Builder addEnvironments(com.google.cloud.functions.v2beta.Environment value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvironmentsIsMutable(); + environments_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param values The environments to add. + * @return This builder for chaining. + */ + public Builder addAllEnvironments( + java.lang.Iterable values) { + ensureEnvironmentsIsMutable(); + for (com.google.cloud.functions.v2beta.Environment value : values) { + environments_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnvironments() { + environments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return A list containing the enum numeric values on the wire for environments. + */ + public java.util.List getEnvironmentsValueList() { + return java.util.Collections.unmodifiableList(environments_); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of environments at the given index. + */ + public int getEnvironmentsValue(int index) { + return environments_.get(index); + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for environments to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentsValue(int index, int value) { + ensureEnvironmentsIsMutable(); + environments_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param value The enum numeric value on the wire for environments to add. + * @return This builder for chaining. + */ + public Builder addEnvironmentsValue(int value) { + ensureEnvironmentsIsMutable(); + environments_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function environments this location supports.
+     * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param values The enum numeric values on the wire for environments to add. + * @return This builder for chaining. + */ + public Builder addAllEnvironmentsValue(java.lang.Iterable values) { + ensureEnvironmentsIsMutable(); + for (int value : values) { + environments_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.functions.v2beta.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.functions.v2beta.LocationMetadata) + private static final com.google.cloud.functions.v2beta.LocationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.functions.v2beta.LocationMetadata(); + } + + public static com.google.cloud.functions.v2beta.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.functions.v2beta.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadataOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadataOrBuilder.java new file mode 100644 index 000000000000..846c9798b53a --- /dev/null +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationMetadataOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/functions/v2beta/functions.proto + +package com.google.cloud.functions.v2beta; + +public interface LocationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2beta.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return A list containing the environments. + */ + java.util.List getEnvironmentsList(); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return The count of environments. + */ + int getEnvironmentsCount(); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index of the element to return. + * @return The environments at the given index. + */ + com.google.cloud.functions.v2beta.Environment getEnvironments(int index); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @return A list containing the enum numeric values on the wire for environments. + */ + java.util.List getEnvironmentsValueList(); + /** + * + * + *
+   * The Cloud Function environments this location supports.
+   * 
+ * + * repeated .google.cloud.functions.v2beta.Environment environments = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of environments at the given index. + */ + int getEnvironmentsValue(int index); +} diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java index 4afa20f8ce3f..0c735e9c791e 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadata.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_OperationMetadata_descriptor; @@ -324,8 +319,9 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool cancel_requested = 6; @@ -900,39 +896,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.OperationMetadata r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.OperationMetadata) { @@ -1798,8 +1761,9 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool cancel_requested = 6; @@ -1816,8 +1780,9 @@ public boolean getCancelRequested() { *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool cancel_requested = 6; @@ -1838,8 +1803,9 @@ public Builder setCancelRequested(boolean value) { *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool cancel_requested = 6; diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java index 4325905ebaa6..4300adfbb6e0 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/OperationMetadataOrBuilder.java @@ -174,8 +174,9 @@ public interface OperationMetadataOrBuilder *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool cancel_requested = 6; diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java index 562e5bb090b3..4af210829c93 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSource.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RepoSource(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_RepoSource_descriptor; @@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int revisionCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object revision_; public enum RevisionCase @@ -125,6 +122,7 @@ public RevisionCase getRevisionCase() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -141,6 +139,7 @@ public boolean hasBranchName() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -170,6 +169,7 @@ public java.lang.String getBranchName() { * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -201,6 +201,7 @@ public com.google.protobuf.ByteString getBranchNameBytes() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -217,6 +218,7 @@ public boolean hasTagName() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -246,6 +248,7 @@ public java.lang.String getTagName() { * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -454,6 +457,7 @@ public com.google.protobuf.ByteString getRepoNameBytes() { * *
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -480,6 +484,7 @@ public java.lang.String getDir() {
    *
    * 
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -856,39 +861,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v2beta.RepoSource res
       result.revision_ = this.revision_;
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2beta.RepoSource) {
@@ -1055,6 +1027,7 @@ public Builder clearRevision() {
      *
      * 
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1072,6 +1045,7 @@ public boolean hasBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1102,6 +1076,7 @@ public java.lang.String getBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1132,6 +1107,7 @@ public com.google.protobuf.ByteString getBranchNameBytes() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1155,6 +1131,7 @@ public Builder setBranchName(java.lang.String value) { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1176,6 +1153,7 @@ public Builder clearBranchName() { * *
      * Regex matching branches to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1201,6 +1179,7 @@ public Builder setBranchNameBytes(com.google.protobuf.ByteString value) { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1218,6 +1197,7 @@ public boolean hasTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1248,6 +1228,7 @@ public java.lang.String getTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1278,6 +1259,7 @@ public com.google.protobuf.ByteString getTagNameBytes() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1301,6 +1283,7 @@ public Builder setTagName(java.lang.String value) { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1322,6 +1305,7 @@ public Builder clearTagName() { * *
      * Regex matching tags to build.
+     *
      * The syntax of the regular expressions accepted is the syntax accepted by
      * RE2 and described at https://github.com/google/re2/wiki/Syntax
      * 
@@ -1699,6 +1683,7 @@ public Builder setRepoNameBytes(com.google.protobuf.ByteString value) { * *
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1724,6 +1709,7 @@ public java.lang.String getDir() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1749,6 +1735,7 @@ public com.google.protobuf.ByteString getDirBytes() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1773,6 +1760,7 @@ public Builder setDir(java.lang.String value) {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
@@ -1793,6 +1781,7 @@ public Builder clearDir() {
      *
      * 
      * Directory, relative to the source root, in which to run the build.
+     *
      * This must be a relative path. If a step's `dir` is specified and is an
      * absolute path, this value is ignored for that step's execution.
      * eg. helloworld (no leading slash allowed)
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java
index 1b000682cc2f..7ea7e6c8b790 100644
--- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java
+++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/RepoSourceOrBuilder.java
@@ -28,6 +28,7 @@ public interface RepoSourceOrBuilder
    *
    * 
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -42,6 +43,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -56,6 +58,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching branches to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -71,6 +74,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -85,6 +89,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -99,6 +104,7 @@ public interface RepoSourceOrBuilder * *
    * Regex matching tags to build.
+   *
    * The syntax of the regular expressions accepted is the syntax accepted by
    * RE2 and described at https://github.com/google/re2/wiki/Syntax
    * 
@@ -203,6 +209,7 @@ public interface RepoSourceOrBuilder * *
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -218,6 +225,7 @@ public interface RepoSourceOrBuilder
    *
    * 
    * Directory, relative to the source root, in which to run the build.
+   *
    * This must be a relative path. If a step's `dir` is specified and is an
    * absolute path, this value is ignored for that step's execution.
    * eg. helloworld (no leading slash allowed)
@@ -243,5 +251,5 @@ public interface RepoSourceOrBuilder
    */
   boolean getInvertRegex();
 
-  public com.google.cloud.functions.v2beta.RepoSource.RevisionCase getRevisionCase();
+  com.google.cloud.functions.v2beta.RepoSource.RevisionCase getRevisionCase();
 }
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java
index 827efce48c3b..1b4fd6c21473 100644
--- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java
+++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretEnvVar.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretEnvVar();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2beta.FunctionsProto
         .internal_static_google_cloud_functions_v2beta_SecretEnvVar_descriptor;
@@ -567,39 +562,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.SecretEnvVar result
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2beta.SecretEnvVar) {
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java
index 61a5fabcbb53..dc3f0858fc43 100644
--- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java
+++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SecretVolume.java
@@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecretVolume();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2beta.FunctionsProto
         .internal_static_google_cloud_functions_v2beta_SecretVolume_descriptor;
@@ -167,11 +162,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SecretVersion();
     }
 
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-      return this.unknownFields;
-    }
-
     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.cloud.functions.v2beta.FunctionsProto
           .internal_static_google_cloud_functions_v2beta_SecretVolume_SecretVersion_descriptor;
@@ -557,41 +547,6 @@ private void buildPartial0(
         }
       }
 
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.setField(field, value);
-      }
-
-      @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-
-      @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.functions.v2beta.SecretVolume.SecretVersion) {
@@ -1525,39 +1480,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.SecretVolume result
       }
     }
 
-    @java.lang.Override
-    public Builder clone() {
-      return super.clone();
-    }
-
-    @java.lang.Override
-    public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.setField(field, value);
-    }
-
-    @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
-      return super.clearField(field);
-    }
-
-    @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-      return super.clearOneof(oneof);
-    }
-
-    @java.lang.Override
-    public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
-      return super.setRepeatedField(field, index, value);
-    }
-
-    @java.lang.Override
-    public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
-      return super.addRepeatedField(field, value);
-    }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.functions.v2beta.SecretVolume) {
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
index 2d24f44ccbc7..23ab5afd2340 100644
--- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
+++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfig.java
@@ -41,6 +41,7 @@ private ServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder)
   private ServiceConfig() {
     service_ = "";
     availableMemory_ = "";
+    availableCpu_ = "";
     vpcConnector_ = "";
     vpcConnectorEgressSettings_ = 0;
     ingressSettings_ = 0;
@@ -49,6 +50,7 @@ private ServiceConfig() {
     secretEnvironmentVariables_ = java.util.Collections.emptyList();
     secretVolumes_ = java.util.Collections.emptyList();
     revision_ = "";
+    securityLevel_ = 0;
   }
 
   @java.lang.Override
@@ -57,11 +59,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ServiceConfig();
   }
 
-  @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
-    return this.unknownFields;
-  }
-
   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.cloud.functions.v2beta.FunctionsProto
         .internal_static_google_cloud_functions_v2beta_ServiceConfig_descriptor;
@@ -93,6 +90,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * 
    * Available egress settings.
+   *
    * This controls what traffic is diverted through the VPC Access Connector
    * resource. By default PRIVATE_RANGES_ONLY will be used.
    * 
@@ -257,7 +255,9 @@ private VpcConnectorEgressSettings(int value) { * *
    * Available ingress settings.
+   *
    * This controls what traffic can reach the function.
+   *
    * If unspecified, ALLOW_ALL will be used.
    * 
* @@ -435,6 +435,176 @@ private IngressSettings(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2beta.ServiceConfig.IngressSettings) } + /** + * + * + *
+   * Available security level settings.
+   *
+   * This enforces security protocol on function URL.
+   *
+   * Security level is only configurable for 1st Gen functions, If unspecified,
+   * SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY.
+   * 
+ * + * Protobuf enum {@code google.cloud.functions.v2beta.ServiceConfig.SecurityLevel} + */ + public enum SecurityLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * SECURITY_LEVEL_UNSPECIFIED = 0; + */ + SECURITY_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Requests for a URL that match this handler that do not use HTTPS are
+     * automatically redirected to the HTTPS URL with the same path. Query
+     * parameters are reserved for the redirect.
+     * 
+ * + * SECURE_ALWAYS = 1; + */ + SECURE_ALWAYS(1), + /** + * + * + *
+     * Both HTTP and HTTPS requests with URLs that match the handler succeed
+     * without redirects. The application can examine the request to determine
+     * which protocol was used and respond accordingly.
+     * 
+ * + * SECURE_OPTIONAL = 2; + */ + SECURE_OPTIONAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * SECURITY_LEVEL_UNSPECIFIED = 0; + */ + public static final int SECURITY_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Requests for a URL that match this handler that do not use HTTPS are
+     * automatically redirected to the HTTPS URL with the same path. Query
+     * parameters are reserved for the redirect.
+     * 
+ * + * SECURE_ALWAYS = 1; + */ + public static final int SECURE_ALWAYS_VALUE = 1; + /** + * + * + *
+     * Both HTTP and HTTPS requests with URLs that match the handler succeed
+     * without redirects. The application can examine the request to determine
+     * which protocol was used and respond accordingly.
+     * 
+ * + * SECURE_OPTIONAL = 2; + */ + public static final int SECURE_OPTIONAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SecurityLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SecurityLevel forNumber(int value) { + switch (value) { + case 0: + return SECURITY_LEVEL_UNSPECIFIED; + case 1: + return SECURE_ALWAYS; + case 2: + return SECURE_OPTIONAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SecurityLevel findValueByNumber(int number) { + return SecurityLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.functions.v2beta.ServiceConfig.getDescriptor().getEnumTypes().get(2); + } + + private static final SecurityLevel[] VALUES = values(); + + public static SecurityLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SecurityLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2beta.ServiceConfig.SecurityLevel) + } + public static final int SERVICE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -575,6 +745,65 @@ public com.google.protobuf.ByteString getAvailableMemoryBytes() { } } + public static final int AVAILABLE_CPU_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object availableCpu_ = ""; + /** + * + * + *
+   * [Preview] The number of CPUs used in a single container instance.
+   * Default value is calculated from available memory.
+   * Supports the same values as Cloud Run, see
+   * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+   * Example: "1" indicates 1 vCPU
+   * 
+ * + * string available_cpu = 22; + * + * @return The availableCpu. + */ + @java.lang.Override + public java.lang.String getAvailableCpu() { + java.lang.Object ref = availableCpu_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + availableCpu_ = s; + return s; + } + } + /** + * + * + *
+   * [Preview] The number of CPUs used in a single container instance.
+   * Default value is calculated from available memory.
+   * Supports the same values as Cloud Run, see
+   * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+   * Example: "1" indicates 1 vCPU
+   * 
+ * + * string available_cpu = 22; + * + * @return The bytes for availableCpu. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAvailableCpuBytes() { + java.lang.Object ref = availableCpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + availableCpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 4; private static final class EnvironmentVariablesDefaultEntryHolder { @@ -689,11 +918,13 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { *
    * The limit on the maximum number of function instances that may coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions may, for a
    * short period of time, create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you may want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -716,6 +947,7 @@ public int getMaxInstanceCount() {
    * 
    * The limit on the minimum number of function instances that may coexist at a
    * given time.
+   *
    * Function instances are kept in idle state for a short period after they
    * finished executing the request to reduce cold start time for subsequent
    * requests. Setting a minimum instance count will ensure that the given
@@ -1198,6 +1430,68 @@ public com.google.protobuf.ByteString getRevisionBytes() {
     }
   }
 
+  public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 20;
+  private int maxInstanceRequestConcurrency_ = 0;
+  /**
+   *
+   *
+   * 
+   * [Preview] Sets the maximum number of concurrent requests that each instance
+   * can receive. Defaults to 1.
+   * 
+ * + * int32 max_instance_request_concurrency = 20; + * + * @return The maxInstanceRequestConcurrency. + */ + @java.lang.Override + public int getMaxInstanceRequestConcurrency() { + return maxInstanceRequestConcurrency_; + } + + public static final int SECURITY_LEVEL_FIELD_NUMBER = 21; + private int securityLevel_ = 0; + /** + * + * + *
+   * Security level configure whether the function only accepts https.
+   * This configuration is only applicable to 1st Gen functions with Http
+   * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+   * functions are https ONLY.
+   * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @return The enum numeric value on the wire for securityLevel. + */ + @java.lang.Override + public int getSecurityLevelValue() { + return securityLevel_; + } + /** + * + * + *
+   * Security level configure whether the function only accepts https.
+   * This configuration is only applicable to 1st Gen functions with Http
+   * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+   * functions are https ONLY.
+   * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @return The securityLevel. + */ + @java.lang.Override + public com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel getSecurityLevel() { + com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel result = + com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel.forNumber(securityLevel_); + return result == null + ? com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1265,6 +1559,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < secretVolumes_.size(); i++) { output.writeMessage(19, secretVolumes_.get(i)); } + if (maxInstanceRequestConcurrency_ != 0) { + output.writeInt32(20, maxInstanceRequestConcurrency_); + } + if (securityLevel_ + != com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(21, securityLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableCpu_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, availableCpu_); + } getUnknownFields().writeTo(output); } @@ -1335,6 +1640,19 @@ public int getSerializedSize() { for (int i = 0; i < secretVolumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, secretVolumes_.get(i)); } + if (maxInstanceRequestConcurrency_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 20, maxInstanceRequestConcurrency_); + } + if (securityLevel_ + != com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel.SECURITY_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, securityLevel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableCpu_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, availableCpu_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1354,6 +1672,7 @@ public boolean equals(final java.lang.Object obj) { if (!getService().equals(other.getService())) return false; if (getTimeoutSeconds() != other.getTimeoutSeconds()) return false; if (!getAvailableMemory().equals(other.getAvailableMemory())) return false; + if (!getAvailableCpu().equals(other.getAvailableCpu())) return false; if (!internalGetEnvironmentVariables().equals(other.internalGetEnvironmentVariables())) return false; if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; @@ -1368,6 +1687,9 @@ public boolean equals(final java.lang.Object obj) { return false; if (!getSecretVolumesList().equals(other.getSecretVolumesList())) return false; if (!getRevision().equals(other.getRevision())) return false; + if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) + return false; + if (securityLevel_ != other.securityLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1385,6 +1707,8 @@ public int hashCode() { hash = (53 * hash) + getTimeoutSeconds(); hash = (37 * hash) + AVAILABLE_MEMORY_FIELD_NUMBER; hash = (53 * hash) + getAvailableMemory().hashCode(); + hash = (37 * hash) + AVAILABLE_CPU_FIELD_NUMBER; + hash = (53 * hash) + getAvailableCpu().hashCode(); if (!internalGetEnvironmentVariables().getMap().isEmpty()) { hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetEnvironmentVariables().hashCode(); @@ -1415,6 +1739,10 @@ public int hashCode() { } hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); + hash = (37 * hash) + MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getMaxInstanceRequestConcurrency(); + hash = (37 * hash) + SECURITY_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + securityLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1578,6 +1906,7 @@ public Builder clear() { service_ = ""; timeoutSeconds_ = 0; availableMemory_ = ""; + availableCpu_ = ""; internalGetMutableEnvironmentVariables().clear(); maxInstanceCount_ = 0; minInstanceCount_ = 0; @@ -1593,15 +1922,17 @@ public Builder clear() { secretEnvironmentVariables_ = null; secretEnvironmentVariablesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); if (secretVolumesBuilder_ == null) { secretVolumes_ = java.util.Collections.emptyList(); } else { secretVolumes_ = null; secretVolumesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); revision_ = ""; + maxInstanceRequestConcurrency_ = 0; + securityLevel_ = 0; return this; } @@ -1640,19 +1971,19 @@ public com.google.cloud.functions.v2beta.ServiceConfig buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.functions.v2beta.ServiceConfig result) { if (secretEnvironmentVariablesBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { secretEnvironmentVariables_ = java.util.Collections.unmodifiableList(secretEnvironmentVariables_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.secretEnvironmentVariables_ = secretEnvironmentVariables_; } else { result.secretEnvironmentVariables_ = secretEnvironmentVariablesBuilder_.build(); } if (secretVolumesBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { secretVolumes_ = java.util.Collections.unmodifiableList(secretVolumes_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.secretVolumes_ = secretVolumes_; } else { @@ -1672,69 +2003,45 @@ private void buildPartial0(com.google.cloud.functions.v2beta.ServiceConfig resul result.availableMemory_ = availableMemory_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.availableCpu_ = availableCpu_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.environmentVariables_ = internalGetEnvironmentVariables(); result.environmentVariables_.makeImmutable(); } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.maxInstanceCount_ = maxInstanceCount_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.minInstanceCount_ = minInstanceCount_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.vpcConnector_ = vpcConnector_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.vpcConnectorEgressSettings_ = vpcConnectorEgressSettings_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.ingressSettings_ = ingressSettings_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.uri_ = uri_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.serviceAccountEmail_ = serviceAccountEmail_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.allTrafficOnLatestRevision_ = allTrafficOnLatestRevision_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.revision_ = revision_; } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + if (((from_bitField0_ & 0x00010000) != 0)) { + result.maxInstanceRequestConcurrency_ = maxInstanceRequestConcurrency_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.securityLevel_ = securityLevel_; + } } @java.lang.Override @@ -1763,8 +2070,13 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) bitField0_ |= 0x00000004; onChanged(); } + if (!other.getAvailableCpu().isEmpty()) { + availableCpu_ = other.availableCpu_; + bitField0_ |= 0x00000008; + onChanged(); + } internalGetMutableEnvironmentVariables().mergeFrom(other.internalGetEnvironmentVariables()); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; if (other.getMaxInstanceCount() != 0) { setMaxInstanceCount(other.getMaxInstanceCount()); } @@ -1773,7 +2085,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) } if (!other.getVpcConnector().isEmpty()) { vpcConnector_ = other.vpcConnector_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.vpcConnectorEgressSettings_ != 0) { @@ -1784,12 +2096,12 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) } if (!other.getUri().isEmpty()) { uri_ = other.uri_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getServiceAccountEmail().isEmpty()) { serviceAccountEmail_ = other.serviceAccountEmail_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.getAllTrafficOnLatestRevision() != false) { @@ -1799,7 +2111,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) if (!other.secretEnvironmentVariables_.isEmpty()) { if (secretEnvironmentVariables_.isEmpty()) { secretEnvironmentVariables_ = other.secretEnvironmentVariables_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureSecretEnvironmentVariablesIsMutable(); secretEnvironmentVariables_.addAll(other.secretEnvironmentVariables_); @@ -1812,7 +2124,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) secretEnvironmentVariablesBuilder_.dispose(); secretEnvironmentVariablesBuilder_ = null; secretEnvironmentVariables_ = other.secretEnvironmentVariables_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); secretEnvironmentVariablesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecretEnvironmentVariablesFieldBuilder() @@ -1826,7 +2138,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) if (!other.secretVolumes_.isEmpty()) { if (secretVolumes_.isEmpty()) { secretVolumes_ = other.secretVolumes_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureSecretVolumesIsMutable(); secretVolumes_.addAll(other.secretVolumes_); @@ -1839,7 +2151,7 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) secretVolumesBuilder_.dispose(); secretVolumesBuilder_ = null; secretVolumes_ = other.secretVolumes_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); secretVolumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecretVolumesFieldBuilder() @@ -1851,9 +2163,15 @@ public Builder mergeFrom(com.google.cloud.functions.v2beta.ServiceConfig other) } if (!other.getRevision().isEmpty()) { revision_ = other.revision_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } + if (other.getMaxInstanceRequestConcurrency() != 0) { + setMaxInstanceRequestConcurrency(other.getMaxInstanceRequestConcurrency()); + } + if (other.securityLevel_ != 0) { + setSecurityLevelValue(other.getSecurityLevelValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1902,49 +2220,49 @@ public Builder mergeFrom( internalGetMutableEnvironmentVariables() .getMutableMap() .put(environmentVariables__.getKey(), environmentVariables__.getValue()); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 40: { maxInstanceCount_ = input.readInt32(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 40 case 50: { vpcConnector_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 56: { vpcConnectorEgressSettings_ = input.readEnum(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 56 case 64: { ingressSettings_ = input.readEnum(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 64 case 74: { uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 74 case 82: { serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 82 case 96: { minInstanceCount_ = input.readInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 96 case 106: @@ -1956,7 +2274,7 @@ public Builder mergeFrom( case 128: { allTrafficOnLatestRevision_ = input.readBool(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 128 case 138: @@ -1975,7 +2293,7 @@ public Builder mergeFrom( case 146: { revision_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 146 case 154: @@ -1991,6 +2309,24 @@ public Builder mergeFrom( } break; } // case 154 + case 160: + { + maxInstanceRequestConcurrency_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 160 + case 168: + { + securityLevel_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 168 + case 178: + { + availableCpu_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2326,6 +2662,132 @@ public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object availableCpu_ = ""; + /** + * + * + *
+     * [Preview] The number of CPUs used in a single container instance.
+     * Default value is calculated from available memory.
+     * Supports the same values as Cloud Run, see
+     * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+     * Example: "1" indicates 1 vCPU
+     * 
+ * + * string available_cpu = 22; + * + * @return The availableCpu. + */ + public java.lang.String getAvailableCpu() { + java.lang.Object ref = availableCpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + availableCpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Preview] The number of CPUs used in a single container instance.
+     * Default value is calculated from available memory.
+     * Supports the same values as Cloud Run, see
+     * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+     * Example: "1" indicates 1 vCPU
+     * 
+ * + * string available_cpu = 22; + * + * @return The bytes for availableCpu. + */ + public com.google.protobuf.ByteString getAvailableCpuBytes() { + java.lang.Object ref = availableCpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + availableCpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Preview] The number of CPUs used in a single container instance.
+     * Default value is calculated from available memory.
+     * Supports the same values as Cloud Run, see
+     * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+     * Example: "1" indicates 1 vCPU
+     * 
+ * + * string available_cpu = 22; + * + * @param value The availableCpu to set. + * @return This builder for chaining. + */ + public Builder setAvailableCpu(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + availableCpu_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * [Preview] The number of CPUs used in a single container instance.
+     * Default value is calculated from available memory.
+     * Supports the same values as Cloud Run, see
+     * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+     * Example: "1" indicates 1 vCPU
+     * 
+ * + * string available_cpu = 22; + * + * @return This builder for chaining. + */ + public Builder clearAvailableCpu() { + availableCpu_ = getDefaultInstance().getAvailableCpu(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * [Preview] The number of CPUs used in a single container instance.
+     * Default value is calculated from available memory.
+     * Supports the same values as Cloud Run, see
+     * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+     * Example: "1" indicates 1 vCPU
+     * 
+ * + * string available_cpu = 22; + * + * @param value The bytes for availableCpu to set. + * @return This builder for chaining. + */ + public Builder setAvailableCpuBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + availableCpu_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private com.google.protobuf.MapField environmentVariables_; private com.google.protobuf.MapField @@ -2347,7 +2809,7 @@ public Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value) { if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return environmentVariables_; } @@ -2434,7 +2896,7 @@ public java.lang.String getEnvironmentVariablesOrThrow(java.lang.String key) { } public Builder clearEnvironmentVariables() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableEnvironmentVariables().getMutableMap().clear(); return this; } @@ -2457,7 +2919,7 @@ public Builder removeEnvironmentVariables(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableEnvironmentVariables() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return internalGetMutableEnvironmentVariables().getMutableMap(); } /** @@ -2477,7 +2939,7 @@ public Builder putEnvironmentVariables(java.lang.String key, java.lang.String va throw new NullPointerException("map value"); } internalGetMutableEnvironmentVariables().getMutableMap().put(key, value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return this; } /** @@ -2492,7 +2954,7 @@ public Builder putEnvironmentVariables(java.lang.String key, java.lang.String va public Builder putAllEnvironmentVariables( java.util.Map values) { internalGetMutableEnvironmentVariables().getMutableMap().putAll(values); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return this; } @@ -2503,11 +2965,13 @@ public Builder putAllEnvironmentVariables( *
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -2527,11 +2991,13 @@ public int getMaxInstanceCount() {
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -2545,7 +3011,7 @@ public int getMaxInstanceCount() {
     public Builder setMaxInstanceCount(int value) {
 
       maxInstanceCount_ = value;
-      bitField0_ |= 0x00000010;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -2555,11 +3021,13 @@ public Builder setMaxInstanceCount(int value) {
      * 
      * The limit on the maximum number of function instances that may coexist at a
      * given time.
+     *
      * In some cases, such as rapid traffic surges, Cloud Functions may, for a
      * short period of time, create more instances than the specified max
      * instances limit. If your function cannot tolerate this temporary behavior,
      * you may want to factor in a safety margin and set a lower max instances
      * value than your function can tolerate.
+     *
      * See the [Max
      * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
      * more details.
@@ -2570,7 +3038,7 @@ public Builder setMaxInstanceCount(int value) {
      * @return This builder for chaining.
      */
     public Builder clearMaxInstanceCount() {
-      bitField0_ = (bitField0_ & ~0x00000010);
+      bitField0_ = (bitField0_ & ~0x00000020);
       maxInstanceCount_ = 0;
       onChanged();
       return this;
@@ -2583,6 +3051,7 @@ public Builder clearMaxInstanceCount() {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -2605,6 +3074,7 @@ public int getMinInstanceCount() {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -2621,7 +3091,7 @@ public int getMinInstanceCount() {
     public Builder setMinInstanceCount(int value) {
 
       minInstanceCount_ = value;
-      bitField0_ |= 0x00000020;
+      bitField0_ |= 0x00000040;
       onChanged();
       return this;
     }
@@ -2631,6 +3101,7 @@ public Builder setMinInstanceCount(int value) {
      * 
      * The limit on the minimum number of function instances that may coexist at a
      * given time.
+     *
      * Function instances are kept in idle state for a short period after they
      * finished executing the request to reduce cold start time for subsequent
      * requests. Setting a minimum instance count will ensure that the given
@@ -2644,7 +3115,7 @@ public Builder setMinInstanceCount(int value) {
      * @return This builder for chaining.
      */
     public Builder clearMinInstanceCount() {
-      bitField0_ = (bitField0_ & ~0x00000020);
+      bitField0_ = (bitField0_ & ~0x00000040);
       minInstanceCount_ = 0;
       onChanged();
       return this;
@@ -2715,7 +3186,7 @@ public Builder setVpcConnector(java.lang.String value) {
         throw new NullPointerException();
       }
       vpcConnector_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -2733,7 +3204,7 @@ public Builder setVpcConnector(java.lang.String value) {
      */
     public Builder clearVpcConnector() {
       vpcConnector_ = getDefaultInstance().getVpcConnector();
-      bitField0_ = (bitField0_ & ~0x00000040);
+      bitField0_ = (bitField0_ & ~0x00000080);
       onChanged();
       return this;
     }
@@ -2756,7 +3227,7 @@ public Builder setVpcConnectorBytes(com.google.protobuf.ByteString value) {
       }
       checkByteStringIsUtf8(value);
       vpcConnector_ = value;
-      bitField0_ |= 0x00000040;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -2797,7 +3268,7 @@ public int getVpcConnectorEgressSettingsValue() {
      */
     public Builder setVpcConnectorEgressSettingsValue(int value) {
       vpcConnectorEgressSettings_ = value;
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000100;
       onChanged();
       return this;
     }
@@ -2845,7 +3316,7 @@ public Builder setVpcConnectorEgressSettings(
       if (value == null) {
         throw new NullPointerException();
       }
-      bitField0_ |= 0x00000080;
+      bitField0_ |= 0x00000100;
       vpcConnectorEgressSettings_ = value.getNumber();
       onChanged();
       return this;
@@ -2865,7 +3336,7 @@ public Builder setVpcConnectorEgressSettings(
      * @return This builder for chaining.
      */
     public Builder clearVpcConnectorEgressSettings() {
-      bitField0_ = (bitField0_ & ~0x00000080);
+      bitField0_ = (bitField0_ & ~0x00000100);
       vpcConnectorEgressSettings_ = 0;
       onChanged();
       return this;
@@ -2905,7 +3376,7 @@ public int getIngressSettingsValue() {
      */
     public Builder setIngressSettingsValue(int value) {
       ingressSettings_ = value;
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000200;
       onChanged();
       return this;
     }
@@ -2950,7 +3421,7 @@ public Builder setIngressSettings(
       if (value == null) {
         throw new NullPointerException();
       }
-      bitField0_ |= 0x00000100;
+      bitField0_ |= 0x00000200;
       ingressSettings_ = value.getNumber();
       onChanged();
       return this;
@@ -2969,7 +3440,7 @@ public Builder setIngressSettings(
      * @return This builder for chaining.
      */
     public Builder clearIngressSettings() {
-      bitField0_ = (bitField0_ & ~0x00000100);
+      bitField0_ = (bitField0_ & ~0x00000200);
       ingressSettings_ = 0;
       onChanged();
       return this;
@@ -3037,7 +3508,7 @@ public Builder setUri(java.lang.String value) {
         throw new NullPointerException();
       }
       uri_ = value;
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000400;
       onChanged();
       return this;
     }
@@ -3054,7 +3525,7 @@ public Builder setUri(java.lang.String value) {
      */
     public Builder clearUri() {
       uri_ = getDefaultInstance().getUri();
-      bitField0_ = (bitField0_ & ~0x00000200);
+      bitField0_ = (bitField0_ & ~0x00000400);
       onChanged();
       return this;
     }
@@ -3076,7 +3547,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
       }
       checkByteStringIsUtf8(value);
       uri_ = value;
-      bitField0_ |= 0x00000200;
+      bitField0_ |= 0x00000400;
       onChanged();
       return this;
     }
@@ -3146,7 +3617,7 @@ public Builder setServiceAccountEmail(java.lang.String value) {
         throw new NullPointerException();
       }
       serviceAccountEmail_ = value;
-      bitField0_ |= 0x00000400;
+      bitField0_ |= 0x00000800;
       onChanged();
       return this;
     }
@@ -3164,7 +3635,7 @@ public Builder setServiceAccountEmail(java.lang.String value) {
      */
     public Builder clearServiceAccountEmail() {
       serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail();
-      bitField0_ = (bitField0_ & ~0x00000400);
+      bitField0_ = (bitField0_ & ~0x00000800);
       onChanged();
       return this;
     }
@@ -3187,7 +3658,7 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
       }
       checkByteStringIsUtf8(value);
       serviceAccountEmail_ = value;
-      bitField0_ |= 0x00000400;
+      bitField0_ |= 0x00000800;
       onChanged();
       return this;
     }
@@ -3231,7 +3702,7 @@ public boolean getAllTrafficOnLatestRevision() {
     public Builder setAllTrafficOnLatestRevision(boolean value) {
 
       allTrafficOnLatestRevision_ = value;
-      bitField0_ |= 0x00000800;
+      bitField0_ |= 0x00001000;
       onChanged();
       return this;
     }
@@ -3251,7 +3722,7 @@ public Builder setAllTrafficOnLatestRevision(boolean value) {
      * @return This builder for chaining.
      */
     public Builder clearAllTrafficOnLatestRevision() {
-      bitField0_ = (bitField0_ & ~0x00000800);
+      bitField0_ = (bitField0_ & ~0x00001000);
       allTrafficOnLatestRevision_ = false;
       onChanged();
       return this;
@@ -3261,11 +3732,11 @@ public Builder clearAllTrafficOnLatestRevision() {
         secretEnvironmentVariables_ = java.util.Collections.emptyList();
 
     private void ensureSecretEnvironmentVariablesIsMutable() {
-      if (!((bitField0_ & 0x00001000) != 0)) {
+      if (!((bitField0_ & 0x00002000) != 0)) {
         secretEnvironmentVariables_ =
             new java.util.ArrayList(
                 secretEnvironmentVariables_);
-        bitField0_ |= 0x00001000;
+        bitField0_ |= 0x00002000;
       }
     }
 
@@ -3496,7 +3967,7 @@ public Builder addAllSecretEnvironmentVariables(
     public Builder clearSecretEnvironmentVariables() {
       if (secretEnvironmentVariablesBuilder_ == null) {
         secretEnvironmentVariables_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00001000);
+        bitField0_ = (bitField0_ & ~0x00002000);
         onChanged();
       } else {
         secretEnvironmentVariablesBuilder_.clear();
@@ -3630,7 +4101,7 @@ public Builder removeSecretEnvironmentVariables(int index) {
                 com.google.cloud.functions.v2beta.SecretEnvVar.Builder,
                 com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder>(
                 secretEnvironmentVariables_,
-                ((bitField0_ & 0x00001000) != 0),
+                ((bitField0_ & 0x00002000) != 0),
                 getParentForChildren(),
                 isClean());
         secretEnvironmentVariables_ = null;
@@ -3642,10 +4113,10 @@ public Builder removeSecretEnvironmentVariables(int index) {
         java.util.Collections.emptyList();
 
     private void ensureSecretVolumesIsMutable() {
-      if (!((bitField0_ & 0x00002000) != 0)) {
+      if (!((bitField0_ & 0x00004000) != 0)) {
         secretVolumes_ =
             new java.util.ArrayList(secretVolumes_);
-        bitField0_ |= 0x00002000;
+        bitField0_ |= 0x00004000;
       }
     }
 
@@ -3863,7 +4334,7 @@ public Builder addAllSecretVolumes(
     public Builder clearSecretVolumes() {
       if (secretVolumesBuilder_ == null) {
         secretVolumes_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00002000);
+        bitField0_ = (bitField0_ & ~0x00004000);
         onChanged();
       } else {
         secretVolumesBuilder_.clear();
@@ -3989,7 +4460,7 @@ public com.google.cloud.functions.v2beta.SecretVolume.Builder addSecretVolumesBu
                 com.google.cloud.functions.v2beta.SecretVolume.Builder,
                 com.google.cloud.functions.v2beta.SecretVolumeOrBuilder>(
                 secretVolumes_,
-                ((bitField0_ & 0x00002000) != 0),
+                ((bitField0_ & 0x00004000) != 0),
                 getParentForChildren(),
                 isClean());
         secretVolumes_ = null;
@@ -4059,7 +4530,7 @@ public Builder setRevision(java.lang.String value) {
         throw new NullPointerException();
       }
       revision_ = value;
-      bitField0_ |= 0x00004000;
+      bitField0_ |= 0x00008000;
       onChanged();
       return this;
     }
@@ -4076,7 +4547,7 @@ public Builder setRevision(java.lang.String value) {
      */
     public Builder clearRevision() {
       revision_ = getDefaultInstance().getRevision();
-      bitField0_ = (bitField0_ & ~0x00004000);
+      bitField0_ = (bitField0_ & ~0x00008000);
       onChanged();
       return this;
     }
@@ -4098,7 +4569,171 @@ public Builder setRevisionBytes(com.google.protobuf.ByteString value) {
       }
       checkByteStringIsUtf8(value);
       revision_ = value;
-      bitField0_ |= 0x00004000;
+      bitField0_ |= 0x00008000;
+      onChanged();
+      return this;
+    }
+
+    private int maxInstanceRequestConcurrency_;
+    /**
+     *
+     *
+     * 
+     * [Preview] Sets the maximum number of concurrent requests that each instance
+     * can receive. Defaults to 1.
+     * 
+ * + * int32 max_instance_request_concurrency = 20; + * + * @return The maxInstanceRequestConcurrency. + */ + @java.lang.Override + public int getMaxInstanceRequestConcurrency() { + return maxInstanceRequestConcurrency_; + } + /** + * + * + *
+     * [Preview] Sets the maximum number of concurrent requests that each instance
+     * can receive. Defaults to 1.
+     * 
+ * + * int32 max_instance_request_concurrency = 20; + * + * @param value The maxInstanceRequestConcurrency to set. + * @return This builder for chaining. + */ + public Builder setMaxInstanceRequestConcurrency(int value) { + + maxInstanceRequestConcurrency_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * [Preview] Sets the maximum number of concurrent requests that each instance
+     * can receive. Defaults to 1.
+     * 
+ * + * int32 max_instance_request_concurrency = 20; + * + * @return This builder for chaining. + */ + public Builder clearMaxInstanceRequestConcurrency() { + bitField0_ = (bitField0_ & ~0x00010000); + maxInstanceRequestConcurrency_ = 0; + onChanged(); + return this; + } + + private int securityLevel_ = 0; + /** + * + * + *
+     * Security level configure whether the function only accepts https.
+     * This configuration is only applicable to 1st Gen functions with Http
+     * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+     * functions are https ONLY.
+     * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @return The enum numeric value on the wire for securityLevel. + */ + @java.lang.Override + public int getSecurityLevelValue() { + return securityLevel_; + } + /** + * + * + *
+     * Security level configure whether the function only accepts https.
+     * This configuration is only applicable to 1st Gen functions with Http
+     * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+     * functions are https ONLY.
+     * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @param value The enum numeric value on the wire for securityLevel to set. + * @return This builder for chaining. + */ + public Builder setSecurityLevelValue(int value) { + securityLevel_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Security level configure whether the function only accepts https.
+     * This configuration is only applicable to 1st Gen functions with Http
+     * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+     * functions are https ONLY.
+     * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @return The securityLevel. + */ + @java.lang.Override + public com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel getSecurityLevel() { + com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel result = + com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel.forNumber(securityLevel_); + return result == null + ? com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Security level configure whether the function only accepts https.
+     * This configuration is only applicable to 1st Gen functions with Http
+     * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+     * functions are https ONLY.
+     * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @param value The securityLevel to set. + * @return This builder for chaining. + */ + public Builder setSecurityLevel( + com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + securityLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Security level configure whether the function only accepts https.
+     * This configuration is only applicable to 1st Gen functions with Http
+     * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+     * functions are https ONLY.
+     * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @return This builder for chaining. + */ + public Builder clearSecurityLevel() { + bitField0_ = (bitField0_ & ~0x00020000); + securityLevel_ = 0; onChanged(); return this; } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java index ac97a2664122..3bd5870458e3 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/ServiceConfigOrBuilder.java @@ -106,6 +106,39 @@ public interface ServiceConfigOrBuilder */ com.google.protobuf.ByteString getAvailableMemoryBytes(); + /** + * + * + *
+   * [Preview] The number of CPUs used in a single container instance.
+   * Default value is calculated from available memory.
+   * Supports the same values as Cloud Run, see
+   * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+   * Example: "1" indicates 1 vCPU
+   * 
+ * + * string available_cpu = 22; + * + * @return The availableCpu. + */ + java.lang.String getAvailableCpu(); + /** + * + * + *
+   * [Preview] The number of CPUs used in a single container instance.
+   * Default value is calculated from available memory.
+   * Supports the same values as Cloud Run, see
+   * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
+   * Example: "1" indicates 1 vCPU
+   * 
+ * + * string available_cpu = 22; + * + * @return The bytes for availableCpu. + */ + com.google.protobuf.ByteString getAvailableCpuBytes(); + /** * * @@ -170,11 +203,13 @@ java.lang.String getEnvironmentVariablesOrDefault( *
    * The limit on the maximum number of function instances that may coexist at a
    * given time.
+   *
    * In some cases, such as rapid traffic surges, Cloud Functions may, for a
    * short period of time, create more instances than the specified max
    * instances limit. If your function cannot tolerate this temporary behavior,
    * you may want to factor in a safety margin and set a lower max instances
    * value than your function can tolerate.
+   *
    * See the [Max
    * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
    * more details.
@@ -192,6 +227,7 @@ java.lang.String getEnvironmentVariablesOrDefault(
    * 
    * The limit on the minimum number of function instances that may coexist at a
    * given time.
+   *
    * Function instances are kept in idle state for a short period after they
    * finished executing the request to reduce cold start time for subsequent
    * requests. Setting a minimum instance count will ensure that the given
@@ -496,4 +532,49 @@ com.google.cloud.functions.v2beta.SecretEnvVarOrBuilder getSecretEnvironmentVari
    * @return The bytes for revision.
    */
   com.google.protobuf.ByteString getRevisionBytes();
+
+  /**
+   *
+   *
+   * 
+   * [Preview] Sets the maximum number of concurrent requests that each instance
+   * can receive. Defaults to 1.
+   * 
+ * + * int32 max_instance_request_concurrency = 20; + * + * @return The maxInstanceRequestConcurrency. + */ + int getMaxInstanceRequestConcurrency(); + + /** + * + * + *
+   * Security level configure whether the function only accepts https.
+   * This configuration is only applicable to 1st Gen functions with Http
+   * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+   * functions are https ONLY.
+   * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @return The enum numeric value on the wire for securityLevel. + */ + int getSecurityLevelValue(); + /** + * + * + *
+   * Security level configure whether the function only accepts https.
+   * This configuration is only applicable to 1st Gen functions with Http
+   * trigger. By default https is optional for 1st Gen functions; 2nd Gen
+   * functions are https ONLY.
+   * 
+ * + * .google.cloud.functions.v2beta.ServiceConfig.SecurityLevel security_level = 21; + * + * @return The securityLevel. + */ + com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel getSecurityLevel(); } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java index 2f0c2ce84eee..1a077ec8ac08 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Source.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Source(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_Source_descriptor; @@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int sourceCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object source_; public enum SourceCase @@ -502,39 +499,6 @@ private void buildPartialOneofs(com.google.cloud.functions.v2beta.Source result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.Source) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java index bf02332552b7..a8af28088c15 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceOrBuilder.java @@ -96,5 +96,5 @@ public interface SourceOrBuilder */ com.google.cloud.functions.v2beta.RepoSourceOrBuilder getRepoSourceOrBuilder(); - public com.google.cloud.functions.v2beta.Source.SourceCase getSourceCase(); + com.google.cloud.functions.v2beta.Source.SourceCase getSourceCase(); } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java index ab02d207500d..c17295fb2259 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/SourceProvenance.java @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceProvenance(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_SourceProvenance_descriptor; @@ -452,39 +447,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.SourceProvenance re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.SourceProvenance) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java index 29f26851915f..012213a81f72 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/Stage.java @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_Stage_descriptor; @@ -1113,39 +1108,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.Stage result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.Stage) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java index b123c8bdef1b..3d559f3f026f 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StateMessage.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateMessage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_StateMessage_descriptor; @@ -657,39 +652,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.StateMessage result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.StateMessage) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java index 45a2209d05e7..eb26d7c8b2c0 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSource.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StorageSource(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_StorageSource_descriptor; @@ -132,6 +127,7 @@ public com.google.protobuf.ByteString getBucketBytes() { * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -157,6 +153,7 @@ public java.lang.String getObject() { * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -463,39 +460,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.StorageSource resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.StorageSource) { @@ -707,6 +671,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -731,6 +696,7 @@ public java.lang.String getObject() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -755,6 +721,7 @@ public com.google.protobuf.ByteString getObjectBytes() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -778,6 +745,7 @@ public Builder setObject(java.lang.String value) { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
@@ -797,6 +765,7 @@ public Builder clearObject() { * *
      * Google Cloud Storage object containing the source.
+     *
      * This object must be a gzipped archive file (`.tar.gz`) containing source to
      * build.
      * 
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java index cc284c24d547..854a0492d180 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/StorageSourceOrBuilder.java @@ -57,6 +57,7 @@ public interface StorageSourceOrBuilder * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
@@ -71,6 +72,7 @@ public interface StorageSourceOrBuilder * *
    * Google Cloud Storage object containing the source.
+   *
    * This object must be a gzipped archive file (`.tar.gz`) containing source to
    * build.
    * 
diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java index 30981b92715b..62e704d8ca3a 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/UpdateFunctionRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2beta.FunctionsProto .internal_static_google_cloud_functions_v2beta_UpdateFunctionRequest_descriptor; @@ -445,39 +440,6 @@ private void buildPartial0(com.google.cloud.functions.v2beta.UpdateFunctionReque } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.functions.v2beta.UpdateFunctionRequest) { diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto b/java-functions/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto index 4d2284f31de8..a8f89d5a4f4e 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/proto/google/cloud/functions/v2beta/functions.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/any.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -62,6 +63,10 @@ option (google.api.resource_definition) = { type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" }; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; // Google Cloud Functions is used to deploy functions that are executed by // Google in response to various events. Data connected with that event is @@ -71,7 +76,8 @@ option (google.api.resource_definition) = { // executed and how it is triggered. service FunctionService { option (google.api.default_host) = "cloudfunctions.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Returns a function with the given name from the requested project. rpc GetFunction(GetFunctionRequest) returns (Function) { @@ -92,7 +98,8 @@ service FunctionService { // 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. - rpc CreateFunction(CreateFunctionRequest) returns (google.longrunning.Operation) { + rpc CreateFunction(CreateFunctionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2beta/{parent=projects/*/locations/*}/functions" body: "function" @@ -105,7 +112,8 @@ service FunctionService { } // Updates existing function. - rpc UpdateFunction(UpdateFunctionRequest) returns (google.longrunning.Operation) { + rpc UpdateFunction(UpdateFunctionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v2beta/{function.name=projects/*/locations/*/functions/*}" body: "function" @@ -120,7 +128,8 @@ service FunctionService { // 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. - rpc DeleteFunction(DeleteFunctionRequest) returns (google.longrunning.Operation) { + rpc DeleteFunction(DeleteFunctionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v2beta/{name=projects/*/locations/*/functions/*}" }; @@ -154,7 +163,8 @@ service FunctionService { // And this header SHOULD NOT be specified: // // * `Authorization: Bearer YOUR_TOKEN` - rpc GenerateUploadUrl(GenerateUploadUrlRequest) returns (GenerateUploadUrlResponse) { + rpc GenerateUploadUrl(GenerateUploadUrlRequest) + returns (GenerateUploadUrlResponse) { option (google.api.http) = { post: "/v2beta/{parent=projects/*/locations/*}/functions:generateUploadUrl" body: "*" @@ -166,7 +176,8 @@ service FunctionService { // 30 minutes of generation. // For more information about the signed URL usage see: // https://cloud.google.com/storage/docs/access-control/signed-urls - rpc GenerateDownloadUrl(GenerateDownloadUrlRequest) returns (GenerateDownloadUrlResponse) { + rpc GenerateDownloadUrl(GenerateDownloadUrlRequest) + returns (GenerateDownloadUrlResponse) { option (google.api.http) = { post: "/v2beta/{name=projects/*/locations/*/functions/*}:generateDownloadUrl" body: "*" @@ -230,9 +241,6 @@ message Function { // globally and match pattern `projects/*/locations/*/functions/*` string name = 1; - // Describe whether the function is gen1 or gen2. - Environment environment = 10; - // User-provided description of a function. string description = 2; @@ -252,13 +260,30 @@ message Function { State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of a Cloud Function. - google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels associated with this Cloud Function. map labels = 8; // Output only. State Messages for this Cloud Function. - repeated StateMessage state_messages = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated StateMessage state_messages = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Describe whether the function is 1st Gen or 2nd Gen. + Environment environment = 10; + + // Output only. The deployed url for the function. + string url = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // [Preview] Resource name of a KMS crypto key (managed by the user) used to + // encrypt/decrypt function resources. + // + // It must match the pattern + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. + string kms_key_name = 25 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; } // Informational messages about the state of the Cloud Function or Operation. @@ -375,8 +400,25 @@ message SourceProvenance { // Describes the Build step of the function that builds a container from the // given source. message BuildConfig { - // Output only. The Cloud Build name of the latest successful deployment of the - // function. + // Docker Registry to use for storing function Docker images. + enum DockerRegistry { + // Unspecified. + DOCKER_REGISTRY_UNSPECIFIED = 0; + + // Docker images will be stored in multi-regional Container Registry + // repositories named `gcf`. + CONTAINER_REGISTRY = 1; + + // Docker images will be stored in regional Artifact Registry repositories. + // By default, GCF will create and use repositories named `gcf-artifacts` + // in every region in which a function is deployed. But the repository to + // use can also be specified by the user using the `docker_repository` + // field. + ARTIFACT_REGISTRY = 2; + } + + // Output only. The Cloud Build name of the latest successful deployment of + // the function. string build = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { @@ -403,7 +445,8 @@ message BuildConfig { Source source = 4; // Output only. A permanent fixed identifier for source. - SourceProvenance source_provenance = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + SourceProvenance source_provenance = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Name of the Cloud Build Custom Worker Pool that should be used to build the // function. The format of this field is @@ -418,14 +461,24 @@ message BuildConfig { // granted the role Cloud Build Custom Workers Builder // (roles/cloudbuild.customworkers.builder) in the project. string worker_pool = 5 [(google.api.resource_reference) = { - type: "cloudbuild.googleapis.com/WorkerPool" - }]; + type: "cloudbuild.googleapis.com/WorkerPool" + }]; // User-provided build-time environment variables for the function map environment_variables = 6; - // Optional. User managed repository created in Artifact Registry optionally with a - // customer managed encryption key. This is the repository to which the + // Docker Registry to use for this deployment. This configuration is only + // applicable to 1st Gen functions, 2nd Gen functions can only use Artifact + // Registry. + // + // If `docker_repository` field is specified, this field will be automatically + // set as `ARTIFACT_REGISTRY`. + // If unspecified, it currently defaults to `CONTAINER_REGISTRY`. + // This field may be overridden by the backend for eligible deployments. + DockerRegistry docker_registry = 10; + + // User managed repository created in Artifact Registry optionally + // with a customer managed encryption key. This is the repository to which the // function docker image will be pushed after it is built by Cloud Build. // If unspecified, GCF will create and use a repository named 'gcf-artifacts' // for every deployed region. @@ -436,12 +489,9 @@ message BuildConfig { // Cross-project repositories are not supported. // Cross-location repositories are not supported. // Repository format must be 'DOCKER'. - string docker_repository = 7 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "artifactregistry.googleapis.com/Repository" - } - ]; + string docker_repository = 7 [(google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Repository" + }]; } // Describes the Service being deployed. @@ -482,14 +532,33 @@ message ServiceConfig { ALLOW_INTERNAL_AND_GCLB = 3; } + // Available security level settings. + // + // This enforces security protocol on function URL. + // + // Security level is only configurable for 1st Gen functions, If unspecified, + // SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY. + enum SecurityLevel { + // Unspecified. + SECURITY_LEVEL_UNSPECIFIED = 0; + + // Requests for a URL that match this handler that do not use HTTPS are + // automatically redirected to the HTTPS URL with the same path. Query + // parameters are reserved for the redirect. + SECURE_ALWAYS = 1; + + // Both HTTP and HTTPS requests with URLs that match the handler succeed + // without redirects. The application can examine the request to determine + // which protocol was used and respond accordingly. + SECURE_OPTIONAL = 2; + } + // Output only. Name of the service associated with a Function. // The format of this field is // `projects/{project}/locations/{region}/services/{service}` string service = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "run.googleapis.com/Service" - } + (google.api.resource_reference) = { type: "run.googleapis.com/Service" } ]; // The function execution timeout. Execution is considered failed and @@ -505,6 +574,13 @@ message ServiceConfig { // a full description. string available_memory = 13; + // [Preview] The number of CPUs used in a single container instance. + // Default value is calculated from available memory. + // Supports the same values as Cloud Run, see + // https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements + // Example: "1" indicates 1 vCPU + string available_cpu = 22; + // Environment variables that shall be available during function execution. map environment_variables = 4; @@ -536,8 +612,8 @@ message ServiceConfig { // The Serverless VPC Access connector that this cloud function can connect // to. The format of this field is `projects/*/locations/*/connectors/*`. string vpc_connector = 6 [(google.api.resource_reference) = { - type: "vpcaccess.googleapis.com/Connector" - }]; + type: "vpcaccess.googleapis.com/Connector" + }]; // The egress settings for the connector, controlling what traffic is diverted // through it. @@ -569,6 +645,16 @@ message ServiceConfig { // Output only. The name of service revision. string revision = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // [Preview] Sets the maximum number of concurrent requests that each instance + // can receive. Defaults to 1. + int32 max_instance_request_concurrency = 20; + + // Security level configure whether the function only accepts https. + // This configuration is only applicable to 1st Gen functions with Http + // trigger. By default https is optional for 1st Gen functions; 2nd Gen + // functions are https ONLY. + SecurityLevel security_level = 21; } // Configuration for a secret environment variable. It has the information @@ -649,8 +735,8 @@ message EventTrigger { RETRY_POLICY_RETRY = 2; } - // Output only. The resource name of the Eventarc trigger. The format of this field is - // `projects/{project}/locations/{region}/triggers/{trigger}`. + // Output only. The resource name of the Eventarc trigger. The format of this + // field is `projects/{project}/locations/{region}/triggers/{trigger}`. string trigger = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { @@ -681,19 +767,18 @@ message EventTrigger { // will not be deleted at function deletion. string pubsub_topic = 5 [ (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "pubsub.googleapis.com/Topic" - } + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // Optional. The email of the trigger's service account. The service account must have - // permission to invoke Cloud Run services, the permission is + // Optional. The email of the trigger's service account. The service account + // must have permission to invoke Cloud Run services, the permission is // `run.routes.invoke`. // If empty, defaults to the Compute Engine default service account: // `{project_number}-compute@developer.gserviceaccount.com`. string service_account_email = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If unset, then defaults to ignoring failures (i.e. not retrying them). + // Optional. If unset, then defaults to ignoring failures (i.e. not retrying + // them). RetryPolicy retry_policy = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The name of the channel associated with the trigger in @@ -735,12 +820,12 @@ message GetFunctionRequest { // Request for the `ListFunctions` method. message ListFunctionsRequest { - // Required. The project and location from which the function should be listed, - // specified in the format `projects/*/locations/*` - // If you want to list functions in all locations, use "-" in place of a - // location. When listing functions in all locations, if one or more - // location(s) are unreachable, the response will contain functions from all - // reachable locations along with the names of any unreachable locations. + // Required. The project and location from which the function should be + // listed, specified in the format `projects/*/locations/*` If you want to + // list functions in all locations, use "-" in place of a location. When + // listing functions in all locations, if one or more location(s) are + // unreachable, the response will contain functions from all reachable + // locations along with the names of any unreachable locations. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -748,7 +833,10 @@ message ListFunctionsRequest { } ]; - // Maximum number of functions to return per call. + // Maximum number of functions to return per call. The largest allowed + // page_size is 1,000, if the page_size is omitted or specified as greater + // than 1,000 then it will be replaced as 1,000. The size of the list + // response can be less than specified when used with filters. int32 page_size = 2; // The value returned by the last @@ -783,8 +871,8 @@ message ListFunctionsResponse { // Request for the `CreateFunction` method. message CreateFunctionRequest { - // Required. The project and location in which the function should be created, specified - // in the format `projects/*/locations/*` + // Required. The project and location in which the function should be created, + // specified in the format `projects/*/locations/*` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -827,14 +915,33 @@ message DeleteFunctionRequest { // Request of `GenerateSourceUploadUrl` method. message GenerateUploadUrlRequest { - // Required. The project and location in which the Google Cloud Storage signed URL - // should be generated, specified in the format `projects/*/locations/*`. + // Required. The project and location in which the Google Cloud Storage signed + // URL should be generated, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "locations.googleapis.com/Location" } ]; + + // [Preview] Resource name of a KMS crypto key (managed by the user) used to + // encrypt/decrypt function source code objects in intermediate Cloud Storage + // buckets. When you generate an upload url and upload your source code, it + // gets copied to an intermediate Cloud Storage bucket. The source code is + // then copied to a versioned directory in the sources bucket in the consumer + // project during the function deployment. + // + // It must match the pattern + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. + // + // The Google Cloud Functions service account + // (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be + // granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter + // (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the + // Key/KeyRing/Project/Organization (least access preferred). + string kms_key_name = 2 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; } // Response of `GenerateSourceUploadUrl` method. @@ -857,8 +964,8 @@ message GenerateUploadUrlResponse { // Request of `GenerateDownloadUrl` method. message GenerateDownloadUrlRequest { - // Required. The name of function for which source code Google Cloud Storage signed - // URL should be generated. + // Required. The name of function for which source code Google Cloud Storage + // signed URL should be generated. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -876,8 +983,8 @@ message GenerateDownloadUrlResponse { // Request for the `ListRuntimes` method. message ListRuntimesRequest { - // Required. The project and location from which the runtimes should be listed, - // specified in the format `projects/*/locations/*` + // Required. The project and location from which the runtimes should be + // listed, specified in the format `projects/*/locations/*` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -958,8 +1065,9 @@ message OperationMetadata { // Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool cancel_requested = 6; // API version used to start the operation. @@ -972,6 +1080,12 @@ message OperationMetadata { repeated Stage stages = 9; } +// Extra GCF specific location information. +message LocationMetadata { + // The Cloud Function environments this location supports. + repeated Environment environments = 1; +} + // Each Stage of the deployment process message Stage { // Possible names for a Stage diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/AsyncGenerateUploadUrl.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/AsyncGenerateUploadUrl.java index 8c2480cd032f..21e75246eea3 100644 --- a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/AsyncGenerateUploadUrl.java +++ b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/AsyncGenerateUploadUrl.java @@ -18,6 +18,7 @@ // [START cloudfunctions_v2beta_generated_FunctionService_GenerateUploadUrl_async] import com.google.api.core.ApiFuture; +import com.google.cloud.functions.v2beta.CryptoKeyName; import com.google.cloud.functions.v2beta.FunctionServiceClient; import com.google.cloud.functions.v2beta.GenerateUploadUrlRequest; import com.google.cloud.functions.v2beta.GenerateUploadUrlResponse; @@ -39,6 +40,9 @@ public static void asyncGenerateUploadUrl() throws Exception { GenerateUploadUrlRequest request = GenerateUploadUrlRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); ApiFuture future = functionServiceClient.generateUploadUrlCallable().futureCall(request); diff --git a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/SyncGenerateUploadUrl.java b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/SyncGenerateUploadUrl.java index ca17d3afd745..829f818fae02 100644 --- a/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/SyncGenerateUploadUrl.java +++ b/java-functions/samples/snippets/generated/com/google/cloud/functions/v2beta/functionservice/generateuploadurl/SyncGenerateUploadUrl.java @@ -17,6 +17,7 @@ package com.google.cloud.functions.v2beta.samples; // [START cloudfunctions_v2beta_generated_FunctionService_GenerateUploadUrl_sync] +import com.google.cloud.functions.v2beta.CryptoKeyName; import com.google.cloud.functions.v2beta.FunctionServiceClient; import com.google.cloud.functions.v2beta.GenerateUploadUrlRequest; import com.google.cloud.functions.v2beta.GenerateUploadUrlResponse; @@ -38,6 +39,9 @@ public static void syncGenerateUploadUrl() throws Exception { GenerateUploadUrlRequest request = GenerateUploadUrlRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .build(); GenerateUploadUrlResponse response = functionServiceClient.generateUploadUrl(request); }